curved-shampoo-96935
12/10/2024, 12:47 PMpython_requirements
target in a python repo.
Is it possible for pants tailor to ignore pyproject.toml in favor of requirements.txt?
I have a pyproject.toml and generated requirements.txt. When I run pants tailor ::
It generates the following two targets.
python_requirements(
name="reqs0",
)
python_requirements(
name="root",
source="pyproject.toml",
)
I looked around the docs and couldn’t see anyway to configure this. And IIUC, this is the GH issue that introduced the pyproject.toml check to pants tailor.curved-shampoo-96935
12/10/2024, 12:50 PMpython_requirements
is that they produce python_requirement
target for each dep twice, so pants will complain that the owner is ambiguousgifted-lunch-20593
12/10/2024, 1:21 PMpants-ignore
option?curved-shampoo-96935
12/10/2024, 1:23 PM[python]
tailor_requirements_targets = false
So I solved my own question 😅curved-shampoo-96935
12/10/2024, 1:24 PMdazzling-pizza-75442
12/10/2024, 1:49 PMignore_paths
under [tailor]
for something similar https://www.pantsbuild.org/stable/reference/goals/tailor#ignore_pathscurved-shampoo-96935
12/11/2024, 4:11 PM