Skip to content

fix(pypi): fixes to the marker evaluation and utils #2767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Apr 10, 2025

These are just bugfixes to already merged code:

All of the bug fixes have added tests.

Work towards #2423.

@aignas aignas requested review from rickeylev and groodt as code owners April 10, 2025 14:05
These are just bugfixes to already merged code:
* Fix nested bracket parsing in PEP508 marker parser.
* Fix the sys_platform constants, which I noticed in bazel-contrib#2629 but they got
  also pointed out in bazel-contrib#2766.
* Port some of python tests for requirement parsing and improve the
  implementation. Those tests will be removed in bazel-contrib#2629.
* Move the platform related code to a separate file.
* Rename `pep508_req.bzl` to `pep508_requirement.bzl` to follow the
  convention.

All of the bug fixes have added tests.

Work towards bazel-contrib#2423.
@aignas aignas force-pushed the fix/starlark-env-marker branch from f260d43 to 08f5114 Compare April 10, 2025 14:09
@@ -0,0 +1,57 @@
# Copyright 2025 The Bazel Authors. All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

FYI, going forward, we can omit these copyright headers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should we do with the old ones?

@rickeylev rickeylev added this pull request to the merge queue Apr 10, 2025
Merged via the queue into bazel-contrib:main with commit 55d6836 Apr 10, 2025
3 checks passed
@aignas aignas deleted the fix/starlark-env-marker branch April 10, 2025 22:18
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.

2 participants