echoing-london-29138
02/16/2022, 11:43 AMenough-analyst-54434
02/16/2022, 1:00 PMsetup.py file in the python_distribution target. The closest example is here (though it's for pyproject.toml and not setup.py ): https://www.pantsbuild.org/docs/python-distributions
So you need to similarly add a resource target and depend on it:
resource(name="setup", source="setup.py")
python_distribution(
...
dependencies=[":setup"],
...
)echoing-london-29138
02/16/2022, 1:56 PMechoing-london-29138
02/16/2022, 2:19 PMenough-analyst-54434
02/16/2022, 3:04 PMpython_sources(name=..., sources=["**/*.py"]) target to capture all the other python files in the project (not just setup.py).echoing-london-29138
02/16/2022, 6:48 PM