brash-student-40401
11/16/2022, 4:09 PMsrc/services/app/BUILD
currently looks like this:
python_sources(
name="app_sources",
sources=[
"mypy-stubs/stub1.pyi",
"mypy-stubs/stub2.pyi",
]
)
pex_binary(
name="app",
entry_point="main.py",
dependencies=[
"src/vendor/python:reqs#setuptools",
],
restartable=True,
)
With this definition, ./pants run src/services/app:app
, I get ModuleNotFoundError: No module named 'services'
. When I remove the stubs from python_sources
, the run command works fine, except then type checking fails. With this definition, ./pants dependencies
also doesn't show anything - it's as if adding the stubs completely negates any other dependencies. Clearly I've defined things wrong, but I can't seem to find how.bitter-ability-32190
11/16/2022, 4:11 PMbitter-ability-32190
11/16/2022, 4:12 PMbrash-student-40401
11/16/2022, 4:21 PMbitter-ability-32190
11/16/2022, 4:22 PMbitter-ability-32190
11/16/2022, 4:22 PMpython_sources.sources.default
(or something)wide-midnight-78598
11/16/2022, 4:27 PMargs
examples, I'm less certain and am usually surprised by the resultbitter-ability-32190
11/16/2022, 4:27 PMdependencies
as thats the only field where you're augmenting and not overridingwide-midnight-78598
11/16/2022, 4:28 PMwide-midnight-78598
11/16/2022, 4:28 PMbitter-ability-32190
11/16/2022, 4:28 PMbitter-ability-32190
11/16/2022, 4:28 PMwide-midnight-78598
11/16/2022, 4:29 PMhundreds-father-404
11/16/2022, 4:30 PMadditional_deps
but got stuck on the overrides
field not being automatically updated via our automated fixers. (Old name would still work, only deprecated)hundreds-father-404
11/16/2022, 4:30 PMwide-midnight-78598
11/16/2022, 4:31 PMextra
in other places, but 🤷
I think "additional_deps" would confuse mebitter-ability-32190
11/16/2022, 4:56 PMexplicit_deps