Explicitly add PyPI as default package source for poetry

Fix the following warning:

Warning: In a future version of Poetry, PyPI will be disabled
automatically if at least one custom primary source is configured.
In order to avoid a breaking change and make your pyproject.toml
forward compatible, add PyPI explicitly via 'poetry source add pypi'.
By the way, this has the advantage that you can set the priority of
PyPI as with any other source.
This commit is contained in:
Nicola Soranzo
2023-09-02 21:59:31 +01:00
parent 3faab5176d
commit bd2e8a4f13
+5
View File
@@ -22,9 +22,14 @@ homepage = "https://galaxyproject.org/"
repository = "https://github.com/galaxyproject/galaxy/"
documentation = "https://docs.galaxyproject.org/"
[[tool.poetry.source]]
name = "PyPI"
priority = "default"
[[tool.poetry.source]]
name = "galaxyproject"
url = "https://wheels.galaxyproject.org/simple"
priority = "primary"
[tool.poetry.dependencies]
a2wsgi = "*"