question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"pipenv lock --requirements" includes dev requirements

See original GitHub issue

It 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:closed
  • Created 7 years ago
  • Reactions:9
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
jcox-devcommented, Oct 31, 2017

For those that find your way here, this seems to have been addressed in https://github.com/kennethreitz/pipenv/pull/972

3reactions
blueyedcommented, Mar 3, 2017

Yes, I came to the same conclusion.

There should be a separate command for it (generating a requirements file/output) probably.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found