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.

Is there a way to have multiple package lists in adition to [packages] and [dev-packages] in our Pipfile?

See original GitHub issue

Been searching all around but my google skills are failing me.

I have a project in which I have a client and a server which have different package requirements, I’d like to be able to have them be separate in my Pipfile (like its done in [packages] vs [dev-packages]), or maybe have different Pipfiles, not sure how this is usually solved in pipenv. Normally I would have just created several requirements.txt files, but I really really like pipenv’s Pipfiles!

So ideally I would be able to do pipenv install --server or pipenv install --client much in the same way I can now do pipenv install/pipenv install --dev.

Is this possible atm?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

uranusjrcommented, May 7, 2018

Yes, and you can set up some scripts to help improving the setup experience:

install-client = "pip install client-requirements.txt"
install-server = "pip install server-requirements.txt"

This way the set up (for a server) would be

pipenv install
pipenv run install-server
techalchemycommented, May 7, 2018

FYI Kenneth has already rejected this a number of times. It’s going to take a persuasive use case to move him (and me for that matter) on this point. Too many knobs is likely to cause more harm than good.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipenv: Python's Official Package Management tool
Pipfile is basically a TOML file that has all the details of the different dependencies/packages and the version of Python used in the...
Read more >
Identifying the dependency relationship for python packages ...
Use pip install --no-install <package_name> to list specific requirements. Use virtualenv if you don't. Share.
Read more >
Advanced Usage of Pipenv
PIPENV_PIPFILE — When running pipenv from a $PWD other than the same directory where the Pipfile is located, instruct pipenv to find the...
Read more >
Stop everything! Start using Pipenv! - Bryson Tyrrell
There are two groups for listing packages: dev-packages and packages. In a Pipfile these lists follow how we were handling this where only...
Read more >
Pipenv: A Guide to the New Python Packaging Tool
Additionally, it will cover how Pipenv fits in with previous methods for ... It also introduces two new files, the Pipfile (which 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 Post

No results found

github_iconTop Related Hashnode Post

No results found