[Python-modules-commits] [python-django-otp] 06/08: merge patched into master
Michael Fladischer
fladi at moszumanska.debian.org
Fri May 12 19:58:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch master
in repository python-django-otp.
commit 623af5ad6dcc40ce72c5bff274c5084366a40a54
Merge: e09eb33 7a173ca
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date: Fri May 12 21:46:43 2017 +0200
merge patched into master
CHANGES | 14 +++-
PKG-INFO | 2 +-
debian/.git-dpm | 6 +-
...se-local-objects.inv-file-for-intersphinx.patch | 4 +-
...l-django.setup-to-initialize-app-registry.patch | 4 +-
...ncies-to-INSTALLED_APPS-for-sphinx-autodo.patch | 4 +-
django_otp.egg-info/PKG-INFO | 2 +-
django_otp/middleware.py | 10 ++-
django_otp/plugins/otp_email/tests.py | 11 +++-
django_otp/plugins/otp_hotp/admin.py | 6 +-
django_otp/plugins/otp_totp/admin.py | 6 +-
django_otp/tests.py | 76 ++++++++++++++++++++--
docs/source/conf.py | 2 +-
setup.py | 2 +-
14 files changed, 121 insertions(+), 28 deletions(-)
diff --cc debian/.git-dpm
index e84c3a0,0000000..c3637fa
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,8 -1,0 +1,8 @@@
+# see git-dpm(1) from git-dpm package
- c03db8b6c785d29f0e94af510d2dcafd2f26bf94
- c03db8b6c785d29f0e94af510d2dcafd2f26bf94
- 2caee170874f032099c3a7d2a2b54ab755841ecb
++7a173ca1d81d67d579de0a219389e2766ddb4609
++7a173ca1d81d67d579de0a219389e2766ddb4609
++005240302b4cd9ccd4ce1a68918268b4c6b01906
+005240302b4cd9ccd4ce1a68918268b4c6b01906
+python-django-otp_0.3.13.orig.tar.gz
+fcd8d514b84411945390bd5e9dcb14a0ab0d95a6
+44246
diff --cc debian/patches/0001-Use-local-objects.inv-file-for-intersphinx.patch
index 4575895,0000000..1dcae98
mode 100644,000000..100644
--- a/debian/patches/0001-Use-local-objects.inv-file-for-intersphinx.patch
+++ b/debian/patches/0001-Use-local-objects.inv-file-for-intersphinx.patch
@@@ -1,56 -1,0 +1,56 @@@
- From 32f24987c57fcdeb55e3fc5cb9848b626adbb1b7 Mon Sep 17 00:00:00 2001
++From 7c4ca5eb3d453f84c47db59fffbf1b652fba716a Mon Sep 17 00:00:00 2001
+From: Michael Fladischer <FladischerMichael at fladi.at>
+Date: Sun, 26 Feb 2017 17:19:06 +0100
+Subject: Use local objects.inv file for intersphinx.
+
+This makes sure that no online resources are used during package build.
+---
+ docs/source/conf.py | 28 +++++++++++++++++++++++-----
+ 1 file changed, 23 insertions(+), 5 deletions(-)
+
+diff --git a/docs/source/conf.py b/docs/source/conf.py
- index d152d2c..d6464aa 100644
++index b7504d0..77cc4fc 100644
+--- a/docs/source/conf.py
++++ b/docs/source/conf.py
+@@ -36,6 +36,7 @@ extensions = [
+ ]
+
+ # autodoc and viewcode need valid settings in order to process Django modules.
++import django
+ import django.conf
+ django.conf.settings.configure(
+ DATABASES={
+@@ -46,11 +47,28 @@ django.conf.settings.configure(
+ }
+ )
+
+-intersphinx_mapping = {
+- 'python': ('http://docs.python.org/2/', None),
+- 'django': ('https://docs.djangoproject.com/en/1.10/',
+- 'https://docs.djangoproject.com/en/1.10/_objects/'),
+-}
++def check_object_path(key, url, path):
++ if os.path.isfile(path):
++ return {key: (url, path)}
++ return {}
++
++intersphinx_mapping = {}
++intersphinx_mapping.update(check_object_path(
++ 'python',
++ 'https://docs.python.org/{v}/'.format(
++ v='.'.join(map(str, sys.version_info[0:2]))
++ ),
++ '/usr/share/doc/python{v}/html/objects.inv'.format(
++ v='.'.join(map(str, sys.version_info[0:2]))
++ )
++))
++intersphinx_mapping.update(check_object_path(
++ 'django',
++ 'https://docs.djangoproject.com/en/{v}/'.format(
++ v='.'.join(map(str, django.VERSION[:2]))
++ ),
++ '/usr/share/doc/python-django-doc/html/objects.inv'
++))
+
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']
diff --cc debian/patches/0002-Call-django.setup-to-initialize-app-registry.patch
index 8c6b6ff,0000000..bd65cec
mode 100644,000000..100644
--- a/debian/patches/0002-Call-django.setup-to-initialize-app-registry.patch
+++ b/debian/patches/0002-Call-django.setup-to-initialize-app-registry.patch
@@@ -1,22 -1,0 +1,22 @@@
- From 58cb03bb1d495cdbd5f48e5bdc01ac61b8491e06 Mon Sep 17 00:00:00 2001
++From 7b9c41c9e73769356abe13655ef31e139129fc1b Mon Sep 17 00:00:00 2001
+From: Michael Fladischer <FladischerMichael at fladi.at>
+Date: Wed, 1 Mar 2017 08:38:17 +0100
+Subject: Call `django.setup()` to initialize app registry.
+
+---
+ docs/source/conf.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/docs/source/conf.py b/docs/source/conf.py
- index d6464aa..3f29a86 100644
++index 77cc4fc..b628097 100644
+--- a/docs/source/conf.py
++++ b/docs/source/conf.py
+@@ -47,6 +47,8 @@ django.conf.settings.configure(
+ }
+ )
+
++django.setup()
++
+ def check_object_path(key, url, path):
+ if os.path.isfile(path):
+ return {key: (url, path)}
diff --cc debian/patches/0003-Add-dependencies-to-INSTALLED_APPS-for-sphinx-autodo.patch
index d1e5a13,0000000..66fc36f
mode 100644,000000..100644
--- a/debian/patches/0003-Add-dependencies-to-INSTALLED_APPS-for-sphinx-autodo.patch
+++ b/debian/patches/0003-Add-dependencies-to-INSTALLED_APPS-for-sphinx-autodo.patch
@@@ -1,31 -1,0 +1,31 @@@
- From c03db8b6c785d29f0e94af510d2dcafd2f26bf94 Mon Sep 17 00:00:00 2001
++From 7a173ca1d81d67d579de0a219389e2766ddb4609 Mon Sep 17 00:00:00 2001
+From: Michael Fladischer <FladischerMichael at fladi.at>
+Date: Wed, 1 Mar 2017 08:59:24 +0100
+Subject: Add dependencies to INSTALLED_APPS for sphinx autodoc.
+
+---
+ docs/source/conf.py | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/docs/source/conf.py b/docs/source/conf.py
- index 3f29a86..cd032c3 100644
++index b628097..c3cf322 100644
+--- a/docs/source/conf.py
++++ b/docs/source/conf.py
+@@ -44,7 +44,16 @@ django.conf.settings.configure(
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': '/tmp/django_otp.sqlite',
+ }
+- }
++ },
++ INSTALLED_APPS=[
++ 'django.contrib.auth',
++ 'django.contrib.contenttypes',
++ 'django_otp',
++ 'django_otp.plugins.otp_email',
++ 'django_otp.plugins.otp_static',
++ 'django_otp.plugins.otp_totp',
++ 'django_otp.plugins.otp_hotp',
++ ]
+ )
+
+ django.setup()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-otp.git
More information about the Python-modules-commits
mailing list