Better error message for version specifier with missing operator by jmwoliver · Pull Request #13803 · astral-sh/uv (original) (raw)

joao-krauchenco-mottu

approved these changes Jun 3, 2025

jmwoliver

…stral-sh#13126)

When missing an operator for version parsing, it would give an error that was hard to know how to fix if you were not familiar with version specifiers:

Unexpected end of version specifier, expected operator

Now, it will attempt to provide a more useful hint if it can parse the version from the remaining scanner:

Unexpected end of version specifier, expected operator (did you mean "==3.12"?)

@konstin

@konstin konstin changed the titlefix: better error message when missing operator in version parsing (#13126) Better error message when missing operator in version parsing

Jun 3, 2025

@konstin konstin changed the titleBetter error message when missing operator in version parsing Better error message for missing operator in version parsing

Jun 3, 2025

@konstin konstin changed the titleBetter error message for missing operator in version parsing Better error message for version specifier with missing operator

Jun 3, 2025

@konstin

@konstin

@konstin

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request

Jun 13, 2025

@tmeijn

This MR contains the following updates:

Package Update Change
astral-sh/uv patch 0.7.7 -> 0.7.13

MR created with the help of el-capitano/tools/renovate-bot.

Proposed changes to behavior should be submitted there as MRs.


Release Notes

astral-sh/uv (astral-sh/uv)

v0.7.13

Compare Source

Python

See the python-build-standalone release notes for more details.

Enhancements
Bug fixes
Preview changes
Documentation

v0.7.12

Compare Source

Enhancements
Bug fixes
Documentation
Preview

v0.7.11

Compare Source

Python
Enhancements
Bug fixes
Documentation

v0.7.10

Compare Source

Enhancements
Bug fixes

v0.7.9

Compare Source

Python

The changes reverted in 0.7.8 have been restored.

See the python-build-standalone release notes for more details.

Enhancements
Performance
Bug fixes
Preview
Documentation

v0.7.8

Compare Source

Python

We are reverting most of our Python changes from uv 0.7.6 and uv 0.7.7 due to a miscompilation that makes the Python interpreter behave incorrectly, resulting in spurious type-errors involving str. This issue seems to be isolated to x86_64 Linux, and affected at least Python 3.12, 3.13, and 3.14.

The following changes that were introduced in those versions of uv are temporarily being reverted while we test and deploy a proper fix for the miscompilation:

See the issue for details.

Documentation

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.



This MR has been generated by Renovate Bot.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})