Skip to content

Add support for platform-specific requirements#110

Open
tpudlik wants to merge 1 commit intobazel-contrib:mainfrom
tpudlik:platform_requirements
Open

Add support for platform-specific requirements#110
tpudlik wants to merge 1 commit intobazel-contrib:mainfrom
tpudlik:platform_requirements

Conversation

@tpudlik
Copy link
Copy Markdown

@tpudlik tpudlik commented Aug 6, 2025

The rules_python pip.parse module extension tag supports platform-specific requirements, e.g. requirements_darwin. This PR adds analogous support to rules_mypy.

The use case for this are packages which have OS-specific pip dependencies. Pigweed (https://pigweed.dev) is one of these.

The rules_python pip.parse module extension tag supports
platform-specific requirements, e.g.
[requirements_darwin](https://rules-python.readthedocs.io/en/latest/api/rules_python/python/extensions/pip.html#pip.parse.requirements_darwin).
This PR adds analogous support to rules_mypy.

The use case for this are packages which have OS-specific pip
dependencies. Pigweed (https://pigweed.dev) is one of these.
@tpudlik tpudlik requested a review from a team as a code owner August 6, 2025 21:02
@brandonchinn178
Copy link
Copy Markdown
Contributor

Note: this can go away entirely if #89 is merged

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