-
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
Add ability to specify package sources that are not scanned/used by default #4035
Comments
+1 for this! Adding fuel to the fire, I can view the access log for my private package repository -- and poetry always scans I tested with a project that has no private dependencies, and by adding a new source, but without changing dependencies at all the |
With transitive dependencies in mind, the only way I can think to address this is with your suggestion for a |
I'd really love to move this feature forward! Every time I need to update packages at work I have to sit there watching poetry I just heard about @python-poetry/triage Hi! 👋 |
I'm also experiencing it and having builds take 30+ minutes longer when using one |
this should be absorbed into #6713 |
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. |
Feature Request
When specifying additional sources in pyproject.toml as "secondary", the current behavior of Poetry is to include this source in all of it's scans for dependency resolution for adding or installing packages. This is almost entirely unnecessary in many cases, as a secondary source is normally only needed to install very specific packages and would not normally host any other packages from pypi (and if they do, it's likely not "secondary" then but "default".)
Since this behavior is already defined, I'd like to propose a third option,
targeted
which specifies that a source should be used only if a dependency definition explicitly specifies it in it'ssource
parameter. That package's dependencies would be scanned from that repository, but it would be otherwise ignored.One specific reason that this is desperately needed is that in several of my corporate projects, we use Azure DevOps artifacts system private PyPI. This system is notoriously slow and a small project's dependency resolution scan take upwards of 10 minutes with Poetry scanning it for every single project dependency. To mitigate this, we currently force
source="pypi"
in all dependency specifications to target it specifically.The text was updated successfully, but these errors were encountered: