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.

Production-only dependencies

See original GitHub issue

I’ve used the practice of having dev-requirements.txt, requirements.txt, and prod-requirements in my work. While the former two can be replaced by Pipfile’s [dev-packages] and [packages], but it seems I can’t find any correspondents for Pipfile.

The usual purpose of prod-requirements.txt is, for example, installing packages related to AWS or raven to record server-side exceptions.

I want to sweepingly introduce Pipenv to my work, but the lack of [prod-packages] (or whatever we call it) prevent it from leave a single list of packages. I need to have both Pipenv and prod-requirements.txt which share the many common items, and also need to edit both files when I change dependencies. It’s also hard to keep deployment scripts straightforward.

So I suggest Pipfile to have [prod-packages] list and pipenv install to have -p/--prod option. Do this suggestion make sense?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:36
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

34reactions
trewcommented, Oct 17, 2019

So if [packages] is production dependencies and [dev-packages] is development dependencies, why does pipenv install --dev also install production dependencies? There needs to either be a command to install only [dev-packages] or introduction of [prod-packages].

13reactions
kennethreitzcommented, May 16, 2018

There is not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to only install production dependencies and then some ...
Running docker build . produces an image that has node_modules containing not only the deps I wanted but also the development dependencies. ...
Read more >
Production vs Development Dependencies - Real Python
It's often the case that you'll want specific packages installed in your development environment that you don't want installed in your production ......
Read more >
Do npm dependencies and devDependencies effect your ...
A: Both dependencies and devDependencies are installed to the local node_modules folder on a yarn install or npm install , but only dependencies ......
Read more >
Adding dependencies to a package.json file - npm Docs
"dependencies" : Packages required by your application in production. "devDependencies" : Packages that are only needed for local development and testing.
Read more >
Demystifying `devDependencies` and `dependencies`
Alternatively, there is a dependency that is necessary in both production and development. In this case, it can be added to dependencies ,...
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 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