-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Description
Let's say we have a package that we install locally via pip (the version name is generated something like 0.20.0.dev48+g4d91197). Then we install the same package locally, but with the indication extra. Pip in this case refuses to install the package due to an error: could not find a version that satisfies the requirement
Expected behavior
For example, take the gitlint repository: https://github.com/jorisroovers/gitlint
If you use it as a pre-commit, the following will happen: pip install . ./gitlint-core[trusted-deps]
When installing gitlint itself (pip install .) gitlint-core is being installed. Then the installation of gitlint-core[trusted-deps] (pip install ./gitlint-core[trusted-deps]) starts and fails.
pip-23.2.1 - works as needed
pip-23.3.1 - error
pip version
23.3.1
Python version
Python 3.11.0
OS
mac os m1
How to Reproduce
- git clone https://github.com/jorisroovers/gitlint.git
- cd gitlint
- pip install . ./gitlint-core[trusted-deps]
Output
Processing /Users/ilyakochankov/Yandex.Disk.localized/Programming/gitlint
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Processing ./gitlint-core
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
INFO: pip is looking at multiple versions of gitlint to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement gitlint-core==0.20.0.dev48+g4d91197 (from gitlint) (from versions: 0.17.0, 0.18.0, 0.19.0.dev73, 0.19.0.dev75, 0.19.0.dev76, 0.19.0.dev77, 0.19.0.dev78, 0.19.0.dev79, 0.19.0.dev80, 0.19.0.dev81, 0.19.0.dev82, 0.19.0rc1, 0.19.0rc2.dev1, 0.19.0rc2, 0.19.0rc3.dev1, 0.19.0, 0.19.1.dev1, 0.19.1.dev2, 0.19.1, 0.19.2.dev1, 0.19.2.dev2, 0.19.2.dev3, 0.19.2.dev4, 0.19.2.dev5, 0.20.0.dev2, 0.20.0.dev3, 0.20.0.dev6, 0.20.0.dev7, 0.20.0.dev8, 0.20.0.dev9, 0.20.0.dev10, 0.20.0.dev11, 0.20.0.dev12, 0.20.0.dev13, 0.20.0.dev14, 0.20.0.dev15, 0.20.0.dev16, 0.20.0.dev17, 0.20.0.dev18, 0.20.0.dev19, 0.20.0.dev20, 0.20.0.dev21, 0.20.0.dev22, 0.20.0.dev23, 0.20.0.dev24, 0.20.0.dev25, 0.20.0.dev27, 0.20.0.dev29, 0.20.0.dev30, 0.20.0.dev31, 0.20.0.dev32, 0.20.0.dev33, 0.20.0.dev34, 0.20.0.dev35, 0.20.0.dev36, 0.20.0.dev37, 0.20.0.dev38, 0.20.0.dev39, 0.20.0.dev40, 0.20.0.dev41, 0.20.0.dev42, 0.20.0.dev43, 0.20.0.dev44, 0.20.0.dev45, 0.20.0.dev48)
ERROR: No matching distribution found for gitlint-core==0.20.0.dev48+g4d91197
Code of Conduct
- I agree to follow the PSF Code of Conduct.