purple-plastic-57801
03/09/2023, 2:07 AMpurple-plastic-57801
03/09/2023, 2:09 AMpurple-plastic-57801
03/09/2023, 2:10 AMbroad-processor-92400
03/09/2023, 2:51 AMmodule_mapping
(or modules
on the low-level python_requirement
target) is the right way to tell pants' dep inference when PyPI names differ to the module names used in codepurple-plastic-57801
03/09/2023, 2:51 AMpurple-plastic-57801
03/09/2023, 2:52 AMpython_requirements(
name="reqs",
source="<http://requirements.in|requirements.in>",
module_mapping={
"google-auth": ["google.auth"],
"google-api-core": ["google.cloud"]
}
)
purple-plastic-57801
03/09/2023, 2:52 AMfrom google.api_core.exceptions import NotFound, Conflict
purple-plastic-57801
03/09/2023, 2:53 AMThis library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients. For more information, see the documentation.
https://pypi.org/project/google-api-core/broad-processor-92400
03/09/2023, 2:55 AM"google-api-core": ["google.cloud.exceptions", "google.api_core"]
, but I don't see google.cloud.exceptions
in your code example so 🤷♂️purple-plastic-57801
03/09/2023, 2:56 AMpurple-plastic-57801
03/09/2023, 2:56 AMpurple-plastic-57801
03/09/2023, 2:57 AMpython_requirements(
name="reqs",
source="<http://requirements.in|requirements.in>",
module_mapping={
"google-auth": ["google.auth"],
"google-api-core": ["google.cloud.exceptions"],
"matplotlib": ["matplotlib", "pylab"]
}
)
purple-plastic-57801
03/09/2023, 2:57 AMpurple-plastic-57801
03/09/2023, 3:29 AM