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

Include globally configured repositories as fallback package sources #625

Closed
1 task done
abn opened this issue Nov 14, 2018 · 5 comments
Closed
1 task done

Include globally configured repositories as fallback package sources #625

abn opened this issue Nov 14, 2018 · 5 comments

Comments

@abn
Copy link
Member

abn commented Nov 14, 2018

  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

As per current behavior, repositories added and configured via poetry config will not be used unless configured as sources within the project pyporject.toml file.

It would be useful, if we change the default behavior so as to make the second step is not mandatory. This would mean that a configured/added repository will be searched if the package is not available in any of the project specific sources prior to checking PyPI public repository.

An example, this is useful under CI/CD environments where controlled builds of dependent packages are required from a private repository without modifying checked out source.

@bjoernpollex
Copy link
Contributor

bjoernpollex commented Nov 19, 2018

I would go so far as to actually override the package repository. I use a local devpi server that mirrors PyPI, and ideally I want all requests to got through that.

abn added a commit to abn/poetry that referenced this issue Nov 30, 2018
This change adds globally configured extra repositories from config.toml
as dependency sources. These are added after project specific sources
and before PyPI.

Resolves: python-poetry#625
@abn
Copy link
Member Author

abn commented Nov 30, 2018

@bjoernpollex i reckon that should be a separate feature; ie. disable a repository by name or similar. In this particular case I'd want to check a private repository first and if that fails fetch the package from PyPI. This is especially useful when using patched builds that have not been released upstream yet.

abn added a commit to abn/poetry that referenced this issue Dec 24, 2018
This change adds globally configured extra repositories from config.toml
as dependency sources. These are added after project specific sources
and before PyPI.

Resolves: python-poetry#625
@stale
Copy link

stale bot commented Nov 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 13, 2019
@stale
Copy link

stale bot commented Nov 20, 2019

Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants