<#17805 Hook up python_requirements and pyproject....
# github-notifications
q
#17805 Hook up python_requirements and pyproject.toml to tailor Issue created by bryanwweber Is your feature request related to a problem? Please describe. PR #16932 added a PEP 621 parser for `python_requirement`s coming from a
pyproject.toml
file. At the moment, users must explicitly give the source as
pyproject.toml
since there's only logic to search for
requirements.txt
files as the source. In the PR, @Eric-Arellano suggested that I open an issue to track automatically adding
pyproject.toml
as the source of the
python_requirements
target when it makes sense to do so. Describe the solution you'd like If I specify a
python_requirements
target, and there is no
requirements.txt
file present, I would like pantsbuild to automatically add
pyproject.toml
as the source file, presuming one exists. Describe alternatives you've considered The alternative, which works currently, is to manually add
pyproject.toml
as the `source. pantsbuild/pants