Skip to content

feat: implement less/greater operators for string for env marker evaluation - #2827

Merged
aignas merged 3 commits into
bazel-contrib:mainfrom
rickeylev:pep508.str.ltegte
Apr 29, 2025
Merged

feat: implement less/greater operators for string for env marker evaluation#2827
aignas merged 3 commits into
bazel-contrib:mainfrom
rickeylev:pep508.str.ltegte

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Right now, if two strings are compared, it results in an error.

Per spec, strings are suppose to "use the python behavior". Starlark is going
to use Java semantics underneath, but it should behave close enough for the (almost
exclusively) ASCII input that will be used.

Work towards #2826

@rickeylev
rickeylev requested review from aignas and groodt as code owners April 25, 2025 23:24

@groodt groodt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The implementation in packaging is here for reference https://github.com/pypa/packaging/blob/main/src/packaging/markers.py

@aignas
aignas added this pull request to the merge queue Apr 27, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 27, 2025
Comment thread python/private/pypi/pep508_evaluate.bzl
@rickeylev
rickeylev added this pull request to the merge queue Apr 29, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 29, 2025
@rickeylev
rickeylev added this pull request to the merge queue Apr 29, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 29, 2025
@rickeylev
rickeylev added this pull request to the merge queue Apr 29, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 29, 2025
@aignas
aignas added this pull request to the merge queue Apr 29, 2025
Merged via the queue into bazel-contrib:main with commit 1c35e4c Apr 29, 2025
@rickeylev
rickeylev deleted the pep508.str.ltegte branch April 29, 2025 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants