NumPy 1 compatibility, relaxed deps, and uv tooling migration#12
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
np.acos/np.asin/np.atan2(NumPy 2.0+ aliases) withnp.arccos/np.arcsin/np.arctan2ininterpolatepy/quat_core.py, so the package runs on the NumPy 1.x line again.pyproject.toml:numpy>=1.26,matplotlib>=3.6,scipy>=1.11(wasnumpy>=2.3.0,matplotlib>=3.10.5,scipy>=1.16.0). Version bumped to3.0.1.test,docs,pre-commit,publish) now useastral-sh/setup-uv@v6+uv sync --locked;pyproject.tomlswitches[project.optional-dependencies]→[dependency-groups]withdefault-groups = ["dev", "test"]; CI passes--no-default-groups --group <name>to install only what each job needs.pre-commit.ymladds a~/.cache/pre-commitcache with arestore-keys:fallback.uv.lockand.python-versionare now tracked. Docs (README.md,docs/installation.md,docs/contributing.md,docs/troubleshooting.md) updated to the uv-based contributor flow.codecov-action@v5input —file:→files:(caught byactionlint).Test plan
uv sync --locked --no-default-groups --group testthenuv run pytest tests --cov=interpolatepy— 739 passed, 4 skipped (~60 s, local).uv sync --locked --no-default-groups --group docsthenuv run mkdocs build --clean --strict— built clean.uv sync --locked --no-default-groups --group devthenuv run pre-commit run --all-files— all hooks pass (ast, types, merge-conflict, yaml, toml, ruff, mypy).uv build+uvx twine check dist/*— wheel + sdist both PASSED.actionlintclean across all 4 workflows.files:input.main.