fresh-continent-76371
10/19/2022, 11:31 PMfrom PyQt5 ...
did not choose the required one, PyQt5-Qt5
so i added a module Mapping
python_requirements(
module_mapping={
"PyQt5-Qt5": ["PyQt5"],
},
but of course, I need the "other" PyQt5
library also to be included in the test.
Any suggestions to how I resolve this .. I am holding off adding static dependencies for each BUILD file, as there aremore than a handful.
is there another technique other than statically adding the two (non-inferred) dependencies ?fresh-continent-76371
10/20/2022, 1:45 AMdependencies
on the python_source using the pyQt5 .. I also shrank the BUILD file count by "depth" includes ***/**.py
etccurved-television-6568
10/20/2022, 12:45 PMrequirements
field or dependencies
in overrides
on the python_requirements
target so you get the second library when Pants infer a dep on the first library (not sure which is which here as I don’t know them).
Example:
python_requirements(
overrides={"PyQt5": {"requirements":["PyQt5", "PyQt5-Qt5"]}},
)
Keeping this information as close to the requirements target as possible as if you add it on the python_sources target, it becomes more difficult to maintain (easy to miss when looking at the requirements, or when adding another python_sources that would need it as well etc)