polite-art-93959
01/16/2024, 10:54 PMcareful-address-89803
01/20/2024, 5:52 AMsources
field to include a recursive glob, and then add a manual dependency. something like
python_sources(
name="django_sources",
sources=["django/**/*.py", "!django/**/*_test.py"],
)
python_tests(
name="django_tests",
sources=["django/**/*_test.py"],
dependencies=[":django_sources"],
)
for example, given these files pants list ::
//django/s0.py
//django/s1.py
//django/t0_test.py
//django/t1_test.py
the dependencies show like pants dependencies django/t0_test.py
//django/s0.py:../django_sources
//django/s1.py:../django_sources
polite-art-93959
01/23/2024, 7:30 PM