Skip to content

Comments

Fix handling of inverted ~= with python_version and python_full_version#14259

Closed
konstin wants to merge 1 commit intomainfrom
konsti/fix-tilde-equal-python
Closed

Fix handling of inverted ~= with python_version and python_full_version#14259
konstin wants to merge 1 commit intomainfrom
konsti/fix-tilde-equal-python

Conversation

@konstin
Copy link
Member

@konstin konstin commented Jun 25, 2025

Fix the handling of "<version>" ~= python_version and "<version>" ~= python_full_version, which need custom handling as we know the number of digits on the RHS, but not their meaning.

@konstin konstin temporarily deployed to uv-test-registries June 25, 2025 12:03 — with GitHub Actions Inactive
@konstin konstin force-pushed the konsti/fix-tilde-equal-python branch from 2852af1 to d94a6fa Compare June 26, 2025 10:02
@konstin konstin changed the base branch from main to konsti/fix-star-inequality-trailing-zeroes June 26, 2025 10:02
@konstin konstin had a problem deploying to uv-test-registries June 26, 2025 10:04 — with GitHub Actions Failure
@konstin
Copy link
Member Author

konstin commented Jun 26, 2025

While the isolated cargo nextest run now passes, cargo test -p uv-pep508 tends to still fail locally for me, I assume we also have to handle a trailing zero in patch position.

@konstin konstin force-pushed the konsti/fix-star-inequality-trailing-zeroes branch 2 times, most recently from 5b832f5 to c87d3a2 Compare June 30, 2025 08:31
@konstin konstin force-pushed the konsti/fix-star-inequality-trailing-zeroes branch from c87d3a2 to d4664db Compare June 30, 2025 09:04
@konstin konstin force-pushed the konsti/fix-tilde-equal-python branch from d94a6fa to afeef20 Compare June 30, 2025 09:29
@konstin konstin temporarily deployed to uv-test-registries June 30, 2025 09:31 — with GitHub Actions Inactive
@konstin konstin force-pushed the konsti/fix-tilde-equal-python branch from afeef20 to 207ed82 Compare June 30, 2025 09:31
@konstin konstin temporarily deployed to uv-test-registries June 30, 2025 09:35 — with GitHub Actions Inactive
Base automatically changed from konsti/fix-star-inequality-trailing-zeroes to main July 1, 2025 15:48
@konstin konstin force-pushed the konsti/fix-tilde-equal-python branch from 207ed82 to fc0871a Compare July 7, 2025 08:10
@konstin konstin temporarily deployed to uv-test-registries July 7, 2025 08:12 — with GitHub Actions Inactive
@konstin konstin added the bug Something isn't working label Jul 7, 2025
@konstin konstin changed the title Fix handling of ~= with python_version and python_full_version Fix handling of inverted ~= with python_version and python_full_version Jul 7, 2025
@konstin konstin force-pushed the konsti/fix-tilde-equal-python branch from fc0871a to e62365a Compare July 7, 2025 08:27
@konstin konstin marked this pull request as ready for review July 7, 2025 08:27
@konstin konstin temporarily deployed to uv-test-registries July 7, 2025 08:29 — with GitHub Actions Inactive
@konstin
Copy link
Member Author

konstin commented Jul 7, 2025

With #14271 applied, this simpler fix now seems to work.

@konstin konstin force-pushed the konsti/fix-tilde-equal-python branch from e62365a to 3909dff Compare July 24, 2025 09:57
@konstin konstin force-pushed the konsti/fix-tilde-equal-python branch from 3909dff to 221a079 Compare July 24, 2025 09:59
@konstin
Copy link
Member Author

konstin commented Jul 24, 2025

@ibraheemdev Given that this works and it only changes (fixes) the behavior of an edge case, should we go ahead and merge this?

@konstin konstin temporarily deployed to uv-test-registries July 24, 2025 10:06 — with GitHub Actions Inactive
@konstin konstin closed this Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants