Browse Source

Support Python 3.13 (#1353)

Closes https://github.com/jelmer/dulwich/issues/1352
Jelmer Vernooij 7 months ago
parent
commit
a107e66a92
2 changed files with 11 additions and 2 deletions
  1. 2 1
      .github/workflows/pythontest.yml
  2. 9 1
      pyproject.toml

+ 2 - 1
.github/workflows/pythontest.yml

@@ -13,7 +13,7 @@ jobs:
       matrix:
         os: [ubuntu-latest, macos-latest, windows-latest]
         python-version:
-          ["3.8", "3.9", "3.10", "3.11", "3.12"]
+          ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
       fail-fast: false
 
     steps:
@@ -22,6 +22,7 @@ jobs:
         uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python-version }}
+          allow-prereleases: true
       - name: Install native dependencies (Ubuntu)
         run: sudo apt-get update && sudo apt-get install -y libgpgme-dev libgpg-error-dev
         if: "matrix.os == 'ubuntu-latest'"

+ 9 - 1
pyproject.toml

@@ -17,6 +17,7 @@ classifiers = [
     "Programming Language :: Python :: 3.10",
     "Programming Language :: Python :: 3.11",
     "Programming Language :: Python :: 3.12",
+    "Programming Language :: Python :: 3.13",
     "Programming Language :: Python :: Implementation :: CPython",
     "Programming Language :: Python :: Implementation :: PyPy",
     "Operating System :: POSIX",
@@ -119,4 +120,11 @@ archs = ["auto", "aarch64"]
 [tool.cibuildwheel.macos]
 archs = ["auto", "universal2", "x86_64", "arm64"]
 before-all = "rustup target add x86_64-apple-darwin aarch64-apple-darwin"
-skip = "cp38-macosx_arm64 cp38-macosx_universal2 cp39-macosx_x86_64 cp39-macosx_universal2 cp310-macosx_x86_64 cp310-macosx_universal2 cp311-macosx_x86_64 cp311-macosx_universal2 cp311-macosx_universal2 cp312-macosx_x86_64 cp312-macosx_universal2"
+skip = """\
+    cp38-macosx_arm64 cp38-macosx_universal2 \
+    cp39-macosx_x86_64 cp39-macosx_universal2 \
+    cp310-macosx_x86_64 cp310-macosx_universal2 \
+    cp311-macosx_x86_64 cp311-macosx_universal2 \
+    cp312-macosx_x86_64 cp312-macosx_universal2 \
+    cp313-macosx_x86_64 cp313-macosx_universal2 \
+    """