-
Notifications
You must be signed in to change notification settings - Fork 47
Migrate to uv for package management #882
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
Open
aaronspring
wants to merge
30
commits into
main
Choose a base branch
from
uv-migration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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
- tutorial.py: use engine=h5netcdf to avoid netCDF4 segfaults on Python 3.14 - README.rst: add Testing section with uv run pytest commands - docs/source/index.rst: add Testing section with uv run pytest commands - docs/source/contributing.rst: replace conda with uv, update pytest commands
This fixes the trapezoid/roc test failures that occurred because xskillscore v0.0.27 uses np.trapezoid (NumPy 2.0+ API). Changes: - Main dependency: numpy >=1.25.0 -> numpy >=2.0.0 - bias-correction extra: numpy >=1.25.0,<2.0.0 -> numpy >=2.0.0 Results: - 56 trapezoid-related tests now pass - All roc metric tests pass Remaining issues (14 failures): - 10 bootstrap lazy_results tests: xarray/dask zip() strict issue - 4 pearson_r_eff_p_value tests: numpy 2.x nonzero() behavior change These are separate upstream compatibility issues in xarray/dask/xskillscore.
Collaborator
Author
SummaryFixed the trapezoid issue by upgrading numpy to >=2.0.0. Changes made to :
Test Results:
All roc metric tests now pass. Remaining Issues (14 failures):These are separate numpy 2.x compatibility issues in upstream dependencies:
These need fixes from xarray, dask, or xskillscore upstream. |
Update AGENTS.md with proper uv commands for package management
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
5 tasks
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.
This PR migrates climpred to use uv for package management, following the uv-migration plan. It includes updates to GitHub workflows, documentation, and adds the necessary configuration files.