aloof-angle-91616
09/21/2020, 3:06 PMaloof-angle-91616
09/21/2020, 3:06 PMsources
argument if none is given is inferred to be sources=['*.py']
(just the current directory) for python_library()
targetsbillowy-motherboard-58443
09/21/2020, 3:06 PMpython_library(
sources=['**/*.py'],
dependencies = [
]
)
billowy-motherboard-58443
09/21/2020, 3:07 PMaloof-angle-91616
09/21/2020, 3:07 PM./pants filedeps ns/bar
?billowy-motherboard-58443
09/21/2020, 3:07 PMfiledeps ns/bar
is much more verbose, yesbillowy-motherboard-58443
09/21/2020, 3:08 PMcommon/
billowy-motherboard-58443
09/21/2020, 3:08 PMaloof-angle-91616
09/21/2020, 3:09 PMns/foo/tests/BUILD
you would need to have:
python_tests(
dependencies=[
'ns/bar',
],
)
i assume you have figured that out thoughbillowy-motherboard-58443
09/21/2020, 3:09 PMbillowy-motherboard-58443
09/21/2020, 3:09 PMns/foo/BUILD
billowy-motherboard-58443
09/21/2020, 3:10 PMpython_library(
dependencies = [
"//:pytz",
"//:python-dateutil",
"//:requests",
"//::PyYAML",
"ns/core",
"ns/config",
"ns/bar",
]
)
billowy-motherboard-58443
09/21/2020, 3:10 PMpants test ns/foo/tests
aloof-angle-91616
09/21/2020, 3:11 PMbillowy-motherboard-58443
09/21/2020, 3:11 PMbillowy-motherboard-58443
09/21/2020, 3:11 PMbillowy-motherboard-58443
09/21/2020, 3:11 PMbillowy-motherboard-58443
09/21/2020, 3:11 PMResolveError: Directory ":" does not contain any BUILD files.
billowy-motherboard-58443
09/21/2020, 3:11 PMaloof-angle-91616
09/21/2020, 3:11 PMbillowy-motherboard-58443
09/21/2020, 3:12 PMbillowy-motherboard-58443
09/21/2020, 3:12 PMaloof-angle-91616
09/21/2020, 3:12 PM//::
is never going to be a valid address, i'll make an issuebillowy-motherboard-58443
09/21/2020, 3:12 PMsources=['**/*.py'],
aloof-angle-91616
09/21/2020, 3:13 PMbillowy-motherboard-58443
09/21/2020, 3:13 PMbillowy-motherboard-58443
09/21/2020, 3:13 PMaloof-angle-91616
09/21/2020, 3:13 PM**/*.py
recursive globs as abovebillowy-motherboard-58443
09/21/2020, 3:14 PMbillowy-motherboard-58443
09/21/2020, 3:14 PMpython_tests
decl in them?