From e4d75a41c0c07abb129911a36ff85366ae4b8cd6 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Thu, 10 Oct 2024 16:17:56 -0400 Subject: [PATCH] Build wheels for Python 3.13 --- .circleci/config.yml | 37 +++++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 6 +++--- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b84fad7ef..c9074e83c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -193,6 +193,32 @@ jobs: paths: - ./.tox/externaldata - coverage + py313: + working_directory: ~/project + machine: + image: ubuntu-2004:202111-02 + steps: + - checkout + - upgradepython: + version: "3.13" + - run: + name: Use pyenv to set python version + command: | + pyenv versions + pyenv global 3.13 + - docker-compose + - restore_cache: + name: Restore external data cache + keys: + - tox-externaldata-{{ checksum "tests/datastore.py" }} + - tox: + env: py313 + - save_cache: + name: Save external data cache + key: tox-externaldata-{{ checksum "tests/datastore.py" }} + paths: + - ./.tox/externaldata + - coverage lint_and_docs: working_directory: ~/project docker: @@ -364,6 +390,13 @@ workflows: branches: ignore: - gh-pages + - py313: + filters: + tags: + only: /^v.*/ + branches: + ignore: + - gh-pages - lint_and_docs: filters: tags: @@ -392,6 +425,7 @@ workflows: - py310 - py311 - py312 + - py313 - lint_and_docs - wheels - docker @@ -409,6 +443,7 @@ workflows: - py310 - py311 - py312 + - py313 - lint_and_docs - docker - wheels @@ -433,6 +468,7 @@ workflows: - py310 - py311 - py312 + - py313 - lint_and_docs - docker - wheels @@ -443,6 +479,7 @@ workflows: - py310 - py311 - py312 + - py313 - lint_and_docs - docker - wheels diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69b080381..94f47c7fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: if: github.repository == 'DigitalSlideArchive/HistomicsTK' && ( startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master' ) strategy: matrix: - python: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -65,10 +65,10 @@ jobs: matrix: # See matplotlib for some of the rationale of this buildplat: - - [ubuntu-latest, x86_64] + - [ubuntu-latest, "x86_64 aarch64"] - [macos-latest, "x86_64 arm64"] - [windows-latest, auto64] - python: ["cp38", "cp39", "cp310", "cp311", "cp312"] + python: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"] fail-fast: false steps: