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

Drop support for Python 3.9, add support for numpy 2.x #590

Merged
merged 14 commits into from
Sep 2, 2024

Conversation

alimanfoo
Copy link
Member

@alimanfoo alimanfoo commented Aug 29, 2024

The GitHub action which runs the unit tests has been modified to run tests under both numpy 1.x and numpy 2.x.

@alimanfoo alimanfoo changed the title Drop py39; release numpy constraints Drop py39, support numpy v2 Aug 29, 2024
@alimanfoo
Copy link
Member Author

Test failures need a fix upstream in scikit-allel.

@alimanfoo alimanfoo changed the title Drop py39, support numpy v2 Drop support for Python 3.9, add support for numpy 2.x Aug 30, 2024
Comment on lines 28 to 29
- name: Install package
run: pip install "numpy${{ matrix.numpy-version }}" .[dev]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert to using pip to install the package, because poetry does not give us the flexibility to run tests against different versions of numpy as far as I can make out.

Comment on lines +88 to +90
[tool.poetry.extras]
dev = ["pytest", "pytest-xdist", "pytest-cases", "pytest-cov", "notebook", "jupyterlab", "pre-commit", "ruff", "snakeviz", "mypy", "memory-profiler", "sphinx", "pydata-sphinx-theme", "sphinx_design"]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing this to use the "extras" feature, so can be installed via pip install malariagen_data[dev].

@alimanfoo alimanfoo requested review from ahernank and leehart August 30, 2024 20:33
@@ -7,7 +7,7 @@ on:
branches:
- master
jobs:
tests:
legacy_tests:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarify naming to make actions easier to find when setting branch protections.

@alimanfoo alimanfoo merged commit 291af24 into master Sep 2, 2024
10 checks passed
@alimanfoo alimanfoo deleted the np2-compat-alimanfoo-2024-08-29 branch September 2, 2024 12:25
@alimanfoo alimanfoo added the BMGF-068808 Work supported by BMGF grant INV-068808 (MalariaGEN 2024-2027). label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BMGF-068808 Work supported by BMGF grant INV-068808 (MalariaGEN 2024-2027).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop support for Python 3.9 Add support for numpy v2.x
2 participants