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

Specifying categories when installing from a requirements.txt #5722

Closed
kaine-bruce-dmt opened this issue Jun 6, 2023 · 4 comments · Fixed by #5826
Closed

Specifying categories when installing from a requirements.txt #5722

kaine-bruce-dmt opened this issue Jun 6, 2023 · 4 comments · Fixed by #5826
Labels
Contributor Candidate The issue has been identified/triaged and contributions are welcomed/encouraged. Type: Enhancement 💡 This is a feature or enhancement request.

Comments

@kaine-bruce-dmt
Copy link

kaine-bruce-dmt commented Jun 6, 2023

I am converting an in-house python project to use pipenv.

We have 9 different requirements.txt depending on what stage of the build/testing we're at, each with a different name.

As such we're looking to use categories

I was surprised when the below didn't work (it adds it to [packages])

pipenv install -r ./req-test.txt --categories test

When this does:

pipenv install -r ./req-test.txt --dev

Describe the solution you'd like

#req-test.txt
requests
pipenv install -r ./req-test.txt --categories test
#Pipfile

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[test]
requests = "*"

[requires]
python_version = "3.10"

I realise this might be a strange use case, but I just thought it made sense :)

@matteius matteius added Type: Enhancement 💡 This is a feature or enhancement request. Contributor Candidate The issue has been identified/triaged and contributions are welcomed/encouraged. labels Jun 6, 2023
@matteius
Copy link
Member

matteius commented Jun 6, 2023

It makes sense, I am just short on time to work on all these enhancement requests, so I am hoping that someone else will pick this one up since it seems straight forward.

@kaine-bruce-dmt
Copy link
Author

No worries Matt! If I get some free time myself, I might have a looksie.

@DasaniT
Copy link

DasaniT commented Aug 9, 2023

Hi, is this still open and if so can I work on this?
if yes, should I add a new option like --category or use --categories? because giving multiple options here is not really meaningful.

@kaine-bruce-dmt
Copy link
Author

kaine-bruce-dmt commented Aug 10, 2023

Yes, fill your boots! --categories is probably the way to go. Keeps it in line with what we currently have. I do see your point, but maybe someone does want to install requirements.txt into multiple categories shrug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor Candidate The issue has been identified/triaged and contributions are welcomed/encouraged. Type: Enhancement 💡 This is a feature or enhancement request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants