Switch to explicit AppConfig declaration
This commit is contained in:
parent
856687475d
commit
70afabec7e
|
@ -1,5 +1,5 @@
|
||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 0.3.14-alpha
|
current_version = 0.0.1-alpha
|
||||||
tag = True
|
tag = True
|
||||||
commit = True
|
commit = True
|
||||||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\-(?P<release>.*)
|
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/__init__.py]
|
||||||
|
|
||||||
|
[bumpversion:file:passbook/core/__init__.py]
|
||||||
|
|
||||||
|
[bumpversion:file:passbook/admin/__init__.py]
|
||||||
|
|
||||||
[bumpversion:file:passbook/captcha_factor/__init__.py]
|
[bumpversion:file:passbook/captcha_factor/__init__.py]
|
||||||
|
|
||||||
[bumpversion:file:passbook/oauth_client/__init__.py]
|
[bumpversion:file:passbook/oauth_client/__init__.py]
|
||||||
|
|
35
.coveragerc
Normal file
35
.coveragerc
Normal 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
|
|
@ -1,2 +1,2 @@
|
||||||
"""passbook admin"""
|
"""passbook admin"""
|
||||||
default_app_config = 'passbook.admin.apps.PassbookAdminConfig'
|
__version__ = '0.0.1-alpha'
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
"""passbook api"""
|
"""passbook api"""
|
||||||
default_app_config = 'passbook.api.apps.PassbookAPIConfig'
|
__version__ = '0.0.1-alpha'
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
"""passbook audit Header"""
|
"""passbook audit Header"""
|
||||||
__version__ = '0.0.1-alpha'
|
__version__ = '0.0.1-alpha'
|
||||||
default_app_config = 'passbook.audit.apps.PassbookAuditConfig'
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
"""passbook captcha_factor Header"""
|
"""passbook captcha_factor Header"""
|
||||||
__version__ = '0.0.1-alpha'
|
__version__ = '0.0.1-alpha'
|
||||||
default_app_config = 'passbook.captcha_factor.apps.PassbookCaptchaFactorConfig'
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
"""passbook core"""
|
"""passbook core"""
|
||||||
default_app_config = 'passbook.core.apps.PassbookCoreConfig'
|
__version__ = '0.0.1-alpha'
|
||||||
|
|
|
@ -66,17 +66,17 @@ INSTALLED_APPS = [
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'reversion',
|
'reversion',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
'passbook.core',
|
'passbook.core.apps.PassbookCoreConfig',
|
||||||
'passbook.admin',
|
'passbook.admin.apps.PassbookAdminConfig',
|
||||||
'passbook.api',
|
'passbook.api.apps.PassbookAPIConfig',
|
||||||
'passbook.audit',
|
'passbook.audit.apps.PassbookAuditConfig',
|
||||||
'passbook.lib',
|
'passbook.lib.apps.PassbookLibConfig',
|
||||||
'passbook.ldap',
|
'passbook.ldap.apps.PassbookLdapConfig',
|
||||||
'passbook.oauth_client',
|
'passbook.oauth_client.apps.PassbookOAuthClientConfig',
|
||||||
'passbook.oauth_provider',
|
'passbook.oauth_provider.apps.PassbookOAuthProviderConfig',
|
||||||
'passbook.saml_idp',
|
'passbook.saml_idp.apps.PassbookSAMLIDPConfig',
|
||||||
'passbook.totp',
|
'passbook.totp.apps.PassbookTOTPConfig',
|
||||||
'passbook.captcha_factor',
|
'passbook.captcha_factor.apps.PassbookCaptchaFactorConfig',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Message Tag fix for bootstrap CSS Classes
|
# Message Tag fix for bootstrap CSS Classes
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
"""Passbook ldap app Header"""
|
"""Passbook ldap app Header"""
|
||||||
__version__ = '0.0.1-alpha'
|
__version__ = '0.0.1-alpha'
|
||||||
default_app_config = 'passbook.ldap.apps.PassbookLdapConfig'
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
"""passbook lib"""
|
"""passbook lib"""
|
||||||
default_app_config = 'passbook.lib.apps.PassbookLibConfig'
|
__version__ = '0.0.1-alpha'
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
"""passbook oauth_client Header"""
|
"""passbook oauth_client Header"""
|
||||||
__version__ = '0.0.1-alpha'
|
__version__ = '0.0.1-alpha'
|
||||||
default_app_config = 'passbook.oauth_client.apps.PassbookOAuthClientConfig'
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
"""passbook oauth_provider Header"""
|
"""passbook oauth_provider Header"""
|
||||||
__version__ = '0.0.1-alpha'
|
__version__ = '0.0.1-alpha'
|
||||||
default_app_config = 'passbook.oauth_provider.apps.PassbookOAuthProviderConfig'
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
"""passbook saml_idp Header"""
|
"""passbook saml_idp Header"""
|
||||||
__version__ = '0.0.1-alpha'
|
__version__ = '0.0.1-alpha'
|
||||||
default_app_config = 'passbook.saml_idp.apps.PassbookSAMLIDPConfig'
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
"""passbook SAML IDP URLs"""
|
"""passbook SAML IDP URLs"""
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
|
|
||||||
from passbook.saml_idp import views
|
from passbook.saml_idp import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^login/$', views.LoginBeginView.as_view(), name="saml_login_begin"),
|
path('login/', views.LoginBeginView.as_view(), name="saml_login_begin"),
|
||||||
url(r'^login/process/$', views.LoginProcessView.as_view(), name='saml_login_process'),
|
path('login/process/', views.LoginProcessView.as_view(), name='saml_login_process'),
|
||||||
url(r'^logout/$', views.LogoutView.as_view(), name="saml_logout"),
|
path('logout/', views.LogoutView.as_view(), name="saml_logout"),
|
||||||
url(r'^metadata/xml/$', views.DescriptorView.as_view(), name='metadata_xml'),
|
path('metadata/<int:application_id>/',
|
||||||
|
views.DescriptorDownloadView.as_view(), name='metadata_xml'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -178,7 +178,7 @@ class SLOLogout(CSRFExemptMixin, LoginRequiredMixin, View):
|
||||||
return render(request, 'saml/idp/logged_out.html')
|
return render(request, 'saml/idp/logged_out.html')
|
||||||
|
|
||||||
|
|
||||||
class DescriptorView(View):
|
class DescriptorDownloadView(View):
|
||||||
"""Replies with the XML Metadata IDSSODescriptor."""
|
"""Replies with the XML Metadata IDSSODescriptor."""
|
||||||
|
|
||||||
def get(self, request, application_id):
|
def get(self, request, application_id):
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
"""passbook totp Header"""
|
"""passbook totp Header"""
|
||||||
__version__ = '0.0.1-alpha'
|
__version__ = '0.0.1-alpha'
|
||||||
default_app_config = 'passbook.totp.apps.PassbookTOTPConfig'
|
|
||||||
|
|
Reference in a new issue