-
Notifications
You must be signed in to change notification settings - Fork 790
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
Can't compile pyproject.toml to requirements.txt #1619
Comments
Your pyproject.toml is set up for poetry. You need to modify it to something like the following: [project]
name = "test package"
version = "1.0.0"
description = "test team"
authors = [{name = "test", email="[email protected]"}]
dependencies = [
"boto3",
"QtPy",
"Fileseq",
"sentry-sdk",
"qtmodern",
"pystray",
"rpyc",
] then running If you have additional optional dependencies those are specified in a different section:
and can be generated by running If you want to specify specific package versions you can see here for more info. |
Amazing @AlexWaygood , it works! Thank you. I would have loved to have the conversion from poetry to standard pyproject just because I have some many more. Can I briefly ask @AlexWaygood if does it support virtual environments from embedded versions of python? I tried a moment ago but it seems it doesn't. I can create an issue about it. |
Ah yeah, unfortunately we don't support Poetry's metadata format, which is custom to Poetry. Perhaps we should add a custom error message here. |
Also reported in #1597 |
Closing in favor of #1630. Thanks for reporting! |
As of #2633 we support reading this directly. |
Hi,
I am running issues with the compilation of pyproject.toml to requirements.txt, I am using:
`uv pip compile pyproject.toml -o requirements.txt.
This is the content of the toml:
The text was updated successfully, but these errors were encountered: