-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Question: Will it also replace pipenv
?
#1465
Comments
Upvote this question, as pip has security concerns when we need to work with several registries private and public ones, and it's great to have lock files so that on CI we don't need to make any additional resolution at all. |
|
It would be nice to be able to just type :
In the meantime, a workaround is : pipenv requirements > requirements.in
uv pip compile requirements.in --generate-hashes -o requirements.txt |
It is my understanding that the community has been trying to standardise a lockfile for years:
And to the best of my knowledge, efforts continue to provide such a standard. It was comforting to see the |
@thomasleveil, you can also pass stdin:
@astrojuanlu, there's a Take 3 (discussion phase, before PEP), continuing from the mousebender project 🙂 |
Just because something is an "official" standard doesn't necessarily mean it's good or well designed -- I think Python of all ecosystems is an example of that. If Python can't settle on a lockfile standard for several more years, I don't see why |
We're building a lock file; see #3347 |
@TheRealBecks Have you made the switch to |
@datalifenyc Yes, absolutely! 😀 I already migrated the first production repositiries at work and the local development instances with Docker container and the production setup is way easier and even faster to set up! Here's an example
I use I also deactivated the Windows build as we don't use Windows and
With You can use the 'old' way of activating an environment with
You can also run tools like FastAPI (see this documentation) with that command:
Or put everything into Docker. While writing this comment it came into my mind to create an example project with TheRealBecks/uv-ansible-exampleI hope this will help you and also other users (including myself 😀) |
@TheRealBecks Thank you for the detailed project setup and ansible repo! This will definitely simplify my transition, especially with the references to fastapi and docker. |
Have you already heard about pipenv? I saw that you talking about replacing several package managers and virtualization managers, but I didn't see you mentioning
pipenv
.Key benefits of using
pipenv
:pip
andvenv
requirements.txt
, but a structuredPipfile
Pipfile
will result in aPipfile.lock
that uses hashes to strengthen the security, but also allows to install binary-equal versions on several platform, so you development install can be equally to the production setup on a serverEspecially using a
.lock
with hashes file instead of therequirements.txt
is a killer feature. I would love to see something equal atuv
.The text was updated successfully, but these errors were encountered: