lively-gpu-26436
05/30/2023, 5:10 PMenough-analyst-54434
05/30/2023, 5:12 PMenough-analyst-54434
05/30/2023, 5:13 PMenough-analyst-54434
05/30/2023, 5:14 PMenough-analyst-54434
05/30/2023, 5:16 PMlively-gpu-26436
05/30/2023, 5:17 PM!
, going to try nowlively-gpu-26436
05/30/2023, 5:24 PMhappy-kitchen-89482
05/30/2023, 5:35 PMlively-gpu-26436
05/30/2023, 5:39 PMlively-gpu-26436
05/30/2023, 5:44 PMdeps = [
"3rdparty/python:reqs#typer",
"3rdparty/python:reqs#mysqlclient",
"3rdparty/python:reqs#PyYAML",
"!mypy-stubs/python-default:stubs",
]
python_sources(
name="lib",
dependencies=deps,
)
pex_binary(
name="bin",
entry_point="./app.py",
interpreter_constraints=["==3.11.*"],
strip_pex_env=True,
dependencies=deps,
)
and the stubs BUILD file looks like this:
python_sources(name="stubs", sources=["**/*.pyi"])
But I’m still seeing those stubs inside the pex 🤔enough-analyst-54434
05/30/2023, 5:45 PM!!
- did you try that?lively-gpu-26436
05/30/2023, 5:45 PMenough-analyst-54434
05/30/2023, 5:45 PMpants filedeps
- may need some sort of recursive or transitive flag - just tack on -h
to see. I haven't used that in a while.lively-gpu-26436
05/30/2023, 5:48 PMdeps = [
"3rdparty/python:reqs#typer",
"3rdparty/python:reqs#mysqlclient",
"3rdparty/python:reqs#PyYAML",
]
python_sources(
name="lib",
dependencies=deps,
)
pex_binary(
name="bin",
entry_point="./app.py",
interpreter_constraints=["==3.11.*"],
strip_pex_env=True,
dependencies=[
*deps,
"!!mypy-stubs/python-default:stubs",
],
)
enough-analyst-54434
05/30/2023, 5:52 PMlively-gpu-26436
05/30/2023, 5:52 PMhappy-kitchen-89482
05/30/2023, 5:54 PMextra_requirements
is now deprecated and will be removed entirely in 2.18happy-kitchen-89482
05/30/2023, 5:55 PMhappy-kitchen-89482
05/30/2023, 5:55 PMlively-gpu-26436
05/30/2023, 5:55 PMextra_stub_requirement
happy-kitchen-89482
05/30/2023, 5:55 PMhappy-kitchen-89482
05/30/2023, 5:55 PMhappy-kitchen-89482
05/30/2023, 5:55 PMenough-analyst-54434
05/30/2023, 5:55 PMlively-gpu-26436
05/30/2023, 5:56 PMlively-gpu-26436
05/30/2023, 5:56 PMenough-analyst-54434
05/30/2023, 5:57 PMenough-analyst-54434
05/30/2023, 5:57 PM!!
3rdparty transitive deps.lively-gpu-26436
05/30/2023, 5:57 PMlively-gpu-26436
05/30/2023, 5:59 PMhappy-kitchen-89482
05/30/2023, 6:03 PMbroad-processor-92400
05/30/2023, 8:26 PM