Skip to content

Commit

Permalink
Merge branch 'topic/default/transonic-0.7.3' into 'branch/default'
Browse files Browse the repository at this point in the history
transonic 0.7.3 for py>3.10, beniget~=0.4.2 and gast~=0.6.0

See merge request fluiddyn/transonic!145
  • Loading branch information
paugier committed Dec 2, 2024
2 parents a3b8195 + fc6f552 commit 0b119bd
Show file tree
Hide file tree
Showing 8 changed files with 2,835 additions and 2,485 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- name: apt install
run: |
sudo apt install -y libopenmpi-dev libopenblas-dev
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ jobs:
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.26.1
pixi-version: v0.38.0
cache: false
- name: Tests
run: |
Expand Down
7 changes: 6 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Release notes

See also the
[unreleased changes](https://foss.heptapod.net/fluiddyn/transonic/-/compare/0.7.2...branch%2Fdefault).
[unreleased changes](https://foss.heptapod.net/fluiddyn/transonic/-/compare/0.7.3...branch%2Fdefault).

## [0.7.3] (2024-12-02)

- Support Python 3.10 to 3.13 with beniget~=0.4.2 and gast~=0.6.0 (like Pythran 0.17)

## [0.7.2] (2024-08-26)

Expand Down Expand Up @@ -285,3 +289,4 @@ See also the
[0.7.0]: https://foss.heptapod.net/fluiddyn/transonic/-/compare/0.6.4...0.7.0
[0.7.1]: https://foss.heptapod.net/fluiddyn/transonic/-/compare/0.7.0...0.7.1
[0.7.2]: https://foss.heptapod.net/fluiddyn/transonic/-/compare/0.7.1...0.7.2
[0.7.3]: https://foss.heptapod.net/fluiddyn/transonic/-/compare/0.7.2...0.7.3
8 changes: 4 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@
@nox.parametrize("with_pythran", [0, 1])
@nox.session
def test(session, with_pythran, with_cython):
command = "pdm sync -G base_test"
command = "pdm sync -G base-test"
session.run_always(*command.split(), external=True)

py_version = (
session.python
if session.python is not None
else sys.version.split(maxsplit=1)[0]
)
if version.parse(py_version) < version.parse("3.12"):
if version.parse(py_version) < version.parse("3.13"):
# Numba not yet compatible with 3.13 (2024-12-02)
session.install("numba")
else:
session.install("setuptools")

session.install("jax", "jaxlib")

Expand All @@ -34,6 +33,7 @@ def test(session, with_pythran, with_cython):
session.install("cython")

if version.parse(py_version) < version.parse("3.12"):
session.install("setuptools<60.0")
for backend in ("python", "pythran"):
print(f"TRANSONIC_BACKEND={backend}")
session.run(
Expand Down
2,427 changes: 1,174 additions & 1,253 deletions pdm.lock

Large diffs are not rendered by default.

2,851 changes: 1,638 additions & 1,213 deletions pixi.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "transonic"
version = "0.1.0"
description = "Add a short description here"
description = "Make your Python code fly at transonic speeds!"
channels = ["conda-forge"]
platforms = ["linux-64", "win-64"]

Expand Down
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ build-backend = "pdm.backend"

[project]
name = "transonic"
version = "0.7.2"
version = "0.7.3"
description = "Make your Python code fly at transonic speeds!"
authors = [
{ name = "Pierre Augier", email = "[email protected]" },
]
dependencies = ["autopep8", "beniget ~=0.4.0", "gast ~=0.5.0", "numpy"]
requires-python = ">= 3.9"
dependencies = ["autopep8", "beniget ~=0.4.2", "gast ~=0.6.0", "numpy"]
requires-python = ">= 3.10"
readme = "README.md"
license = { text = "BSD License" }
keywords = ["pythran"]
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

[project.urls]
Expand All @@ -44,7 +44,7 @@ ignore_package_warnings = ["ipython"]

[tool.pdm.dev-dependencies]

base_test = [
base-test = [
"black",
"coverage[toml]",
"mpi4py",
Expand All @@ -53,6 +53,8 @@ base_test = [
"pytest-cov",
"pytest-venv",
"scipy",
# setuptools for transonic.dist
"setuptools",
"-e transonic_testing @ file:///${PROJECT_ROOT}/_transonic_testing",
]
test = [
Expand Down

0 comments on commit 0b119bd

Please sign in to comment.