Skip to content

Commit

Permalink
chore(py): Support python 3.13 (#678)
Browse files Browse the repository at this point in the history
Let's try #653 again.
The [latest `pytket`](https://github.com/CQCL/tket/releases/tag/1.34.0)
supports python `3.13`, so we can update here.

We now follow the
[general](https://iscinumpy.dev/post/bound-version-constraints/#pinning-the-python-version-is-special)
[recommendation](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#python-requires)
against setting a hard python version bound in the `pyproject.toml`'s
`requires-python` field.
  • Loading branch information
aborgna-q authored Oct 24, 2024
1 parent 6bba509 commit e68a58c
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env:
UV_VERSION: "0.4.20"
UV_FROZEN: 1
# The highest and lowest supported Python versions, used for testing
PYTHON_HIGHEST: "3.12"
PYTHON_HIGHEST: "3.13"
PYTHON_LOWEST: "3.10"

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-pure-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
with:
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Install Python 3.12
run: uv python install 3.12
- name: Install Python 3.13
run: uv python install 3.13

- name: Build sdist and wheels
if: ${{ steps.check-tag.outputs.run == 'true' }}
Expand Down
3 changes: 2 additions & 1 deletion tket2-eccs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "tket2_eccs"
version = "0.2.0"
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10"
description = "Precompiled rewrite sets for the tket 2 compiler"
license = { file = "LICENCE" }
readme = "README.md"
Expand All @@ -16,6 +16,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
Expand Down
5 changes: 3 additions & 2 deletions tket2-py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "tket2"
version = "0.4.1"
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10"
description = "Quantinuum's TKET2 Quantum Compiler"
license = { file = "LICENCE" }
readme = "README.md"
Expand All @@ -16,6 +16,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
Expand All @@ -26,7 +27,7 @@ classifiers = [
]

dependencies = [
'pytket >= 1.29.2, < 2',
'pytket >= 1.34, < 2',
'hugr >= 0.9.0, < 0.10',
'tket2_eccs >= 0.2.0, < 0.3',
]
Expand Down
45 changes: 27 additions & 18 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e68a58c

Please sign in to comment.