uv
uv copied to clipboard
Allow pre-releases when using compatible release syntax
trafficstars
Description
:wave: If you use the compatible release syntax with uv pip install the install can fail if there is a dev release for the target package as that can be selected by the compatible release, but uv will then error and hint that
hint: papermill was requested with a pre-release marker (e.g., papermill>2.5.0,<2.6.dev0), but pre-releases weren't enabled (try: `--prerelease=allow`)
The desired solution would allow for using the compatible release syntax without needing to use --prerelease=allow.
Requested information
- A minimal code snippet that reproduces the bug.
uv pip install 'papermill~=2.5.0'
or, more fully
$ docker run --rm -ti python:3.12 bin/bash
root@277786dfca2e:/# python -m venv venv && . venv/bin/activate
(venv) root@277786dfca2e:/# pip install uv
Collecting uv
Downloading uv-0.1.24-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (25 kB)
Downloading uv-0.1.24-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.4/11.4 MB 42.6 MB/s eta 0:00:00
Installing collected packages: uv
Successfully installed uv-0.1.24
(venv) root@277786dfca2e:/# uv pip install --verbose 'papermill~=2.5.0'
INFO Found a virtualenv through VIRTUAL_ENV at: /venv
DEBUG Cached interpreter info for Python 3.12.2, skipping probing: venv/bin/python
DEBUG Using Python 3.12.2 environment at venv/bin/python
DEBUG Using registry request timeout of 300s
DEBUG Solving with target Python version 3.12.2
DEBUG Adding direct dependency: papermill>=2.5.0, <2.6.dev0
DEBUG Found fresh response for: https://pypi.org/simple/papermill/
DEBUG Searching for a compatible version of papermill (>=2.5.0, <2.6.dev0)
DEBUG Selecting: papermill==2.5.0 (papermill-2.5.0-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/ef/df/a81912b5c70852db6cce7f4f7671ecfa3ac457b59d20062b06ac6c89b938/papermill-2.5.0-py3-none-any.whl.metadata
DEBUG Adding transitive dependency: click*
DEBUG Adding transitive dependency: pyyaml*
DEBUG Adding transitive dependency: nbformat>=5.1.2
DEBUG Adding transitive dependency: nbclient>=0.2.0
DEBUG Adding transitive dependency: tqdm>=4.32.2
DEBUG Adding transitive dependency: requests*
DEBUG Adding transitive dependency: entrypoints*
DEBUG Adding transitive dependency: tenacity>=5.0.2
DEBUG Adding transitive dependency: aiohttp==3.9.0b0
DEBUG Found fresh response for: https://pypi.org/simple/click/
DEBUG Found fresh response for: https://pypi.org/simple/nbformat/
DEBUG Found fresh response for: https://pypi.org/simple/nbclient/
DEBUG Found fresh response for: https://pypi.org/simple/tenacity/
DEBUG Found fresh response for: https://pypi.org/simple/tqdm/
DEBUG Found fresh response for: https://pypi.org/simple/requests/
DEBUG Found fresh response for: https://pypi.org/simple/entrypoints/
DEBUG Found fresh response for: https://pypi.org/simple/pyyaml/
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/b0/4c/20b6c8b6d7cc17b0481eb49c18f23b76f913ab3e6580a57515cd9727ca43/nbformat-5.10.3-py3-none-any.whl.metadata
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/66/e8/00517a23d3eeaed0513e718fbc94aab26eaa1758f5690fc8578839791c79/nbclient-0.10.0-py3-none-any.whl.metadata
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl.metadata
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/f4/f1/990741d5bb2487d529d20a433210ffa136a367751e454214013b441c4575/tenacity-8.2.3-py3-none-any.whl.metadata
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/2a/14/e75e52d521442e2fcc9f1df3c5e456aead034203d4797867980de558ab34/tqdm-4.66.2-py3-none-any.whl.metadata
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/35/a8/365059bbcd4572cbc41de17fd5b682be5868b218c3c5479071865cab9078/entrypoints-0.4-py3-none-any.whl.metadata
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/b4/33/720548182ffa8344418126017aa1d4ab4aeec9a2275f04ce3f3573d8ace8/PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
DEBUG Searching for a compatible version of click (*)
DEBUG Selecting: click==8.1.7 (click-8.1.7-py3-none-any.whl)
DEBUG Searching for a compatible version of pyyaml (*)
DEBUG Selecting: pyyaml==6.0.1 (PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl)
DEBUG Searching for a compatible version of nbformat (>=5.1.2)
DEBUG Selecting: nbformat==5.10.3 (nbformat-5.10.3-py3-none-any.whl)
DEBUG Adding transitive dependency: fastjsonschema*
DEBUG Adding transitive dependency: jsonschema>=2.6
DEBUG Adding transitive dependency: jupyter-core*
DEBUG Adding transitive dependency: traitlets>=5.1
DEBUG Searching for a compatible version of nbclient (>=0.2.0)
DEBUG Selecting: nbclient==0.10.0 (nbclient-0.10.0-py3-none-any.whl)
DEBUG Adding transitive dependency: jupyter-client>=6.1.12
DEBUG Adding transitive dependency: jupyter-core>=4.12, <5.0.dev0 | >=5.1.dev0
DEBUG Adding transitive dependency: nbformat>=5.1
DEBUG Adding transitive dependency: traitlets>=5.4
DEBUG Searching for a compatible version of tqdm (>=4.32.2)
DEBUG Selecting: tqdm==4.66.2 (tqdm-4.66.2-py3-none-any.whl)
DEBUG Searching for a compatible version of requests (*)
DEBUG Selecting: requests==2.31.0 (requests-2.31.0-py3-none-any.whl)
DEBUG Adding transitive dependency: charset-normalizer>=2, <4
DEBUG Adding transitive dependency: idna>=2.5, <4
DEBUG Adding transitive dependency: urllib3>=1.21.1, <3
DEBUG Adding transitive dependency: certifi>=2017.4.17
DEBUG Searching for a compatible version of entrypoints (*)
DEBUG Selecting: entrypoints==0.4 (entrypoints-0.4-py3-none-any.whl)
DEBUG Searching for a compatible version of tenacity (>=5.0.2)
DEBUG Selecting: tenacity==8.2.3 (tenacity-8.2.3-py3-none-any.whl)
DEBUG No cache entry for: https://pypi.org/simple/traitlets/
DEBUG No credentials found for: https://pypi.org/simple/traitlets/
DEBUG Found fresh response for: https://pypi.org/simple/fastjsonschema/
DEBUG Found fresh response for: https://pypi.org/simple/jsonschema/
DEBUG Found fresh response for: https://pypi.org/simple/jupyter-core/
DEBUG Found fresh response for: https://pypi.org/simple/idna/
DEBUG Found fresh response for: https://pypi.org/simple/urllib3/
DEBUG Found fresh response for: https://pypi.org/simple/jupyter-client/
DEBUG Found fresh response for: https://pypi.org/simple/certifi/
DEBUG Found fresh response for: https://pypi.org/simple/charset-normalizer/
DEBUG No cache entry for: https://files.pythonhosted.org/packages/9c/b9/79691036d4a8f9857e74d1728b23f34f583b81350a27492edda58d5604e1/fastjsonschema-2.19.1-py3-none-any.whl.metadata
DEBUG No credentials found for: https://files.pythonhosted.org/packages/9c/b9/79691036d4a8f9857e74d1728b23f34f583b81350a27492edda58d5604e1/fastjsonschema-2.19.1-py3-none-any.whl.metadata
DEBUG No cache entry for: https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl.metadata
DEBUG No credentials found for already-seen URL: https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl.metadata
DEBUG No credentials found for: https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl.metadata
DEBUG No cache entry for: https://files.pythonhosted.org/packages/c9/fb/108ecd1fe961941959ad0ee4e12ee7b8b1477247f30b1fdfd83ceaf017f0/jupyter_core-5.7.2-py3-none-any.whl.metadata
DEBUG No credentials found for already-seen URL: https://files.pythonhosted.org/packages/c9/fb/108ecd1fe961941959ad0ee4e12ee7b8b1477247f30b1fdfd83ceaf017f0/jupyter_core-5.7.2-py3-none-any.whl.metadata
DEBUG No credentials found for: https://files.pythonhosted.org/packages/c9/fb/108ecd1fe961941959ad0ee4e12ee7b8b1477247f30b1fdfd83ceaf017f0/jupyter_core-5.7.2-py3-none-any.whl.metadata
DEBUG No cache entry for: https://files.pythonhosted.org/packages/39/9d/b035d024c62c85f2e2d4806a59ca7b8520307f34e0932fbc8cc75fe7b2d9/jsonschema-4.21.1-py3-none-any.whl.metadata
DEBUG No credentials found for already-seen URL: https://files.pythonhosted.org/packages/39/9d/b035d024c62c85f2e2d4806a59ca7b8520307f34e0932fbc8cc75fe7b2d9/jsonschema-4.21.1-py3-none-any.whl.metadata
DEBUG No credentials found for: https://files.pythonhosted.org/packages/39/9d/b035d024c62c85f2e2d4806a59ca7b8520307f34e0932fbc8cc75fe7b2d9/jsonschema-4.21.1-py3-none-any.whl.metadata
DEBUG No cache entry for: https://files.pythonhosted.org/packages/a2/73/a68704750a7679d0b6d3ad7aa8d4da8e14e151ae82e6fee774e6e0d05ec8/urllib3-2.2.1-py3-none-any.whl.metadata
DEBUG No credentials found for already-seen URL: https://files.pythonhosted.org/packages/a2/73/a68704750a7679d0b6d3ad7aa8d4da8e14e151ae82e6fee774e6e0d05ec8/urllib3-2.2.1-py3-none-any.whl.metadata
DEBUG No credentials found for: https://files.pythonhosted.org/packages/a2/73/a68704750a7679d0b6d3ad7aa8d4da8e14e151ae82e6fee774e6e0d05ec8/urllib3-2.2.1-py3-none-any.whl.metadata
DEBUG No cache entry for: https://files.pythonhosted.org/packages/75/6d/d7b55b9c1ac802ab066b3e5015e90faab1fffbbd67a2af498ffc6cc81c97/jupyter_client-8.6.1-py3-none-any.whl.metadata
DEBUG No credentials found for already-seen URL: https://files.pythonhosted.org/packages/75/6d/d7b55b9c1ac802ab066b3e5015e90faab1fffbbd67a2af498ffc6cc81c97/jupyter_client-8.6.1-py3-none-any.whl.metadata
DEBUG No credentials found for: https://files.pythonhosted.org/packages/75/6d/d7b55b9c1ac802ab066b3e5015e90faab1fffbbd67a2af498ffc6cc81c97/jupyter_client-8.6.1-py3-none-any.whl.metadata
DEBUG No cache entry for: https://files.pythonhosted.org/packages/ba/06/a07f096c664aeb9f01624f858c3add0a4e913d6c96257acb4fce61e7de14/certifi-2024.2.2-py3-none-any.whl.metadata
DEBUG No credentials found for already-seen URL: https://files.pythonhosted.org/packages/ba/06/a07f096c664aeb9f01624f858c3add0a4e913d6c96257acb4fce61e7de14/certifi-2024.2.2-py3-none-any.whl.metadata
DEBUG No credentials found for: https://files.pythonhosted.org/packages/ba/06/a07f096c664aeb9f01624f858c3add0a4e913d6c96257acb4fce61e7de14/certifi-2024.2.2-py3-none-any.whl.metadata
DEBUG No cache entry for: https://files.pythonhosted.org/packages/ee/fb/14d30eb4956408ee3ae09ad34299131fb383c47df355ddb428a7331cfa1e/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
DEBUG No credentials found for already-seen URL: https://files.pythonhosted.org/packages/ee/fb/14d30eb4956408ee3ae09ad34299131fb383c47df355ddb428a7331cfa1e/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
DEBUG No credentials found for: https://files.pythonhosted.org/packages/ee/fb/14d30eb4956408ee3ae09ad34299131fb383c47df355ddb428a7331cfa1e/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
DEBUG Found fresh response for: https://pypi.org/simple/aiohttp/
DEBUG Searching for a compatible version of aiohttp (==3.9.0b0)
DEBUG No compatible version found for: aiohttp
DEBUG Searching for a compatible version of papermill (>2.5.0, <2.6.dev0)
DEBUG No compatible version found for: papermill
× No solution found when resolving dependencies:
╰─▶ Because there is no version of aiohttp==3.9.0b0 and papermill==2.5.0 depends on aiohttp==3.9.0b0, we can conclude that papermill==2.5.0 cannot be used.
And because only the following versions of papermill are available:
papermill<=2.5.0
papermill>=2.6.dev0
and you require papermill>=2.5.0, we can conclude that the requirements are unsatisfiable.
hint: papermill was requested with a pre-release marker (e.g., papermill>2.5.0,<2.6.dev0), but pre-releases weren't enabled (try: `--prerelease=allow`)
hint: aiohttp was requested with a pre-release marker (e.g., aiohttp==3.9.0b0), but pre-releases weren't enabled (try: `--prerelease=allow`)
(venv) root@277786dfca2e:/#
- The command you invoked (e.g.,
uv pip sync requirements.txt), ideally including the--verboseflag.
uv pip install --verbose 'papermill~=2.5.0'
- The current uv platform:
manylinux2014_x86_64 - The current uv version (
uv --version):uv 0.1.24
Related Issues and PRs
- This is somewhat similar, but a bit different, from Issue #2065 .
- Blocking https://github.com/scikit-hep/pyhf/pull/2444.
- Related to https://github.com/nteract/papermill/issues/785#issuecomment-2031298969