Skip to content
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

Add support for specifying python_platform in pip_compile #16

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

mark-thm
Copy link
Collaborator

uv 0.1.35 added the --python-platform option to uv pip compile:

      --python-platform <PYTHON_PLATFORM>
          The platform for which requirements should be resolved.

          Represented as a "target triple", a string that describes the target platform in terms of its CPU, vendor, and operating system
          name, like `x86_64-unknown-linux-gnu` or `aaarch64-apple-darwin`.

          Possible values:
          - windows:                    An alias for `x86_64-pc-windows-msvc`, the default target for Windows
          - linux:                      An alias for `x86_64-unknown-linux-gnu`, the default target for Linux
          - macos:                      An alias for `aarch64-apple-darwin`, the default target for macOS
          - x86_64-pc-windows-msvc:     An x86 Windows target
          - x86_64-unknown-linux-gnu:   An x86 Linux target
          - aarch64-apple-darwin:       An ARM-based macOS target, as seen on Apple Silicon devices
          - x86_64-apple-darwin:        An x86 macOS target
          - aarch64-unknown-linux-gnu:  An ARM64 Linux target
          - aarch64-unknown-linux-musl: An ARM64 Linux target
          - x86_64-unknown-linux-musl:  An x86_64 Linux target

In this PR, enable specifying any (or none) of these values using the python_platform arg in pip_compile.

@mark-thm mark-thm requested a review from a team as a code owner April 22, 2024 17:59
@thm-automation thm-automation bot enabled auto-merge (squash) April 22, 2024 18:01
@thm-automation thm-automation bot merged commit e18a603 into main Apr 22, 2024
7 checks passed
@thm-automation thm-automation bot deleted the me/python-platform branch April 22, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants