Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to add support for Python 3.13 #176

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "Cargo"
directory: "/"
schedule:
interval: "monthly"
groups:
rust: # group all rust deps into a single PR
patterns:
- "*"
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ jobs:
- run: cargo test

core:
needs: [rust]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
submodules: false
coverage: codecov
toxdeps: tox-pypi-filter
envs: |
- linux: py312
- linux: py313
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -68,6 +69,7 @@ jobs:
envs: |
- windows: py311
- macos: py310
- linux: py312
- linux: py310-oldestdeps
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down Expand Up @@ -123,18 +125,20 @@ jobs:
test_command: 'pytest -p no:warnings --doctest-rst --pyargs streamtracer'
submodules: false
targets: |
- cp3{10,11,12}-manylinux_x86_64
- cp3{10,11,12}-musllinux_x86_64
- cp3{10,11,12}-macosx_x86_64
- cp3{10,11,12}-macosx_arm64
- cp3{10,11,12}-win_amd64
- cp3{10,11,12,13}-manylinux_x86_64
- cp3{10,11,12,13}-musllinux_x86_64
- cp3{10,11,12,13}-macosx_x86_64
- cp3{10,11,12,13}-macosx_arm64
- cp3{10,11,12,13}-win_amd64
# Build aarch64 one wheel per job as they be slow
- cp310-musllinux_aarch64
- cp311-musllinux_aarch64
- cp312-musllinux_aarch64
- cp313-musllinux_aarch64
- cp310-manylinux_aarch64
- cp311-manylinux_aarch64
- cp312-manylinux_aarch64
- cp313-manylinux_aarch64
secrets:
pypi_token: ${{ secrets.pypi_token }}

Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ name = "streamtracer"
crate-type = ["cdylib"]

[dependencies]
pyo3 = {version = "0.21", features = ["extension-module"]}
numpy = "0.21"
pyo3 = {version = "0.22", features = ["extension-module"]}
numpy = "0.22" # I think this should follow the pyo3 version, but it can be slow to release
num-traits = "0.2"
num-derive = "0.4"
rayon = "1.8"
ndarray = {version = "0.15", features = ["rayon"]}
rayon = "1.10"
ndarray = {version = "0.16", features = ["rayon"]}

[dev-dependencies]
float_eq = "1.0.0"
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Physics",
]
version = "2.2.0"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ min_version = 4.0
requires =
tox-pypi-filter>=0.14
envlist =
py{310,311,312}
py{310,311,312,313}
py312-devdeps
py310-oldestdeps
codestyle
Expand Down
Loading