rapid-bird-79300
05/22/2024, 5:46 PMpants.backend.python.dependency_inference.rules.UnownedDependencyError
for libs like django-mongoengine
. To fix it I have to add it as a module mapping. So far I have
"django-mongoengine": ("django_mongoengine",),
"django-otp": ("django_otp",),
but this is happening for all django thridparty dependencies. Any reason this is happening on the new version where it did not happen in previous ones?careful-address-89803
05/22/2024, 10:33 PMrapid-bird-79300
05/22/2024, 10:43 PMcareful-address-89803
05/22/2024, 10:46 PMdjango-my-module
maps to my_module
, not django_my_module
. Seems that pattern was used by all the Django modules we had listed. In hindsight, ofcourse we only had the exceptions that were not mapped by the simple .lower().replace("-", "_")
. Since simple packages like "django-otp" match the regex, we attempt the mapping as just otp
.careful-address-89803
05/22/2024, 10:49 PMrapid-bird-79300
05/22/2024, 11:10 PM"django-mongoengine": ("django_mongoengine",),
"django-otp": ("django_otp",),
"django-model-changes": ("django_model_changes",),
"django-rest-framework-mongoengine": ("rest_framework_mongoengine",),
"django-oauth-toolkit": ("oauth2_provider",),
"django-storages": ("storages",),
"django-ipware": ("ipware",),
"django-log-request-id": ("log_request_id",),
"django-phonenumber-field": ("phonenumbers",),
the ones for
"django-mongoengine": ("django_mongoengine",),
"django-otp": ("django_otp",),
"django-model-changes": ("django_model_changes",),
were added during our recent version upgrade. It would be sufficient to map them under the condition .lower().replace("-", "_")