GEOPY-2741: Continue update to Python 3.12#119
Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades the minimum Python version from 3.10 to 3.12 and bumps major dependencies (numpy from 1.26 to 2.4, geoh5py from 0.12 to 0.13, Pillow from 10.3 to 12.1) across all configuration files. The requires-python upper bound is also tightened from <4.0 to <3.15.
Changes:
- Bumped minimum Python version to 3.12 across
pyproject.toml,recipe.yaml, CI workflows, and tooling config (ruff target, pre-commit). - Upgraded numpy to 2.4., geoh5py to 0.13., and related transitive dependencies (Pillow, h5py, pydantic); removed backport packages no longer needed for Python <3.11 (tomli, exceptiongroup).
- Uncommented the numpy mypy dependency in
.pre-commit-config.yamland cleaned up the mypy plugins section.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
recipe.yaml |
Updated python_min to 3.12, bumped numpy and geoh5py version constraints |
pyproject.toml |
Updated requires-python, numpy dep, ruff target version, cleaned up mypy plugins |
poetry.lock |
Regenerated lock file reflecting all dependency upgrades and removed backport packages |
.pre-commit-config.yaml |
Uncommented numpy dependency for mypy hook, updated to 2.4.* |
.github/workflows/python_deploy_dev.yml |
Updated Python version to 3.12 for deploy jobs |
.github/workflows/python_analysis.yml |
Updated Python versions to 3.12 base and test matrix to 3.12–3.14 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
for more information, see https://pre-commit.ci
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #119 +/- ##
========================================
Coverage 92.82% 92.83%
========================================
Files 27 27
Lines 1506 1507 +1
========================================
+ Hits 1398 1399 +1
Misses 108 108
🚀 New features to boost your workflow:
|
|
@domfournier if I want to use this currently - which branch / python / geoh5py do you recommend please? |
Morning Richard, Looks like you caught us during migration. See answer on your issue: #120 (comment) |
GEOPY-2741 - Continue update to Python 3.12