From ecf745692725266c765e1b2c995692d96742c0ee Mon Sep 17 00:00:00 2001 From: Graham Knapp <32717635+dancergraham@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:41:22 +0200 Subject: [PATCH 1/4] build:add python 3.13 support --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52aca36..e7d9d38 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -39,7 +39,7 @@ jobs: runs-on: windows-2019 strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -80,7 +80,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -125,7 +125,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install cibuildwheel run: | @@ -139,7 +139,7 @@ jobs: env: CIBW_BEFORE_ALL_LINUX: "bash scripts/install_xerces_c.sh" CIBW_BUILD: "cp*-manylinux_x86_64" - CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8, <3.13" + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8, <3.14" - name: Build wheels (Windows) if: matrix.os == 'windows-2019' @@ -148,7 +148,7 @@ jobs: env: CIBW_BEFORE_ALL_WINDOWS: "powershell scripts/install_xerces_c.ps1" CIBW_BUILD: "cp*-win_amd64*" - CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8, <3.13" + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8, <3.14" - name: Build wheels (macOS) if: matrix.os == 'macos-latest' @@ -157,7 +157,7 @@ jobs: env: CIBW_BEFORE_ALL_MACOS: "bash scripts/install_xerces_c.sh" CIBW_BUILD: "cp*-macosx*" - CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8, <3.13" + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8, <3.14" - uses: actions/upload-artifact@v4 with: @@ -191,7 +191,7 @@ jobs: strategy: matrix: os: [ "ubuntu-latest", "windows-2019", "macos-latest" ] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 with: From 2e6d7fda0a3c4cb77409ae903a1ee93993eb7c55 Mon Sep 17 00:00:00 2001 From: Graham Knapp <32717635+dancergraham@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:43:06 +0200 Subject: [PATCH 2/4] doc: support python3.13 --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 13b6df0..415a90b 100644 --- a/setup.py +++ b/setup.py @@ -137,6 +137,7 @@ def build_extensions(self): "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", ], cmdclass={"build_ext": BuildExt}, From 66e4d7c96c1f33a06226e4f408eb50adfa93f817 Mon Sep 17 00:00:00 2001 From: Graham Knapp <32717635+dancergraham@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:51:45 +0200 Subject: [PATCH 3/4] fix:allow prerelease version for python 3.13 --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7d9d38..59b39ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install build dependencies run: | @@ -91,6 +92,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install build dependencies working-directory: ./scripts @@ -126,6 +128,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.13" + allow-prereleases: true - name: Install cibuildwheel run: | @@ -201,6 +204,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - uses: actions/download-artifact@v4 with: From 00e94ded9a4ef32b3490973db697508fceb7ae6d Mon Sep 17 00:00:00 2001 From: Graham Knapp <32717635+dancergraham@users.noreply.github.com> Date: Wed, 2 Oct 2024 22:37:22 +0200 Subject: [PATCH 4/4] fix: allow release candidate install on conda --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59b39ee..121e87c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: auto-update-conda: true python-version: ${{ matrix.python-version }} activate-environment: pye57 - channels: conda-forge + channels: conda-forge,conda-forge/label/python_rc miniconda-version: "latest" - name: Install Dependencies