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

crooked-lawyer-77407

03/15/2023, 3:52 PM
Is there a way to make
pants test
depend on the current package? Normally a
poetry install
would fix this or a
pip install .
but I'm not sure how to fix the module not found error here as I am unsure how to tell pants that my current module is a dependency of the tests
I've tried adding extra_requirements in
pants.toml
using:
Copy code
extra_requirements.add = [
  "PACKAGE_NAME>=MIN_VERSION,<MAX_VERSION",
]
r

refined-addition-53644

03/15/2023, 4:03 PM
Pants should be able to figure it out as long as the package being tested is living in same repo and your source roots are correctly configured. I'm trying to understand what's special about your situation.
Or do you mean something else by "current" package