From 4c637ce107ad029ee43409c598f961d5d77e00bf Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Sun, 3 Nov 2024 18:04:54 +0000 Subject: [PATCH] Add workaround for uv bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/astral-sh/uv/issues/6127 Resolving dependencies using Python 3.8 with: ``` uv lock -p python3.8 ``` failed with: ``` Using CPython 3.8.18 interpreter at: /opt/hostedtoolcache/Python/3.8.18/x64/bin/python × No solution found when resolving dependencies for split (python_full_version == '3.9.*'): ╰─▶ Because only the following versions of rucio-clients{python_full_version >= '3.9'} are available: rucio-clients{python_full_version >= '3.9'}<=33.6.1 rucio-clients{python_full_version >= '3.9'}>=34.0.0,<=34.6.0 rucio-clients{python_full_version >= '3.9'}>=35.0.0 and the current Python version (3.8.18) does not satisfy Python>=3.9,<4, we can conclude that rucio-clients{python_full_version >= '3.9'}>=33.6.0 is incompatible. And because galaxy:dev depends on rucio-clients{python_full_version >= '3.9'}>=33.6.0 and your project depends on galaxy:dev, we can conclude that your project's requirements are unsatisfiable. ``` See https://github.com/galaxyproject/galaxy/actions/runs/11639391248/job/32415501724 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index b50664156ef4..381258c8d880 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -236,6 +236,7 @@ keep-runtime-typing = true [tool.uv] default-groups = [] +environments = ["python_full_version == '3.8'", "python_full_version >= '3.9'"] # https://github.com/astral-sh/uv/issues/6127 extra-index-url = ["https://wheels.galaxyproject.org/simple"] index-strategy = "unsafe-best-match" package = false