From bd2e8a4f13ef721c5e84a56810985ef3528838e2 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Sat, 2 Sep 2023 21:49:05 +0100 Subject: [PATCH] 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. --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 0d96d9c7502..e5cc3ba7a37 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "*"