-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add uv as package manger for the generated project #5434
base: master
Are you sure you want to change the base?
Conversation
bd785eb
to
6bae8e7
Compare
Ready for testing 🎉 cookiecutter https://github.com/foarsitter/cookiecutter-django --checkout uv-generated-project |
8f3ca43
to
d12c2e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a first pass and noted a few things. Haven't reviewed the Dockerfiles yet
Hi, there. I played around with using your fork to update some existing projects and eventually got them working but ended up reverting them to their production (pip) versions so that I could revisit when I had more time. When working on an adapting an existing project, I got an error during the build, which was reproduced when I built a project from scratch using
I believe that it's caused by having the blank |
@steveputman thanks looking into this! During a build you cannot write to the host system. Your interpreter is inside the container together with uv so you can run uv:
Struggled a lot with this and it is not ideal. So hopefully someone has a better solution. |
@foarsitter Your solution is better than mine (I had uv installed on my host system so just ran Thanks for the help! Will let you know if anything else comes up. |
The project itself now uses
uv
and this is an attempt to bringuv
to the generated project too.uv run
for local development. In Docker the .venv python interpreter is added to the $PATH so packages can be used system wide.uv sync
is executed.pre-commit
that compiles a requirements.txttrap
totest_docker.sh
to cleanup after testing so the next time will no fail due to an existing postgres volume.Before we can merge this we need one last round to update all the versions to the latest ones in the requirement.txt files.