-
Notifications
You must be signed in to change notification settings - Fork 1k
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
python: Handle explicit PyPI source in pyproject.toml #7499
python: Handle explicit PyPI source in pyproject.toml #7499
Conversation
python/spec/dependabot/python/update_checker/index_finder_spec.rb
Outdated
Show resolved
Hide resolved
97fc090
to
92d6963
Compare
cc @jeffwidman or @pavera as my go-to python people, could you take a quick look at this? |
@jurre any ETA on this fix? It's really crippling teams upgraded to latest Poetry... should we downgrade? |
I'll try to take a deeper look at this later this week, we're planning to invest some more time into Python and Python package manager work this quarter, as we know we're a little behind on supporting the newest versions. |
python/spec/dependabot/python/update_checker/index_finder_spec.rb
Outdated
Show resolved
Hide resolved
3d0ab55
to
da3ec60
Compare
da3ec60
to
0349820
Compare
Thanks @torarvid and @GriceTurrble for the patience. I amended this PR with Galen's suggestions and a slightly simpler approach, and hope to be deploying it soon! |
Thanks, @deivid-rodriguez! I'm very happy to see this fix go in 👍🏼 |
Test failures here are unrelated and should be fixed by #7862. |
0349820
to
1b5d374
Compare
1b5d374
to
1ec2fbe
Compare
1ec2fbe
to
0e2fe26
Compare
When a github user has poetry >= 1.5.0, they will be nagged by a warning to run `poetry source add pypi`, which will add the following section to the users pyproject.toml: ```toml [[tool.poetry.source]] name = "PyPI" priority = "primary" ``` This causes the problem that the index_finder will fail due to this section missing a url. This commit works around this issue by skip that case, since we will default to the pypi official url anyways in that case. Co-authored-by: Galen Rice <galen.rice@torqata.com>
0e2fe26
to
15078eb
Compare
Fixes #7431.
Fixes #7724.
When a github user has poetry >= 1.5.0, they will be nagged by a warning to run
poetry source add pypi
, which will add the following section to the users pyproject.toml:This causes the problem outlined in #7431, that the index_finder will fail due to this section missing a
url
.This commit works around this issue by explicitly adding a url for the case where the source "name" is equal to "PyPI".