From bcf1f45cbaded902d93a9982c8dd6be1f0088631 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Mon, 23 Nov 2020 15:26:47 +0100 Subject: [PATCH] do not rely on pkg_resources to get loaded (#48759) --- README | 2 ++ debian/50gnm.py | 3 +++ setup.py | 5 ----- src/authentic2_gnm/__init__.py | 5 ----- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/README b/README index 6f33dd3..530d5a6 100644 --- a/README +++ b/README @@ -7,6 +7,8 @@ at least specific to the GNM project. Settings -------- +The application authentic2_gnm should be put in INSTALLED_APPS. + CUT_API_BASE_URL https://admin-cut-rec.grandlyon.com/api/ diff --git a/debian/50gnm.py b/debian/50gnm.py index 5a4abfc..2589398 100644 --- a/debian/50gnm.py +++ b/debian/50gnm.py @@ -13,3 +13,6 @@ SESSION_COOKIE_AGE = 3600 * 24 * 30 # allow cart@ds technical roles to be provisionned HOBO_PROVISION_ROLE_PREFIXES = ['_cartads_'] + +if 'authentic2_gnm' not in INSTALLED_APPS: + INSTALLED_APPS += ('authentic2_gnm',) diff --git a/setup.py b/setup.py index c5cb5a3..c2d7d03 100755 --- a/setup.py +++ b/setup.py @@ -61,11 +61,6 @@ setup( install_requires=[ 'authentic2', ], - entry_points={ - 'authentic2.plugin': [ - 'authentic2-gnm = authentic2_gnm:Plugin', - ], - }, cmdclass={ 'sdist': eo_sdist}, zip_safe=False, diff --git a/src/authentic2_gnm/__init__.py b/src/authentic2_gnm/__init__.py index f317c93..2f4cfe4 100644 --- a/src/authentic2_gnm/__init__.py +++ b/src/authentic2_gnm/__init__.py @@ -37,8 +37,3 @@ class AppConfig(django.apps.AppConfig): return False default_app_config = 'authentic2_gnm.AppConfig' - - -class Plugin(object): - def get_apps(self): - return [__name__]