-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Added support for repositories in global config and global default repository #2074
Added support for repositories in global config and global default repository #2074
Conversation
…itory support similar to index-url from pip, multiple repositories support to search, init and add commands
@sdispater I can't reproduce test failures locally, can you please suggest what I should do now?
|
I pulled your branch and ran the tests, and they are failing for me locally :( I could really use this contribution where I work!
|
I need this as well. Would like to help if possible. |
@BrandonLWhite @mcouthon feel free to take over this PR. I have no interest in driving it further - my freelance contract for this client was terminated due to corona situation. But even before that I migrated most apps of that team to |
Closing, as author resigned from it. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR adds two features:
Support for defining repositories in global config which can be used by search, init and add commands. It also fixes repository order for all commands (which should fix Private repos don't actually take precedence #1677)
Possibility to set a repository from global config as a default, making poetry to ignore all other repositories (behaviour similar to index-url from pip - explained in great details in Replacing the URL of a source (e.g. PyPI) at the global level #1632). In short - this feature is required in many enterprise environments where all packages should be fetched from private PyPI repo which hosts company's own packages and acts as a caching proxy/mirror to official PyPI repositories. In some companies does security scans, license checks, etc. and forbids some public packages form being installed. This feature was actually the main motivation for this PR but without proper support for repositories in global config it would look very hacky.
Pull Request Check List