Skip to content

Commit 99167e9

Browse files
authored
Support Py3.12 in tests by constraining pyproj in lockfile to versions with wheels (#745)
This PR adds environment markers to the `uv` tooling configuration [constraint-dependencies](https://docs.astral.sh/uv/reference/settings/#constraint-dependencies) for `pyproj`, allowing us to have a lockfile with `pyproj` wheels for Python versions we support without restricting versions for downstream consumers. I believe the path to supporting 3.13 in tests will require updating `fiona<1.10` to something like `fiona>1,<=1.10`. It also looks safe to bump DuckDB in our lockfile but we will have to invalidate the CI cache so it doesn't point to extensions compiled for `1.1.3`
1 parent 7acc41c commit 99167e9

File tree

3 files changed

+1363
-1176
lines changed

3 files changed

+1363
-1176
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [3.9, "3.10", "3.11"]
15+
python-version: [3.9, "3.10", "3.11", "3.12"]
1616

1717
steps:
1818
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,10 @@ select = [
126126
"__init__.py" = [
127127
"F401", # Allow unused imports in __init__.py files
128128
]
129+
130+
[tool.uv]
131+
constraint-dependencies = [
132+
# ensure lockfile grabs wheels for pyproj for each Python version
133+
"pyproj==3.6; python_version == '3.9'",
134+
"pyproj>=3.7; python_version >= '3.10'",
135+
]

0 commit comments

Comments
 (0)