Skip to content

Migrate venv management and requirements to uv#374

Open
nils-werner wants to merge 2 commits intoHermanMartinus:masterfrom
nils-werner:uv-project
Open

Migrate venv management and requirements to uv#374
nils-werner wants to merge 2 commits intoHermanMartinus:masterfrom
nils-werner:uv-project

Conversation

@nils-werner
Copy link
Copy Markdown

@nils-werner nils-werner commented Sep 7, 2025

This MR migrates the manual management of requirements using a requirements.txt file to uv.

This completely gets rid of manual venv management, so instead of

python -m venv .env
source .env/activate
pip install -r requirements.txt
python manage.py

You can simply let uv do all of that and run

uv run manage.py

And allows for very convenient dependency management, e.g. to later bump a dependency, all you have to do is

uv lock --upgrade-package <pkg>

or upgrade all of them

uv lock --upgrade

and many more quality of life improvements.

Heroku supports uv out of the box and even mentions it in a recent blogpost.

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.

1 participant