[Python-modules-commits] [python-parameterized] 02/03: Initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sat Jul 29 12:38:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository python-parameterized.

commit 11dd6b510003c2ee87e155ca3bd1bf5e1ebc835c
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Jul 27 21:21:06 2017 +0100

    Initial debianization
---
 debian/changelog      |  5 +++++
 debian/compat         |  1 +
 debian/control        | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright      | 34 ++++++++++++++++++++++++++++++++++
 debian/gbp.conf       |  7 +++++++
 debian/rules          | 12 ++++++++++++
 debian/source/format  |  1 +
 debian/source/options |  1 +
 debian/tests/control  | 37 +++++++++++++++++++++++++++++++++++++
 debian/watch          |  3 +++
 10 files changed, 147 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..539e849
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-parameterized (0.6.1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #869976)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Thu, 27 Jul 2017 19:46:01 +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..292349f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
+Source: python-parameterized
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 10),
+               dh-python,
+               dpkg-dev (>= 1.17.14),
+               python-all,
+               python-nose <!nocheck>,
+               python-setuptools,
+               python3-all,
+               python3-nose <!nocheck>,
+               python3-setuptools
+Standards-Version: 4.0.0
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/python-parameterized.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-parameterized.git
+Homepage: https://github.com/wolever/parameterized
+
+Package: python-parameterized
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends}
+Description: parameterized testing for Python 2
+ The parameterized module provides a set of decorators for parameterized
+ testing in Python. It supports nose, nose2, pytest and unittest.
+ .
+ The @parameterized decorator can be used for class methods, and standalone
+ functions, whilst the @parameterized.expand should be used for classes
+ deriving from unittest.TestCase.
+ .
+ This package provides the modules for Python 2.
+
+Package: python3-parameterized
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Description: parameterized testing for Python 3
+ The parameterized module provides a set of decorators for parameterized
+ testing in Python. It supports nose, nose2, pytest and unittest.
+ .
+ The @parameterized decorator can be used for class methods, and standalone
+ functions, whilst the @parameterized.expand should be used for classes
+ deriving from unittest.TestCase.
+ .
+ This package provides the modules for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2aca03a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: parameterized
+Upstream-Contact: David Wolever <david at wolever.net>
+Source: https://pypi.python.org/pypi/parameterized
+
+Files: *
+Copyright: 2010 David Wolever <david at wolever.net>
+License: BSD-2-Clause
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant <ghisvail at gmail.com>
+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/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..f53906f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..17bed01
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=parameterized
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE=test
+endif
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..b2b7b88
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+\.egg-info/"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..6c71f5f
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,37 @@
+Test-Command: set -e
+ ; for py in $(pyversions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py (unittest):"
+ ; $py -m unittest -v parameterized.test
+ ; echo "Testing with $py (nose):"
+ ; $py -m nose -v parameterized.test
+ ; echo "Testing with $py (nose2):"
+ ; $py -m nose2 -v parameterized.test
+ ; echo "Testing with $py (pytest):"
+ ; $py -m pytest -v --pyargs parameterized.test
+ ; done
+Depends: python-all,
+         python-nose,
+         python-nose2,
+         python-parameterized,
+         python-pytest
+Restrictions: allow-stderr
+
+Test-Command: set -e
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py (unittest):"
+ ; $py -m unittest -v parameterized.test
+ ; echo "Testing with $py (nose):"
+ ; $py -m nose -v parameterized.test
+ ; echo "Testing with $py (nose2):"
+ ; $py -m nose2 -v parameterized.test
+ ; echo "Testing with $py (pytest):"
+ ; $py -m pytest -v --pyargs parameterized.test
+ ; done
+Depends: python3-all,
+         python3-nose,
+         python3-nose2,
+         python3-parameterized,
+         python3-pytest
+Restrictions: allow-stderr
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9704038
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/parameterized/parameterized@ANY_VERSION@@ARCHIVE_EXT@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-parameterized.git



More information about the Python-modules-commits mailing list