-
Notifications
You must be signed in to change notification settings - Fork 3
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
Migrate from requirements.txt
parsing
#178
Comments
Ooh, great suggestion, I'm on board with doing this. But in theory we should already handle the case where the dependencies are manually parsed out of So is the ask here to support projects that use |
Oh indeed, I tested both with an old-style I guess the tool is a bit low level still: if there's an existing Regardless, I think that's a different issue? I can close this one in the meantime. |
Great, thanks for helping confirm that! It's great to get this kind of engagement 🙂 And that's a good point - so far we've been focusing on the case where a project doesn't have a |
It's very typical to see a code block like this in
setup.py
:However, as pointed out by the setuptools maintainers,
requirements.txt
files were always meant for pip, not for build backends (hence the stripping of comments and--<options>
).setuptools ships beta support for consuming them in
pyproject.toml
:(see documentation)
But it breaks workflow tools that rely on adding deps statically to
[project.dependencies]
, for example poetry, pdm, rye, uv.Would you be open to adding an option that helps users migrate from having their deps in
requirements.txt
to having them in[project.dependencies]
?The text was updated successfully, but these errors were encountered: