[Python-modules-commits] [behave] 03/09: add initial Debian packaging

Vincent Bernat bernat at moszumanska.debian.org
Tue Jun 13 06:10:28 UTC 2017


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

bernat pushed a commit to branch master
in repository behave.

commit 0b4f76ab98219436e4b0e4f31e84049546dfae86
Author: Vincent Bernat <vincent at bernat.im>
Date:   Tue Jun 13 06:59:33 2017 +0200

    add initial Debian packaging
---
 debian/.git-dpm               |  3 ++
 debian/changelog              |  5 +++
 debian/compat                 |  1 +
 debian/control                | 66 +++++++++++++++++++++++++++++
 debian/copyright              | 98 +++++++++++++++++++++++++++++++++++++++++++
 debian/python-behave-doc.docs |  2 +
 debian/rules                  | 14 +++++++
 debian/source/options         |  1 +
 debian/watch                  |  4 ++
 9 files changed, 194 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
index 9a3b11f..063b769 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@
 behave_1.2.5.orig.tar.bz2
 80b7bda7f1a1fb2fd275eff419c4574e7173a929
 348877
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fadc0e6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+behave (1.2.5-1) unstable; urgency=low
+
+  * Initial release (closes: #765550)
+
+ -- Vincent Bernat <bernat at debian.org>  Tue, 13 Jun 2017 07:01:28 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..588f969
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,66 @@
+Source: behave
+Section: python
+Priority: optional
+Maintainer: Vincent Bernat <bernat at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 9), dh-python,
+               python-all,
+               python-parse,
+               python-parse-type,
+               python-setuptools,
+               python-six,
+               python3-all,
+               python3-parse,
+               python3-parse-type,
+               python3-setuptools,
+               python3-six,
+               python3-sphinx,
+Standards-Version: 3.9.8
+Homepage: http://github.com/behave/behave
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/behave.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/behave.git
+
+Package: python-behave
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+Recommends: ${python:Recommends}
+Suggests: ${python:Suggests}
+Description: behaviour-driven development for Python 2
+ Behavior-driven development (or BDD) is an agile software development
+ technique that encourages collaboration between developers, QA, and
+ non-technical or business participants in a software project.
+ .
+ behave uses tests written in a natural language style, backed up
+ by Python code.
+ .
+ This package contains the modules for Python 2.
+
+Package: python3-behave
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: behaviour-driven development for Python 3
+ Behavior-driven development (or BDD) is an agile software development
+ technique that encourages collaboration between developers, QA, and
+ non-technical or business participants in a software project.
+ .
+ behave uses tests written in a natural language style, backed up
+ by Python code.
+ .
+ This package contains the modules for Python 3.
+
+Package: python-behave-doc
+Section: doc
+Architecture: all
+Priority: extra
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: behaviour-driven development, documentation
+ Behavior-driven development (or BDD) is an agile software development
+ technique that encourages collaboration between developers, QA, and
+ non-technical or business participants in a software project.
+ .
+ behave uses tests written in a natural language style, backed up
+ by Python code.
+ .
+ This package contains the documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6708c84
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,98 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: behave
+Upstream-Contact: Benno Rice, Richard Jones and Jens Engel <behave-users at googlegroups.com>
+Source: http://github.com/behave/behave
+
+Files: *
+Copyright: (c) 2012-2014 Benno Rice, Richard Jones, Jens Engel and others, except where noted.
+License: BSD-2
+
+Files: docs/_themes
+Copyright: (c) 2011 Kenneth Reitz.
+           (c) 2010 by Armin Ronacher
+License: BSD-3
+
+Files: tools/i18n.yaml
+Copyright: (c) 2009-2011 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy
+License: Expat
+
+Files: debian/*
+Copyright: 2017 © Vincent Bernat <bernat at debian.org>
+License: BSD-2
+
+License: BSD-2
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. 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 AUTHOR ``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 AUTHOR 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.
+
+License: BSD-3
+ Redistribution and use in source and binary forms of the theme, 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.
+ .
+ * The names of the contributors may not be used to endorse or
+   promote products derived from this software without specific
+   prior written permission.
+ .
+ We kindly ask you to only use these themes in an unmodified manner just
+ for Flask and Flask-related products, not for unrelated projects.  If you
+ like the visual style and want to use it for your own projects, please
+ consider making some larger changes to the themes (such as changing
+ font faces, sizes, colors or margins).
+ .
+ THIS THEME 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 OWNER 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 THEME, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/debian/python-behave-doc.docs b/debian/python-behave-doc.docs
new file mode 100644
index 0000000..1618a62
--- /dev/null
+++ b/debian/python-behave-doc.docs
@@ -0,0 +1,2 @@
+.pybuild/docs/*
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f4b79c7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=behave
+export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin/
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build-indep:
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+	cd docs && \
+	PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
+	sphinx-build -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/
+	rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees
+endif
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..d81db3f
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+.egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d9dfa9e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# try also https://pypi.debian.net/behave/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/behave/behave-(.+)\.(?: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/behave.git



More information about the Python-modules-commits mailing list