clever-father-91273
02/27/2023, 12:18 PMproject and utils. Both contain python code and have their own requirements.txt files. project/requirements.txt includes utils' requirements: -r ../utils/requirements.txt since project's code imports utility functions. This setup has been working fine (I have been able to run pants test command) until I decided to set up the resolves for the two submodules.
When I run pants test, I'm constantly getting the following error: ModuleNotFoundError: No module named utils. This comes from one of the `project`'s test scripts which tries to import a function from the utils directory. I have been able to include `utils`' dependencies to `project`'s resolve by using the parametrize keyword, but I'm unable to include the utils submodule itself.
Thanks in advance for any help!refined-addition-53644
02/27/2023, 12:20 PMclever-father-91273
02/27/2023, 12:21 PMroot_patterns=["/"] . Is this what you meant?refined-addition-53644
02/27/2023, 12:22 PMclever-father-91273
02/27/2023, 12:22 PMfrom utils import ....refined-addition-53644
02/27/2023, 12:26 PMclever-father-91273
02/27/2023, 12:28 PMproject/tests/BUILD I have python_tests with resolve="project" and dependencies=["utils:reqs"]refined-addition-53644
02/27/2023, 1:00 PMhappy-kitchen-89482
02/27/2023, 5:43 PMhappy-kitchen-89482
02/27/2023, 5:44 PMclever-father-91273
02/27/2023, 6:34 PMutils:utils to project's test dependencies. Thanks!happy-kitchen-89482
02/27/2023, 9:13 PMhappy-kitchen-89482
02/27/2023, 9:14 PMclever-father-91273
02/28/2023, 10:17 AMhappy-kitchen-89482
02/28/2023, 3:24 PMhappy-kitchen-89482
02/28/2023, 3:24 PM