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

Grouping packages installed by pip #4010

Closed
ansumanbebarta opened this issue Oct 13, 2016 · 3 comments
Closed

Grouping packages installed by pip #4010

ansumanbebarta opened this issue Oct 13, 2016 · 3 comments
Labels
auto-locked Outdated issues that have been locked by automation C: freeze 'pip freeze' related type: enhancement Improvements to functionality

Comments

@ansumanbebarta
Copy link

  • Pip version:
  • Python version: 2.7+
  • Operating System: All

Description:

I see packages installed to pip belong to different categories. For example, in my case I mainly see 3 different types of packages.

  1. Packages used in project
  2. Packages used only for testing (no need to send to production)
  3. Packages required for IDE (for example I use emacs and I need different python packages)

Now I can store these different types of packages in 3 different requirement files and I can install separately. For example:

  1. requirement_project.txt
  2. requirement_test.txt
  3. requirement_dev.txt

But I need a feature by which I can do a pip freeze with passing some options to give me packages belonging to a single group.

I am not sure whether we have such features now. As per my search it's not there. If it is there please guide me. Otherwise we can decided to have this feature.

@xavfernandez xavfernandez added type: enhancement Improvements to functionality C: freeze 'pip freeze' related labels Oct 13, 2016
@code-R
Copy link

code-R commented Oct 13, 2016

👍

@ppcmiranda
Copy link

My suggestion is to add a -dev optional parameter to pip (example: pip install -dev ). When enabled, pip would install the package as it normally do an add its name to a .pipfreezeignore file placed in a pre-determined directory. So, when pip freeze is used, pip would run as usual and, when writing the requirements.txt file, it would skip the packages which are listed in the .pipfreezeignore file, generating a "production" requirements.txt.

@dstufft
Copy link
Member

dstufft commented Mar 30, 2017

Closing this, this is something that we're unlikely to add although the Requirements 2.0 effort (#1795) may get it close enough to satisfy your use case.

@dstufft dstufft closed this as completed Mar 30, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: freeze 'pip freeze' related type: enhancement Improvements to functionality
Projects
None yet
Development

No branches or pull requests

5 participants