jazzband / pip-tools

A set of tools to keep your pinned Python dependencies fresh.
https://pip-tools.rtfd.io
BSD 3-Clause "New" or "Revised" License
7.67k stars 608 forks source link

Add a feature to compile platform-agnostic requirements.in (or pyproject.toml) for a specific platform (darwin, windows, linux) #2032

Closed barseghyanartur closed 8 months ago

barseghyanartur commented 8 months ago

What's the problem this feature will solve?

Something similar to poetry currently does, although it doesn't work as I wish it would. There you need to specify the platform inside your requirements in pyproject.toml.

Describe the solution you'd like

I prefer to have an platform agnostic requirements that can be compiled for the given platform (pip-compile --platform=darwin ...)

Alternative Solutions

There are many paths to go. For instance, one could compile things on GitHub Actions and then generate a PR from it. But doing it differently would be really good.

Additional context

webknjaz commented 8 months ago

Duplicate of #826

webknjaz commented 8 months ago

You may also find the following notes interesting: