steep-eve-20716
08/07/2024, 6:30 PMresolve(name="res1", lockfile="pants.lock")
python_requirements(resolve=":res1")
I'm curious if there are any blockers before trying to implement this. i.e. is order of parsing build files an issue, given that resolves need to be evaluated before any other targets? It seems a bit similar to environments()
.steep-eve-20716
08/07/2024, 6:58 PMpython_sources(resolve=list(path="//", filter_target_type="resolve"))
careful-address-89803
08/07/2024, 7:37 PMPythonSetup
subsystem. I'm not sure if anything requires it. There is more complexity around the options to resolves, but I don't think it's insurmountable. Resolves are also implemented per-language.careful-address-89803
08/07/2024, 7:38 PMsteep-eve-20716
08/07/2024, 7:54 PMhappy-kitchen-89482
08/08/2024, 5:20 PMhappy-kitchen-89482
08/08/2024, 5:21 PMresolve()
target be over the named one in the config?steep-eve-20716
08/08/2024, 5:24 PMdef python_module(
name: str, tests: bool = True, test_fixtures: bool = True, typed: bool = True, **kwargs
):
__defaults__(all=dict(resolve=parametrize(*MODULES), **kwargs))
resolve(name=name)
poetry_requirements(name="poetry")
python_sources(
name="sources", sources=["**/*.py", "**/*.pyi", "!**/*_test.py", "!**/conftest.py"]
)
if typed:
resources(name="py_typed", sources=["**/py.typed"])
if tests:
python_tests(name="tests", resolve=name, sources=["**/*_test.py"])
if test_fixtures:
python_test_utils(name="conftest", resolve=name, sources=["**/conftest.py"])
happy-kitchen-89482
08/08/2024, 5:25 PMsteep-eve-20716
08/08/2024, 5:25 PMhappy-kitchen-89482
08/08/2024, 5:26 PMhappy-kitchen-89482
08/08/2024, 5:26 PMhappy-kitchen-89482
08/08/2024, 5:27 PMhappy-kitchen-89482
08/08/2024, 5:27 PMhappy-kitchen-89482
08/08/2024, 5:28 PMhappy-kitchen-89482
08/08/2024, 5:32 PMhappy-kitchen-89482
08/08/2024, 5:32 PMhappy-kitchen-89482
08/08/2024, 5:32 PM