Skip to content
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

Use pip-compile to manage requirements #32

Open
Valian opened this issue Dec 5, 2020 · 0 comments
Open

Use pip-compile to manage requirements #32

Valian opened this issue Dec 5, 2020 · 0 comments

Comments

@Valian
Copy link

Valian commented Dec 5, 2020

It makes it obvious what are the "real" requirements and makes it easy to manage them. It's my standard approach in all projects and seems to be better than requirements_freeze.py (because it's widely used and maintained by other people)

https://github.com/jazzband/pip-tools

Example

# requirements.in
django

run pip-compile requirements.in:

$ pip-compile requirements.in
$ cat requirements.txt
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile requirements.in
#
asgiref==3.2.3    # via django
django==3.0.3    # via -r requirements.in
pytz==2019.3    # via django
sqlparse==0.3.0    # via django

It will produce requirements.txt, with all the Django dependencies
(and all underlying dependencies) pinned.

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

No branches or pull requests

1 participant