-
Notifications
You must be signed in to change notification settings - Fork 950
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: Handle explicit PyPI source in pyproject.toml
Fixes #7431 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: [[tool.poetry.source]] name = "PyPI" priority = "primary" 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".
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tool.poetry] | ||
name = "PythonProjects" | ||
version = "2.0.0" | ||
homepage = "https://github.com/roghu/py3_projects" | ||
license = "MIT" | ||
readme = "README.md" | ||
authors = ["Dependabot <support@dependabot.com>"] | ||
description = "Various small python projects." | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
requests = "2.18.0" | ||
|
||
[[tool.poetry.source]] | ||
name = "PyPI" | ||
priority = "primary" |