Skip to content

Feature request: allow specifying that packages matching *something* should be downloaded from a secondary index #6100

@Kroppeb

Description

@Kroppeb

For our company, all private packages look like companyname-packagename. It would be cool if there were a way to specify that all packages that start with companyname- would be downloaded from a specific secondary index instead of the primary index. For packages that rely on other private packages, we currently have to mention to pipenv that those also come from the private repo explicitly.

Not sure if it would be best to allow specifying a regex or just (one or more) prefix strings.

Eg.

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


[[source]]
url = "..."
verify_ssl = true
name = "company-pypi"
default_for = "companyname-.*"
# or just
default_for = "companyname-"
# or a list
default_for = ["companyname-"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions