Migrate to uv as primary package manager for Python#584
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the pipeline’s Python environment management from requirements.txt/venv-first workflows to uv using pyproject.toml + uv.lock, while keeping Conda as an optional supported path. It updates activation scripts, CI workflows, Renovate config, and documentation to align with the new dependency source of truth.
Changes:
- Introduces
pyproject.toml+uv.lockand removesrequirements.txt, making uv the default Python environment path. - Adds
activateUvEnvironment.shand updates report compilation + compatibility checks to use uv (with Conda still supported viaPYTHON_PACKAGE_MANAGER=conda). - Updates GitHub workflows (new uv/conda checks; public reusable workflow gets a new
python-package-managerinput) plus docs and Renovate rules.
Reviewed changes
Copilot reviewed 19 out of 21 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
scripts/reports/compilations/PythonReports.sh |
Switch Python report environment activation from venv script to uv activation script. |
scripts/checkCompatibility.sh |
Update compatibility checks to reflect uv/conda environment options and remove standalone python/pip requirements. |
scripts/activateUvEnvironment.sh |
Add uv-based environment sync + .venv activation (cross-platform). |
scripts/activatePythonEnvironment.sh |
Remove venv-based activation script. |
scripts/activateCondaEnvironment.sh |
Gate Conda activation behind PYTHON_PACKAGE_MANAGER=conda and document deprecation of old var. |
requirements.txt |
Delete legacy pip requirements file. |
renovate.json |
Switch Renovate’s “stable Python versions” rule to use the uv manager; enable conda env regex updates. |
README.md |
Document uv as primary Python manager; Conda as optional path with PYTHON_PACKAGE_MANAGER=conda. |
pyproject.toml |
Add canonical Python dependency list and uv tool section. |
conda-environment.yml |
Sync versions/packages with pyproject.toml (e.g., pandas, neo4j) and update header note. |
COMMANDS.md |
Add uv setup instructions and keep Conda setup path. |
AGENTS.md |
Update instruction applicability table to reference pyproject.toml instead of requirements.txt. |
.github/workflows/public-analyze-code-graph.yml |
Add python-package-manager input and uv setup step; pass PYTHON_PACKAGE_MANAGER into analysis. |
.github/workflows/internal-typescript-code-analysis.yml |
Remove requirements.txt path override from workflow triggers. |
.github/workflows/internal-java-code-analysis.yml |
Remove requirements.txt path override from workflow triggers. |
.github/workflows/internal-check-python-venv-support.yml |
Remove obsolete venv environment check workflow. |
.github/workflows/internal-check-python-uv-support.yml |
Add CI check that uv sync --frozen works and key imports succeed. |
.github/workflows/internal-check-conda-support.yml |
Add CI check for Conda environment activation + key imports. |
.github/prompts/plan-uvAsPrimaryPackageManager.prompt.md |
Add implementation plan for the migration (prompt/documentation artifact). |
.github/instructions/python-dependencies.instructions.md |
Update dependency conventions: pyproject.toml canonical; uv/conda verification steps. |
fbdbda3 to
de38e79
Compare
3b00a89 to
e13c00e
Compare
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.
🚀 Feature
uv; update scripts, workflows, and add uv.lock.⚙️ Optimization
🛠 Fix
Reintroduce package to run Jupyter notebooks: Restore required notebook package in environment/requirements so Jupyter notebooks run.
Fix plotly kaleido orjson type issues: Resolve typing issues for
plotly/kaleidoandorjsonin visualization scripts.