From d4244578ede8a9253fb60131c1907627c2945ab7 Mon Sep 17 00:00:00 2001 From: Juro Oravec Date: Sun, 24 Mar 2024 10:09:15 +0100 Subject: [PATCH 1/2] refactor: change utils dir to file to fix missing import --- django_components/__init__.py | 2 +- django_components/component.py | 2 +- django_components/{utils/autodiscover.py => utils.py} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename django_components/{utils/autodiscover.py => utils.py} (100%) diff --git a/django_components/__init__.py b/django_components/__init__.py index 9449cde0..b7f9ae82 100644 --- a/django_components/__init__.py +++ b/django_components/__init__.py @@ -6,7 +6,7 @@ from pathlib import Path import django from django.utils.module_loading import autodiscover_modules -from django_components.utils.autodiscover import search +from django_components.utils import search if django.VERSION < (3, 2): default_app_config = "django_components.apps.ComponentsConfig" diff --git a/django_components/component.py b/django_components/component.py index 240c9c66..b6fac51f 100644 --- a/django_components/component.py +++ b/django_components/component.py @@ -37,7 +37,7 @@ from django_components.templatetags.component_tags import ( SlotName, SlotNode, ) -from django_components.utils.autodiscover import search +from django_components.utils import search class SimplifiedInterfaceMediaDefiningClass(MediaDefiningClass): diff --git a/django_components/utils/autodiscover.py b/django_components/utils.py similarity index 100% rename from django_components/utils/autodiscover.py rename to django_components/utils.py From 12463c365be946bb003361b0a93e3b97fd4c82da Mon Sep 17 00:00:00 2001 From: Juro Oravec Date: Sun, 24 Mar 2024 10:09:36 +0100 Subject: [PATCH 2/2] refactor: move py.typed into django_components dir --- py.typed => django_components/py.typed | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename py.typed => django_components/py.typed (100%) diff --git a/py.typed b/django_components/py.typed similarity index 100% rename from py.typed rename to django_components/py.typed