Skip to content

Use uv for installing dynamic dependencies in mypy_test.py and regr_test.py#11517

Merged
AlexWaygood merged 4 commits into
python:mainfrom
AlexWaygood:uv-install
Mar 2, 2024
Merged

Use uv for installing dynamic dependencies in mypy_test.py and regr_test.py#11517
AlexWaygood merged 4 commits into
python:mainfrom
AlexWaygood:uv-install

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

The execution time of mypy_test.py goes down from around 2m10s to around 1m30s in CI

source .venv/bin/activate
echo "Installing packages: $DEPENDENCIES"
uv pip install $DEPENDENCIES --system
uv pip install $DEPENDENCIES

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This just fixes a slight oversight from #11515. We've already created a virtual environment here (we were doing so before we switched to uv), so there's no need to use the --system flag here.

@AlexWaygood

AlexWaygood commented Mar 1, 2024

Copy link
Copy Markdown
Member Author

Interesting! I guess we can't do stubtest_third_party.py for now...

Dog-fooding is so useful :)

@AlexWaygood AlexWaygood changed the title Use uv for installing dynamic dependencies in mypy_test.py, regr_test.py and stubtest_third_party.py Use uv for installing dynamic dependencies in mypy_test.py and regr_test.py Mar 1, 2024
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.

2 participants