abundant-analyst-12845
01/13/2023, 2:02 PMconfetest.py
files. As am adopting pants from a monlith repo to a mon-repo. I wondered anyone either
• copying the conftest.file into each root_pattern where its required
◦ this would cause heavy duplication, which might be ok if the conftest file stays consistent
• having a shared folder that is also known by pants containing a conftest file and using symlink for the other packages to point to it.
• does pants have some magic that makes that easier
◦ with the potential option of overriding or enhancing package specific conftets.
sorry if this is open endedhappy-kitchen-89482
01/13/2023, 2:28 PMabundant-analyst-12845
01/13/2023, 2:34 PMenough-analyst-54434
01/13/2023, 3:06 PMabundant-analyst-12845
01/13/2023, 3:11 PMenough-analyst-54434
01/13/2023, 3:14 PMabundant-analyst-12845
01/13/2023, 3:14 PMenough-analyst-54434
01/13/2023, 3:15 PMabundant-analyst-12845
01/13/2023, 3:16 PMenough-analyst-54434
01/13/2023, 3:16 PMabundant-analyst-12845
01/13/2023, 3:16 PMenough-analyst-54434
01/13/2023, 3:20 PMsrc/
addition/
hello_world/
math_utils/
string_utils/
tests/
...
Test just libraries:
./pants test src/math_utils:: src/string_utils::
Package just hello_world lambda:
./pants package src/hello_world/::
abundant-analyst-12845
01/13/2023, 3:22 PMenough-analyst-54434
01/13/2023, 3:22 PMabundant-analyst-12845
01/13/2023, 3:27 PM./pants package ::
and would just need to add
python_awslambda(
name="addition_function",
runtime="python3.9",
handler="lambda_function.py:lambda_handler",
)
to each "one that I want to package" in each BUILD
file and get it working