billowy-cat-69904
05/31/2024, 5:56 PMpython-json-logger
, this module is imported as from pythonjsonlogger import ...
, in the library I import this module and make custom functions and classes. I import these classes and utilities somewhere else, in other projects within the monorepo. When I run pants dependencies --dependencies-transitive other/project/file.py
it is not able to pick the python-json-logger
as a dependency, even though i have added python_requirements("reqs", module_mapping={'python-json-logger': ('pythonjsonlogger, )})
in the BUILD
file, placed inside the library and mentioned python-json-logger
in requirements.txt
. How can I ensure that this module is captured as a dependency?broad-processor-92400
05/31/2024, 9:22 PMbillowy-cat-69904
06/01/2024, 9:34 AMbillowy-cat-69904
06/01/2024, 9:48 AMrequirements.txt
I have mentioned python-json-logger
. So basically python-json-logger
was mentioned in two requirements.txt
. When I removed from one, it started showing up in dependencies. I guess, what's happening is, it is not able to identify the correct owner of python-json-logger
hence not including in the list. But I assumed, in such cases, pants will throw a warning, when I run pants dependencies --dependencies-transitive ...
. I can see such warnings if I run in debug mode with option -ldebug