Repository navigation
Add uv config - #1286
Add uv config#1286peanutfun wants to merge 103 commits into
Conversation
emanuel-schmid
left a comment
There was a problem hiding this comment.
Great job!
Found one issue: eccodeslib doesn't exist for windows. So I'd follow the suggestion from the linked astral-sh/uv/issue. It worked for me on Linux and Windows.
Apply batched suggestions from code review Co-authored-by: Emanuel Schmid <51439563+emanuel-schmid@users.noreply.github.com>
This reverts commit dcb5c59.
|
@emanuel-schmid Thanks for checking this out. The |
|
@emanuel-schmid I resolved the @chahank @spjuhel I would welcome your comments on the updated guidelines, see |
This reverts commit be61130.
|
Many very neat improvements, this is amazing really! Some curiosity on the CI/CD script:
About the doc: I find it overall clear and well-structured (see minor comments below). However, I've come to realise my personal view of what are "clear install instructions" is not very representative. I think we should ask @ValentinGebhart maybe? Minor comments you can choose to disregard: I'm personally weirded out by "Mamba/Conda/Pip/Pixi" instead of "mamba/conda/pip/pixi" in the documentation but that's very personal no strong feelings here. I'd vote for removing the Spyder part altogether at this point. (User that still use another IDE that VSCode probably know what they are doing anyway. (Probably the same for the "Apps for Working with CLIMADA" ?) Also thinking I think the |
| We commit ``uv.lock`` to the git source tree. | ||
| The lockfile represents the exact environment created when installing CLIMADA from source (with uv). | ||
| Adding or updating dependencies of CLIMADA will change the lockfile, as will upgrading packages within the environment. | ||
| These changes should only be committed if this seems appropriate, either because dependency defintions changed or a default package should or must be upgraded. |
There was a problem hiding this comment.
| These changes should only be committed if this seems appropriate, either because dependency defintions changed or a default package should or must be upgraded. | |
| These changes should only be committed if this seems appropriate, either because dependency definitions changed or a default package should or must be upgraded. |
|
ToDo:
|
So I guess I'll use pip for the integration tests, too.
uv and pip behaved differently when installing eccodes, leaving cfgrib unusable. I added a diagnostic to debug that. I'll remove it. |
|
@spjuhel One strong argument PRO uv in both unit tests and integration tests: Installing dependencies takes ~6s instead of ~60s |
|
@emanuel-schmid Did your merge from |
This PR makes CLIMADA installable with plain
pip, and thus also enables the use ofuv.A sister branch is created in Petals to update the CI configuration there (see add-uv-config). For the moment, Petals cannot be made pip-installable simultaneously, as several dependencies block that.
Changes proposed in this PR:
pyproject.tomlpyproject.tomlto Conda environment specs automatically (withpre-commit).doc/README.mdto reflect these changesThis PR fixes #1100
PR Author Checklist
develop)PR Reviewer Checklist