-
-
Notifications
You must be signed in to change notification settings - Fork 464
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 ; platform_system tag to requirements.lock where applicable #1166
Comments
This is possible with uv since yesterday ;) astral-sh/uv#4505 |
Nice! 🥳👏 Tested in Rye, and I see it's not there yet. Hopefully we won't have to exclude Windows-only deps with ; platform_system == "Windows" much longer. 😊 |
I can do a Rye release today, hopefully. |
Upgraded to Rye version 0.36.0 today. requirements.lock still does not include the platform tag;
will still fail when building a docker image. |
@hanerlend New flag is rye sync --universal or set [tool.rye] universal = true in pyproject.toml. It works for me. |
👍 Yeah it's opt-in for now |
Some times a requirements-file might include OS-specific requirements. This can be a problem if you develop on Windows, and want to deploy your project with Docker.
Example using Django + Daphne:
When trying to build a Docker image (which is linux, not windows), the build fails. To fix this, edit requirements.lock :
Coming from Poetry, this happened automatically. It would be really nice if this would also be implemented in Rye. 😊
The text was updated successfully, but these errors were encountered: