Skip to content

Commit

Permalink
Build wheels for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Oct 10, 2024
1 parent 66f2097 commit 56c308f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 12 deletions.
56 changes: 47 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ commands:
- run:
name: Upgrade pyenv
command: |
rm -rf /opt/circleci/.pyenv
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
sudo rm -rf /opt/circleci/.pyenv
sudo bash -c 'curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | PYENV_ROOT=/opt/circleci/.pyenv bash'
sudo chmod -R 777 /opt/circleci/.pyenv/
pyenv install --list list
- run:
name: Use pyenv to install python
Expand All @@ -66,7 +67,7 @@ jobs:
py38:
working_directory: ~/project
machine:
image: ubuntu-2004:202111-02
image: ubuntu-2004:current
steps:
- checkout
- upgradepython:
Expand All @@ -92,7 +93,7 @@ jobs:
py39:
working_directory: ~/project
machine:
image: ubuntu-2004:202111-02
image: ubuntu-2004:current
steps:
- checkout
- upgradepython:
Expand All @@ -118,7 +119,7 @@ jobs:
py310:
working_directory: ~/project
machine:
image: ubuntu-2004:202111-02
image: ubuntu-2004:current
steps:
- checkout
- upgradepython:
Expand All @@ -144,7 +145,7 @@ jobs:
py311:
working_directory: ~/project
machine:
image: ubuntu-2004:202111-02
image: ubuntu-2004:current
steps:
- checkout
- upgradepython:
Expand All @@ -170,7 +171,7 @@ jobs:
py312:
working_directory: ~/project
machine:
image: ubuntu-2004:202111-02
image: ubuntu-2004:current
steps:
- checkout
- upgradepython:
Expand All @@ -193,6 +194,32 @@ jobs:
paths:
- ./.tox/externaldata
- coverage
py313:
working_directory: ~/project
machine:
image: ubuntu-2004:current
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:
Expand All @@ -212,7 +239,7 @@ jobs:
docker:
working_directory: ~/project
machine:
image: ubuntu-2004:202111-02
image: ubuntu-2004:current
steps:
- checkout
- run:
Expand Down Expand Up @@ -244,7 +271,7 @@ jobs:
publish_docker:
working_directory: ~/project
machine:
image: ubuntu-2004:202111-02
image: ubuntu-2004:current
steps:
- checkout
- attach_workspace:
Expand Down Expand Up @@ -364,6 +391,13 @@ workflows:
branches:
ignore:
- gh-pages
- py313:
filters:
tags:
only: /^v.*/
branches:
ignore:
- gh-pages
- lint_and_docs:
filters:
tags:
Expand Down Expand Up @@ -392,6 +426,7 @@ workflows:
- py310
- py311
- py312
- py313
- lint_and_docs
- wheels
- docker
Expand All @@ -409,6 +444,7 @@ workflows:
- py310
- py311
- py312
- py313
- lint_and_docs
- docker
- wheels
Expand All @@ -433,6 +469,7 @@ workflows:
- py310
- py311
- py312
- py313
- lint_and_docs
- docker
- wheels
Expand All @@ -443,6 +480,7 @@ workflows:
- py310
- py311
- py312
- py313
- lint_and_docs
- docker
- wheels
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -81,6 +81,10 @@ jobs:
with:
python-version: "3.x"

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3

- name: Build wheels
uses: pypa/[email protected]
env:
Expand Down

0 comments on commit 56c308f

Please sign in to comment.