green-match-60388
08/26/2023, 12:23 AMmodule_mappings manually to a python_requirements and/or having to do a PR for every one that might belong in DEFAULT_MODULE_MAPPING. initially this problem is because google.cloud.* is mapped to a library/package called google-cloud-*. there are like 1 billion google-cloud services, and it would be cumbersome to add everyone and still require changes constantly. looks like azure-mgmt , django-* ,opentelemetry-instrumentation-* , python-* , oslo-*, and scikit-* are already in the DEFAULT_MODULE_MAPPING and could all be dealt with a single regex/glob instead of many entries.
Relevant Issue with a quick sample code.green-match-60388
08/28/2023, 9:51 PMprint(package) )and then a pants run ... a pex for that file. if no errors, i call it a win.
there is a test, src/python/pants/backend/python/dependency_inference/module_mapper_test.py that looks particularly applicable. pants test src/python/pants/backend/python/dependency_inference:testsgreen-match-60388
08/29/2023, 4:35 PM