Skip to content

Commit

Permalink
add python 3.13 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mjurbanski-reef committed Oct 26, 2024
1 parent f968d7b commit 0d94901
Show file tree
Hide file tree
Showing 5 changed files with 589 additions and 693 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9", "pypy3.10"]
exclude:
- os: "macos-latest"
python-version: "pypy3.10"
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
run: nox -vs integration -p ${{ matrix.python-version }} -- -m "not require_secrets"
- name: Run integration tests (with secrets)
# Limit CI workload by running integration tests with secrets only on edge Python versions.
if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' && contains(fromJSON('["3.7", "pypy3.10", "3.12"]'), matrix.python-version) }}
if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' && contains(fromJSON('["3.8", "pypy3.10", "3.13"]'), matrix.python-version) }}
run: nox -vs integration -p ${{ matrix.python-version }} -- -m "require_secrets" --cleanup
test-docker:
timeout-minutes: 90
Expand Down
2 changes: 2 additions & 0 deletions changelog.d/+official_python313_support.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Declare official support for Python 3.13 in b2sdk.
Test b2sdk against Python 3.13 in CI.
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
'3.10',
'3.11',
'3.12',
'3.13',
] if NOX_PYTHONS is None else NOX_PYTHONS.split(',')


Expand All @@ -56,7 +57,7 @@ def _detect_python_nox_id() -> str:
PYTHON_VERSIONS = [_detect_python_nox_id()]
print(f"CI job mode; using provided interpreter only; PYTHON_VERSIONS={PYTHON_VERSIONS!r}")

PYTHON_DEFAULT_VERSION = PYTHON_VERSIONS[-1]
PYTHON_DEFAULT_VERSION = PYTHON_VERSIONS[-2] if len(PYTHON_VERSIONS) > 1 else PYTHON_VERSIONS[0]

PY_PATHS = ['b2', 'test', 'noxfile.py']

Expand Down
Loading

0 comments on commit 0d94901

Please sign in to comment.