Skip to content

Conversation

@frazane
Copy link
Contributor

@frazane frazane commented Dec 10, 2025

This PR is a temporary fix (waiting for #88 to be merged) for an issue that was making uv fail to solve the environment as specified in the MLFLow logs. When a commit hash is found for an anemoi version, the code was previously checking our fork of anemoi packages (such as anemoi-core) first and then the ECMWF upstream repositories. Because our fork often has outdated tags, the dependencies resolution fails.

Summary of changes

  • the template pyproject.toml is simplified (no versions needed)
  • in set_inference_pyproject.toml we check if the specified commit hash exists in ECMWF repositories first, and then MeteoSwiss forks

@frazane frazane requested a review from dnerini December 10, 2025 17:30
@dnerini dnerini requested a review from hlasco December 10, 2025 19:36
Copy link
Member

@dnerini dnerini left a comment

Choose a reason for hiding this comment

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

Nice one! @hlasco for information since a similar logic is used for inference I believe

@frazane frazane merged commit f7a120d into main Dec 10, 2025
4 checks passed
@frazane frazane deleted the fix/solve-commit branch December 10, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants