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
In most cases the .python-version file will contain just a version number like "3.12".
This introduces two issues:
"3.12" is not a valid PEP440 version specification, while uv handles it, connect does not as it expects ==3.12
==3.12 actually means ==3.12.0 as version numbers are 0 padded. But that's not the behaviour you get in UV, as uv will use any available patch version. So we should intend it as ==3.12.*.
Thus rsconnect-python when parsing .python-version should check if it's a valid version specifier ( https://packaging.python.org/en/latest/specifications/version-specifiers/#id5 ) and if none of the comparison operators is specified ( ~=, ==, !=, <=, >=, <, >) it should prefix it with ~= as it's the operator that matches default uv behaviour.
The text was updated successfully, but these errors were encountered:
In most cases the
.python-version
file will contain just a version number like "3.12".This introduces two issues:
uv
handles it, connect does not as it expects==3.12
==3.12
actually means==3.12.0
as version numbers are 0 padded. But that's not the behaviour you get in UV, as uv will use any available patch version. So we should intend it as==3.12.*
.Thus
rsconnect-python
when parsing.python-version
should check if it's a valid version specifier ( https://packaging.python.org/en/latest/specifications/version-specifiers/#id5 ) and if none of the comparison operators is specified (~=
,==
,!=
,<=
,>=
,<
,>
) it should prefix it with~=
as it's the operator that matches defaultuv
behaviour.The text was updated successfully, but these errors were encountered: