You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be an intentional change, see pypa/packaging#645. After some consideration I think I've been misusing .dev-versions all this time and will have to (unfortunately painfully) transition to a different scheme.
It is no longer possible to write half-open version constraints
with packages that publish `.dev` versions. Since that was a misuse
of `.dev` versions anyway, stop doing that.
See also pypa/setuptools#3807.
whitequark
changed the title
[BUG]
[BUG] Cannot use .* with >= in version specifiers
Feb 6, 2023
setuptools version
setuptools===67.1.0
Python version
Python 3.9.2
OS
Debian 11
Additional environment information
No response
Description
Setuptools validation for
pyproject.toml
dependency specifications is too strict and rejectsamaranth-yosys>=0.10.*
.This doesn't match the grammar defined in PEP 508.
You might ask yourself, "isn't this version specification the same as
amaranth-yosys>=0.10
?" The answer is no, try running both:pip install 'amaranth-yosys>=0.10.*'
pip install 'amaranth-yosys>=0.10'
and comparing the result. Only the former will succeed since all of the
amaranth-yosys
distributions have a.dev
suffix.Expected behavior
Setuptools accepts
amaranth-yosys>=0.10.*
in a dependency specification.How to Reproduce
Put the following in a
pyproject.toml
file in an empty directory:Install it with
pip install .
Output
The text was updated successfully, but these errors were encountered: