Switch to explicit AppConfig declaration

This commit is contained in:
Jens Langhammer 2018-12-26 14:32:33 +01:00
parent 856687475d
commit 70afabec7e
No known key found for this signature in database
GPG Key ID: BEBC05297D92821B
16 changed files with 62 additions and 29 deletions

View File

@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.14-alpha
current_version = 0.0.1-alpha
tag = True
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\-(?P<release>.*)
@ -16,6 +16,10 @@ values =
[bumpversion:file:passbook/__init__.py]
[bumpversion:file:passbook/core/__init__.py]
[bumpversion:file:passbook/admin/__init__.py]
[bumpversion:file:passbook/captcha_factor/__init__.py]
[bumpversion:file:passbook/oauth_client/__init__.py]

35
.coveragerc Normal file
View File

@ -0,0 +1,35 @@
[run]
source = passbook
omit =
env/
*/wsgi.py
manage.py
*/migrations/*
*/apps.py
passbook/management/commands/nexus_upload.py
passbook/management/commands/web.py
passbook/management/commands/worker.py
docs/
[report]
sort = Cover
skip_covered = True
precision = 2
exclude_lines =
pragma: no cover
# Don't complain about missing debug-only code:
def __unicode__
def __str__
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
show_missing = True

View File

@ -1,2 +1,2 @@
"""passbook admin"""
default_app_config = 'passbook.admin.apps.PassbookAdminConfig'
__version__ = '0.0.1-alpha'

View File

@ -1,2 +1,2 @@
"""passbook api"""
default_app_config = 'passbook.api.apps.PassbookAPIConfig'
__version__ = '0.0.1-alpha'

View File

@ -1,3 +1,2 @@
"""passbook audit Header"""
__version__ = '0.0.1-alpha'
default_app_config = 'passbook.audit.apps.PassbookAuditConfig'

View File

@ -1,3 +1,2 @@
"""passbook captcha_factor Header"""
__version__ = '0.0.1-alpha'
default_app_config = 'passbook.captcha_factor.apps.PassbookCaptchaFactorConfig'

View File

@ -1,2 +1,2 @@
"""passbook core"""
default_app_config = 'passbook.core.apps.PassbookCoreConfig'
__version__ = '0.0.1-alpha'

View File

@ -66,17 +66,17 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'reversion',
'rest_framework',
'passbook.core',
'passbook.admin',
'passbook.api',
'passbook.audit',
'passbook.lib',
'passbook.ldap',
'passbook.oauth_client',
'passbook.oauth_provider',
'passbook.saml_idp',
'passbook.totp',
'passbook.captcha_factor',
'passbook.core.apps.PassbookCoreConfig',
'passbook.admin.apps.PassbookAdminConfig',
'passbook.api.apps.PassbookAPIConfig',
'passbook.audit.apps.PassbookAuditConfig',
'passbook.lib.apps.PassbookLibConfig',
'passbook.ldap.apps.PassbookLdapConfig',
'passbook.oauth_client.apps.PassbookOAuthClientConfig',
'passbook.oauth_provider.apps.PassbookOAuthProviderConfig',
'passbook.saml_idp.apps.PassbookSAMLIDPConfig',
'passbook.totp.apps.PassbookTOTPConfig',
'passbook.captcha_factor.apps.PassbookCaptchaFactorConfig',
]
# Message Tag fix for bootstrap CSS Classes

View File

@ -1,3 +1,2 @@
"""Passbook ldap app Header"""
__version__ = '0.0.1-alpha'
default_app_config = 'passbook.ldap.apps.PassbookLdapConfig'

View File

@ -1,2 +1,2 @@
"""passbook lib"""
default_app_config = 'passbook.lib.apps.PassbookLibConfig'
__version__ = '0.0.1-alpha'

View File

@ -1,3 +1,2 @@
"""passbook oauth_client Header"""
__version__ = '0.0.1-alpha'
default_app_config = 'passbook.oauth_client.apps.PassbookOAuthClientConfig'

View File

@ -1,3 +1,2 @@
"""passbook oauth_provider Header"""
__version__ = '0.0.1-alpha'
default_app_config = 'passbook.oauth_provider.apps.PassbookOAuthProviderConfig'

View File

@ -1,3 +1,2 @@
"""passbook saml_idp Header"""
__version__ = '0.0.1-alpha'
default_app_config = 'passbook.saml_idp.apps.PassbookSAMLIDPConfig'

View File

@ -1,11 +1,12 @@
"""passbook SAML IDP URLs"""
from django.conf.urls import url
from django.urls import path
from passbook.saml_idp import views
urlpatterns = [
url(r'^login/$', views.LoginBeginView.as_view(), name="saml_login_begin"),
url(r'^login/process/$', views.LoginProcessView.as_view(), name='saml_login_process'),
url(r'^logout/$', views.LogoutView.as_view(), name="saml_logout"),
url(r'^metadata/xml/$', views.DescriptorView.as_view(), name='metadata_xml'),
path('login/', views.LoginBeginView.as_view(), name="saml_login_begin"),
path('login/process/', views.LoginProcessView.as_view(), name='saml_login_process'),
path('logout/', views.LogoutView.as_view(), name="saml_logout"),
path('metadata/<int:application_id>/',
views.DescriptorDownloadView.as_view(), name='metadata_xml'),
]

View File

@ -178,7 +178,7 @@ class SLOLogout(CSRFExemptMixin, LoginRequiredMixin, View):
return render(request, 'saml/idp/logged_out.html')
class DescriptorView(View):
class DescriptorDownloadView(View):
"""Replies with the XML Metadata IDSSODescriptor."""
def get(self, request, application_id):

View File

@ -1,3 +1,2 @@
"""passbook totp Header"""
__version__ = '0.0.1-alpha'
default_app_config = 'passbook.totp.apps.PassbookTOTPConfig'