.python-version is not necessarily a version specifier (per PEP 440) and thus cannot necessarily be used for environment.python.requires
#659
Labels
bug
Something isn't working
Per PEP 440, a version specifier must contain a comparison operator (i.e.
>
,==
, etc). Connect expects a PEP-440 compliant version specifier for theenvironment.python.requires
manifest property.A few options that I see:
.python-version
is a valid version specifier; otherwise, skip..python-version
to make it a compliant version specifier (i.e. prepend==
).python-version
at all 🤷I'm fine with any of these, but here's my 2 cents:
Given that
.python-version
appears to be pretty bespoke foruv
and can contain a wide variety of non-version-specifier values (see https://docs.astral.sh/uv/concepts/python-versions/#requesting-a-version), then I'd vote to drop the precedence of.python-version
belowpyproject.toml
andsetup.cfg
, and then (1) skip if not a valid version specifier.@amol- What do you think?
The text was updated successfully, but these errors were encountered: