Skip to content

chore: update uv.lock (mlflow 3.14.0 new deps) - #1843

Closed
sephmard wants to merge 2 commits into
mainfrom
chore/update-uv-lock
Closed

sephmard wants to merge 2 commits into
mainfrom
chore/update-uv-lock

Conversation

@sephmard

@sephmard sephmard commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Excludes new unwanted mlflow transitive deps from uv.lock and regenerates the lockfile.

What changed

mlflow 3.14.0 updated its PyPI metadata to declare matplotlib, scikit-learn, scipy (and their transitive deps: contourpy, cycler, joblib, kiwisolver, narwhals, pillow, threadpoolctl) as dependencies. Gym does not use these packages — mlflow is only used in gitlab_utils.py as an HTTP client for the GitLab model registry API.

These 10 packages are added to the existing exclude-dependencies list in pyproject.toml (alongside flask, sqlalchemy, etc.) so they are never pulled into Gym installs.

Test plan

  • uv sync succeeds on a clean venv
  • Existing unit tests pass

🤖 Generated with Claude Code

mlflow 3.14.0 now declares matplotlib, scikit-learn, and scipy as
dependencies (metadata updated on PyPI). Regenerating the lock file
picks up these packages and their transitive dependencies.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Seph Mard <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

mlflow 3.14.0 updated its PyPI metadata to declare matplotlib,
scikit-learn, scipy (and their transitive deps: contourpy, cycler,
joblib, kiwisolver, narwhals, pillow, threadpoolctl) as dependencies.
Gym does not use these packages — mlflow is only used in gitlab_utils.py
as an HTTP client for the GitLab model registry API.

Add all 10 packages to exclude-dependencies alongside the existing
mlflow exclusions (flask, sqlalchemy, etc.) and regenerate uv.lock.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Seph Mard <[email protected]>
@sephmard
sephmard requested a review from kajalj22 June 30, 2026 21:10
@sephmard

sephmard commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor Author

This PR was extracted from a reviewer request on #1840. @kajalj22 asked to update uv.lock after the all = ["nemo-gym[dev,sandbox]"] extra was added to pyproject.toml. When regenerating the lock file, we found that mlflow 3.14.0 had updated its PyPI metadata to declare new heavy dependencies (matplotlib, scikit-learn, scipy, etc.) that Gym does not use. Rather than pulling those into the lock, we excluded them alongside the existing mlflow exclusions. See #1840 for the originating change.

@anwithk
anwithk self-requested a review July 1, 2026 03:49
@anwithk anwithk added the r0.4.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. label Jul 1, 2026
@sephmard

sephmard commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Closing — this PR was based on a misunderstanding. The 10 packages (matplotlib, scipy, narwhals, etc.) were added to exclude-dependencies by mistake; PR #1835 deliberately removed them because server venvs depend on them. The uv.lock refresh can come as a separate clean PR from current main when needed.

@sephmard sephmard closed this Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r0.4.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants