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

Explicit Specification of Private Package Repositories #1082

Open
RuslanSergeev opened this issue May 13, 2024 · 1 comment
Open

Explicit Specification of Private Package Repositories #1082

RuslanSergeev opened this issue May 13, 2024 · 1 comment

Comments

@RuslanSergeev
Copy link

RuslanSergeev commented May 13, 2024

Description
I would like to propose a feature that allows users to explicitly specify private package repositories for multiple packages within the rye package manager.

Proposed Configuration:
The configuration could be specified in the pyproject.toml file as follows:

[[tool.rye.sources]]
name = "source1"
url = "https://company.internal/"
[[tool.rye.sources]]
name = "source2"
url = "https://company2.internal/"

Proposed User Interface:
The command-line interface might look like this:

rye add --source source1 package11 --source source2 package21 package22

This aligns with Conda's channel specification:

conda install -c conda-channel package

Or similar to Poetry --source option for add command.

Rationale:
This feature would provide developers with explicit control over package sources, rather than relying on internal resolution mechanisms. This can be particularly important for organizations that manage multiple private repositories and need precise control over which packages are pulled from which sources.

Thank you for considering this feature request. I believe it would greatly enhance the flexibility and usability of rye for many users.

@zanieb
Copy link
Member

zanieb commented May 13, 2024

Cross-linking to astral-sh/uv#171 where we're tracking adding support for this in uv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants