https://pantsbuild.org/ logo
#general
Title
# general
h

hundreds-father-404

01/20/2021, 2:40 AM
Hey Zdeněk! It should be. From https://www.pantsbuild.org/docs/macros#how-to-add-a-macro
A macro can create multiple targets:
Copy code
def python23_tests(name, **kwargs):
    kwargs.pop("interpreter_constraints", None)

    python_tests(
        name=f"{name}_py2",
        interpreter_constraints=["==2.7.*"],
        **kwargs,
    )
 
    python_tests(
        name=f"{name}_py3",
        interpreter_constraints=[">=3.5"],
        **kwargs,
    )