Skip to content

Commit

Permalink
Build and test with Python 3.13 (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanmart authored Jan 7, 2025
1 parent 56672d0 commit 152e150
Show file tree
Hide file tree
Showing 12 changed files with 6,175 additions and 7,484 deletions.
14 changes: 14 additions & 0 deletions .ci_support/linux_64_python3.13_default.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
c_compiler:
- gcc
c_compiler_version:
- '12'
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
numpy:
- '2.1'
python:
- 3.13.* *_cp313
target_platform:
- linux-64
19 changes: 19 additions & 0 deletions .ci_support/osx_64_python3.13_default.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
xMACOSX_DEPLOYMENT_TARGET:
- '10.9'
c_compiler:
- clang
c_compiler_version:
- '17'
cxx_compiler:
- clangxx
cxx_compiler_version:
- '17'
macos_machine:
- x86_64-apple-darwin13.4.0
numpy:
- '2.1'
python:
- 3.13.* *_cp313
target_platform:
- osx-64

18 changes: 18 additions & 0 deletions .ci_support/osx_arm64_python3.13.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
c_compiler:
- clang
c_compiler_version:
- '17'
cxx_compiler:
- clangxx
cxx_compiler_version:
- '17'
macos_machine:
- arm64-apple-darwin20.0.0
numpy:
- '2.1'
python:
- 3.13.* *_cp313
target_platform:
- osx-arm64
10 changes: 10 additions & 0 deletions .ci_support/win_64_python3.13.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
c_compiler:
- vs2019
cxx_compiler:
- vs2019
numpy:
- '2.1'
python:
- 3.13.* *_cp313
target_platform:
- win-64
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
- { os: ubuntu-latest, environment: 'py310' }
- { os: ubuntu-latest, environment: 'py311' }
- { os: ubuntu-latest, environment: 'py312' }
- { os: windows-latest, environment: 'py312' }
- { os: macos-latest, environment: 'py312' }
- { os: ubuntu-latest, environment: 'py313' }
- { os: windows-latest, environment: 'py313' }
- { os: macos-latest, environment: 'py313' }
- { os: ubuntu-latest, environment: 'oldies' }
- { os: ubuntu-latest, environment: 'nightly' }
steps:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/conda-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
matrix:
include:
- { conda_build_yml: linux_64_python3.9_default.____cpython, os: ubuntu-latest, conda-build-args: '' }
- { conda_build_yml: linux_64_python3.12_default.____cpython, os: ubuntu-latest, conda-build-args: '' }
- { conda_build_yml: linux_64_python3.13_default.____cpython, os: ubuntu-latest, conda-build-args: '' }
- { conda_build_yml: linux_aarch64_python3.10_default.____cpython, os: ubuntu-latest, conda-build-args: ' --no-test' }
- { conda_build_yml: linux_ppc64le_python3.10_default.____cpython, os: ubuntu-latest, conda-build-args: ' --no-test' }
- { conda_build_yml: osx_64_python3.11_default.____cpython, os: macos-latest, conda-build-args: '' }
- { conda_build_yml: osx_arm64_python3.9.____cpython, os: macos-latest, conda-build-args: ' --no-test' }
- { conda_build_yml: osx_arm64_python3.10.____cpython, os: macos-latest, conda-build-args: ' --no-test' }
- { conda_build_yml: osx_64_python3.11_default.____cpython, os: macos-latest, conda-build-args: ' --no-test' }
- { conda_build_yml: osx_arm64_python3.9.____cpython, os: macos-latest, conda-build-args: '' }
- { conda_build_yml: osx_arm64_python3.13.____cpython, os: macos-latest, conda-build-args: '' }
- { conda_build_yml: win_64_python3.9.____cpython, os: windows-latest, conda-build-args: '' }
- { conda_build_yml: win_64_python3.12.____cpython, os: windows-latest, conda-build-args: '' }
- { conda_build_yml: win_64_python3.13.____cpython, os: windows-latest, conda-build-args: '' }

steps:
- name: Checkout branch
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
include:
- environment: 'nightly'
NOTE: 'Nightly Builds' # run once with nightlies
- environment: 'py312'
NOTE: 'Python 3.12' # run once with normal dependencies
- environment: 'py313'
NOTE: 'Python 3.13' # run once with normal dependencies
steps:
- name: Checkout branch
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build:
tools:
python: mambaforge-4.10
commands:
- mamba install -c conda-forge -c nodefaults pixi==0.27.0
- mamba install -c conda-forge -c nodefaults pixi==0.39.4
- pixi run -e docs postinstall
- pixi run readthedocs
sphinx:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Unreleased
**Other changes:**

- Build wheel for pypi on python 3.13.
- Build and test with python 3.13 in CI.

4.1.0 - 2024-11-07
------------------
Expand Down
13,570 changes: 6,097 additions & 7,473 deletions pixi.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ python = "3.10.*"
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"
[feature.py313.dependencies]
python = "3.13.*"

[feature.oldies.dependencies]
setuptools = "62.*"
Expand All @@ -166,6 +168,7 @@ py39 = ["py39", "test"]
py310 = ["py310", "test"]
py311 = ["py311", "test"]
py312 = ["py312", "test"]
py313 = ["py313", "test"]
oldies = ["oldies", "test"]
lint = { features = ["lint"], no-default-feature = true}
nightly = ["py312", "test"]
nightly = ["py313", "test"]
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
package_dir={"": "src"},
packages=find_packages(where="src"),
Expand Down

0 comments on commit 152e150

Please sign in to comment.