Skip to content

Specifying categories when installing from a requirements.txt #5722

@kaine-bruce-dmt

Description

@kaine-bruce-dmt

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Contributor CandidateThe issue has been identified/triaged and contributions are welcomed/encouraged.Type: Enhancement 💡This is a feature or enhancement request.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions