[Python-modules-commits] [python-django-otp] 13/13: Initial release (Closes: #856454).
Michael Fladischer
fladi at moszumanska.debian.org
Wed Mar 1 08:40:44 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 9e6b721df6a988dd1d3aeb0e0817a9a2fa9ac2b8
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date: Wed Mar 1 09:23:41 2017 +0100
Initial release (Closes: #856454).
---
debian/changelog | 5 ++++
debian/compat | 1 +
debian/control | 54 ++++++++++++++++++++++++++++++++++
debian/copyright | 34 +++++++++++++++++++++
debian/python-django-otp-doc.doc-base | 8 +++++
debian/python-django-otp-doc.docs | 1 +
debian/python3-django-otp.docs | 1 +
debian/rules | 27 +++++++++++++++++
debian/settings.py | 50 +++++++++++++++++++++++++++++++
debian/source/include-binaries | 1 +
debian/upstream-signing-key.pgp | Bin 0 -> 6199 bytes
debian/watch | 3 ++
12 files changed, 185 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f0318c6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-django-otp (0.3.8-1) unstable; urgency=low
+
+ * Initial release (Closes: #856454).
+
+ -- Michael Fladischer <fladi at debian.org> Sun, 26 Feb 2017 12:02:03 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d0aafeb
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,54 @@
+Source: python-django-otp
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Michael Fladischer <fladi at debian.org>
+Build-Depends: debhelper (>= 10),
+ dh-python,
+ python3-all,
+ python3-django,
+ python3-setuptools,
+ python3-sphinx
+Standards-Version: 3.9.8
+X-Python3-Version: >= 3.3
+Homepage: https://bitbucket.org/psagers/django-otp
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-django-otp.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-django-otp.git
+
+Package: python3-django-otp
+Architecture: all
+Depends: ${misc:Depends},
+ ${python3:Depends}
+Suggests: python-django-otp-doc (= ${binary:Version})
+Description: pluggable framework for two-factor authentication (Python3 version)
+ This project makes it easy to add support for one-time passwords (OTPs) to
+ Django. It can be integrated at various levels, depending on how much
+ customization is required. It integrates with django.contrib.auth, although it
+ is not a Django authentication backend. The primary target is developers
+ wishing to incorporate OTPs into their Django projects as a form of two-factor
+ authentication.
+ .
+ This project includes several simple OTP plugins and more are available
+ separately. This package also includes an implementation of OATH HOTP and TOTP
+ for convenience, as these are standard OTP algorithms used by multiple plugins.
+ .
+ This package contains the Python 3 version of the library.
+
+Package: python-django-otp-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends},
+ ${sphinxdoc:Depends}
+Description: pluggable framework for two-factor authentication (Documentation)
+ This project makes it easy to add support for one-time passwords (OTPs) to
+ Django. It can be integrated at various levels, depending on how much
+ customization is required. It integrates with django.contrib.auth, although it
+ is not a Django authentication backend. The primary target is developers
+ wishing to incorporate OTPs into their Django projects as a form of two-factor
+ authentication.
+ .
+ This project includes several simple OTP plugins and more are available
+ separately. This package also includes an implementation of OATH HOTP and TOTP
+ for convenience, as these are standard OTP algorithms used by multiple plugins.
+ .
+ This package contains the documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..1c7837d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: python-django-otp
+Upstream-Contact: Peter Sagerson <psagersDjwublJf at ignorare.net>
+Source: https://bitbucket.org/psagers/django-otp
+
+Files: *
+Copyright: 2012, Peter Sagerson <psagersDjwublJf at ignorare.net>
+License: BSD-2-clause
+
+Files: debian/*
+Copyright: 2017, Michael Fladischer <fladi at debian.org>
+License: BSD-2-clause
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ - Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ .
+ - Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/python-django-otp-doc.doc-base b/debian/python-django-otp-doc.doc-base
new file mode 100644
index 0000000..9fee612
--- /dev/null
+++ b/debian/python-django-otp-doc.doc-base
@@ -0,0 +1,8 @@
+Document: python-django-otp-doc
+Title: django-otp Documentation
+Author: Peter Sagerson <psagersDjwublJf at ignorare.net>
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-django-otp-doc/html/index.html
+Files: /usr/share/doc/python-django-otp-doc/html/*.html
diff --git a/debian/python-django-otp-doc.docs b/debian/python-django-otp-doc.docs
new file mode 100644
index 0000000..2981a3c
--- /dev/null
+++ b/debian/python-django-otp-doc.docs
@@ -0,0 +1 @@
+docs/.build/html
diff --git a/debian/python3-django-otp.docs b/debian/python3-django-otp.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python3-django-otp.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6f26ded
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=django-otp
+
+%:
+ dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build:
+ dh_auto_build
+ PYTHONPATH=.:docs/ext sphinx-build -b html -d docs/.build/.doctrees -N docs/source docs/.build/html
+
+override_dh_auto_test:
+ django-admin startproject test_project
+ cp debian/settings.py test_project/test_project/settings.py
+ dh_auto_test -- --system=custom --test-args="PYTHONPATH='.:test_project' {interpreter} /usr/bin/django-admin test --settings=test_project.settings django_otp"
+ set -e; \
+ for plugin in otp_email otp_static otp_hotp otp_totp; do \
+ dh_auto_test -- --system=custom --test-args="PYTHONPATH='.:test_project' {interpreter} /usr/bin/django-admin test --settings=test_project.settings django_otp.plugins.$$plugin"; \
+ done
+ rm -rf test_project
+
+override_dh_clean:
+ rm -rf docs/.build
+ dh_clean
diff --git a/debian/settings.py b/debian/settings.py
new file mode 100644
index 0000000..42d9008
--- /dev/null
+++ b/debian/settings.py
@@ -0,0 +1,50 @@
+import os
+
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+SECRET_KEY = '1$57_8hot8&l)gvs#%(xh9fda(lmo!7_j5$4y!rgdq86644-7v'
+DEBUG = True
+ALLOWED_HOSTS = []
+INSTALLED_APPS = [
+ 'django.contrib.admin',
+ 'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.messages',
+ 'django.contrib.staticfiles',
+ 'django_otp',
+ 'django_otp.plugins.otp_email',
+ 'django_otp.plugins.otp_hotp',
+ 'django_otp.plugins.otp_static',
+ 'django_otp.plugins.otp_totp',
+]
+MIDDLEWARE = [
+ 'django.middleware.security.SecurityMiddleware',
+ 'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.middleware.common.CommonMiddleware',
+ 'django.middleware.csrf.CsrfViewMiddleware',
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.contrib.messages.middleware.MessageMiddleware',
+ 'django.middleware.clickjacking.XFrameOptionsMiddleware',
+]
+ROOT_URLCONF = 'test_project.urls'
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.template.context_processors.debug',
+ 'django.template.context_processors.request',
+ 'django.contrib.auth.context_processors.auth',
+ 'django.contrib.messages.context_processors.messages',
+ ],
+ },
+ },
+]
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+ }
+}
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 0000000..95a390b
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1 @@
+debian/upstream-signing-key.pgp
diff --git a/debian/upstream-signing-key.pgp b/debian/upstream-signing-key.pgp
new file mode 100644
index 0000000..c8f966a
Binary files /dev/null and b/debian/upstream-signing-key.pgp differ
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..dc03bc2
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/,pgpsigurlmangle=s/$/.asc/ \
+https://pypi.debian.net/django-otp/django-otp-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
--
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