worried-piano-22913
04/10/2025, 12:48 PMpython_sources() target? This one looks clean to me:
python_sources(
overrides={"script.py": {"dependencies":["dirctory:somelib"]}},
)
but since there is python_source() , i feel i should use it instead but then i cant use python_sources() anymore because script.py will be in multiple targets and receive this error: UnownedDependencyError: Pants cannot infer owners for the following imports in the targetbreezy-twilight-65275
04/10/2025, 12:57 PM!.
> Example: sources=['example.py', 'new_*.py', '!old_ignore.py']breezy-twilight-65275
04/10/2025, 12:59 PMworried-piano-22913
04/10/2025, 1:14 PMworried-piano-22913
04/10/2025, 1:14 PMbreezy-twilight-65275
04/10/2025, 1:21 PMpython_sources.sources.default
https://www.pantsbuild.org/dev/docs/using-pants/key-concepts/targets-and-build-files#extending-field-defaultsbreezy-twilight-65275
04/10/2025, 1:21 PMhappy-kitchen-89482
04/10/2025, 5:48 PMoverrides is more idiomatichappy-kitchen-89482
04/10/2025, 5:48 PMworried-piano-22913
04/11/2025, 9:09 AM