Skip to content

Commit 99b47f0

Browse files
authored
Add some default module mappings (#23101)
1 parent 068e20e commit 99b47f0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/python/pants/backend/python/dependency_inference/default_module_mapping.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ def two_groups_hyphens_two_replacements_with_suffix(
107107
DEFAULT_MODULE_MAPPING: dict[str, tuple[str, ...]] = {
108108
"absl-py": ("absl",),
109109
"acryl-datahub": ("datahub",),
110+
"amplitude-analytics": ("amplitude",),
110111
"ansicolors": ("colors",),
111112
"antlr4-python3-runtime": ("antlr4",),
112113
"apache-airflow": ("airflow",),
113114
"apache-airflow-client": ("airflow_client",),
114115
"atlassian-python-api": ("atlassian",),
115116
"attrs": ("attr", "attrs"),
116117
"auth0-python": ("auth0",),
118+
"bandwidth-sdk": ("bandwidth",),
117119
"beautifulsoup4": ("bs4",),
118120
"biopython": ("Bio", "BioSQL"),
119121
"bitvector": ("BitVector",),
@@ -126,20 +128,26 @@ def two_groups_hyphens_two_replacements_with_suffix(
126128
"databricks.sql",
127129
"databricks.sqlalchemy",
128130
),
131+
"drf-openapi-tester": ("openapi_tester",),
129132
"delta-spark": ("delta",),
130133
"discord-py": ("discord",),
131134
"django-activity-stream": ("actstream",),
132135
"django-cors-headers": ("corsheaders",),
133136
"django-countries": ("django_countries",),
137+
"django-extensions": ("django_extensions",),
138+
"django-fernet-fields-v2": ("fernet_fields",),
134139
"django-filter": ("django_filters",),
135140
"django-fsm": ("django_fsm",),
141+
"django-money": ("djmoney",),
136142
"django-notifications-hq": ("notifications",),
137143
"django-oauth-toolkit": ("oauth2_provider",),
138144
"django-object-actions": ("django_object_actions",),
139145
"django-postgres-extra": ("psqlextra",),
146+
"django-pylibmc": ("django_pylibmc",),
140147
"django-redis": ("django_redis",),
141148
"django-scim2": ("django_scim",),
142149
"django-two-factor-auth": ("two_factor",),
150+
"django-user-agents": ("django_user_agents",),
143151
"djangorestframework": ("rest_framework",),
144152
"djangorestframework-api-key": ("rest_framework_api_key",),
145153
"djangorestframework-dataclasses": ("rest_framework_dataclasses",),
@@ -179,6 +187,7 @@ def two_groups_hyphens_two_replacements_with_suffix(
179187
"matplotlib": ("matplotlib", "mpl_toolkits"),
180188
"matrix-nio": ("nio",),
181189
"mysql-connector-python": ("mysql.connector",),
190+
"mysqlclient": ("MySQLdb",),
182191
"netcdf4": ("netCDF4",),
183192
"o365": ("O365",),
184193
"opencv-python": ("cv2",),
@@ -220,6 +229,7 @@ def two_groups_hyphens_two_replacements_with_suffix(
220229
"pygithub": ("github",),
221230
"pygobject": ("gi",),
222231
"pyhamcrest": ("hamcrest",),
232+
"pyicu": ("icu",),
223233
"pyjwt": ("jwt",),
224234
"pykube-ng": ("pykube",),
225235
"pymongo": ("bson", "gridfs", "pymongo"),
@@ -249,9 +259,12 @@ def two_groups_hyphens_two_replacements_with_suffix(
249259
"snowflake-connector-python": ("snowflake.connector",),
250260
"snowflake-snowpark-python": ("snowflake.snowpark",),
251261
"snowflake-sqlalchemy": ("snowflake.sqlalchemy",),
262+
"social-auth-app-django": ("social_django",),
263+
"social-auth-core": ("social_core",),
252264
"sseclient-py": ("sseclient",),
253265
"strawberry-graphql": ("strawberry",),
254266
"streamlit-aggrid": ("st_aggrid",),
267+
"unittest-xml-reporting": ("xmlrunner",),
255268
"unleashclient": ("UnleashClient",),
256269
"websocket-client": ("websocket",),
257270
}

0 commit comments

Comments
 (0)