"pipenv lock --requirements" includes dev requirements
See original GitHub issueIt should behave like pipenv install
, where you have to specify --dev
to install development packages explicitly.
My use case it pip install -r <(pipenv lock --requirements) -t build/upload
to generate a directory with the packages required for the app - that should not include development packages (by default).
Issue Analytics
- State:
- Created 7 years ago
- Reactions:9
- Comments:9 (8 by maintainers)
Top Results From Across the Web
"pipenv lock --dev --requirements" doesn't include default ...
Issue description pipenv lock --dev --requirements > requirements.txt generates a requirement.txt that doesn't include the default packages.
Read more >Advanced Usage of Pipenv - Read the Docs
This document covers some of Pipenv's more glorious and advanced features. ... pipenv lock -r > requirements.txt $ pipenv lock -r --dev-only ...
Read more >pipenv lock [> requirements.txt] - Fig.io
Name, Description. --dev-only, Generate a requirements file with only the development requirements. --header, Add header to generated requirements.
Read more >How to freeze a requirement with pipenv? - Stack Overflow
Pipenv do natively implement freezing requirements.txt. It is as simple as: pipenv lock -r > requirements.txt.
Read more >pipenv Documentation - Read the Docs
Generates and checks file hashes for locked dependencies when installing from Pipfile.lock. • Automatically install required Python version when pyenv is ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For those that find your way here, this seems to have been addressed in https://github.com/kennethreitz/pipenv/pull/972
Yes, I came to the same conclusion.
There should be a separate command for it (generating a requirements file/output) probably.