[Python-modules-commits] [python-rpaths] 02/03: Initial debianisation

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Apr 18 10:59:09 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-rpaths.

commit cbd47c0bc8629e31a75d654c43511285a3a63beb
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Apr 18 10:54:06 2017 +0100

    Initial debianisation
---
 debian/changelog                       |  5 ++++
 debian/compat                          |  1 +
 debian/control                         | 44 ++++++++++++++++++++++++++++++++++
 debian/copyright                       | 38 +++++++++++++++++++++++++++++
 debian/gbp.conf                        |  7 ++++++
 debian/patches/Use-packaged-docs.patch | 20 ++++++++++++++++
 debian/patches/series                  |  1 +
 debian/python-rpaths-doc.doc-base      | 10 ++++++++
 debian/python-rpaths-doc.docs          |  1 +
 debian/rules                           | 27 +++++++++++++++++++++
 debian/source/format                   |  1 +
 debian/source/local-options            |  1 +
 debian/tests/control                   | 10 ++++++++
 debian/watch                           |  3 +++
 14 files changed, 169 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..adca534
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-rpaths (0.13-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #860529)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Tue, 18 Apr 2017 10:54:39 +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..25af8c3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: python-rpaths
+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),
+               python3-all,
+               python3-doc <!nodoc>,
+               python3-setuptools,
+               python3-sphinx <!nodoc>,
+               sphinx-common
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/python-rpaths.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-rpaths.git
+Homepage: https://github.com/remram44/rpaths/
+X-Python3-Version: >= 3.2
+
+Package: python3-rpaths
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Suggests: python-rpaths-doc <!nodoc>
+Description: cross-platform path manipulation library for Python
+ rpaths is another path manipulation library for Python. It is heavily inspired
+ by Unipath and pathlib and provides a total Python 2/3 and Windows/POSIX
+ compatibility.
+ .
+ This package provides the modules for Python 3.
+
+Package: python-rpaths-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Description: documentation for rpaths
+ rpaths is another path manipulation library for Python. It is heavily inspired
+ by Unipath and pathlib and provides a total Python 2/3 and Windows/POSIX
+ compatibility.
+ .
+ This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f793b89
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: rpaths
+Upstream-Contact: Remi Rampin <remirampin at gmail.com>
+Source: https://pypi.python.org/pypi/rpaths
+
+Files: *
+Copyright: 2014 Remi Rampin
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant
+License: BSD-3-Clause
+
+License: BSD-3-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.
+ .
+ * Neither the name of the copyright holder nor the names of its
+   contributors may be used to endorse or promote products derived from
+   this software without specific prior written permission.
+ .
+ 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/patches/Use-packaged-docs.patch b/debian/patches/Use-packaged-docs.patch
new file mode 100644
index 0000000..cc7c449
--- /dev/null
+++ b/debian/patches/Use-packaged-docs.patch
@@ -0,0 +1,20 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Tue, 18 Apr 2017 11:03:42 +0100
+Subject: Use packaged docs
+
+---
+ doc/conf.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/doc/conf.py b/doc/conf.py
+index 8bed92c..aab1572 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -262,4 +262,6 @@ texinfo_documents = [
+ 
+ 
+ # Example configuration for intersphinx: refer to the Python standard library.
+-intersphinx_mapping = {'http://docs.python.org/2/': None}
++intersphinx_mapping = {
++    'https://docs.python.org/3/': '/usr/share/doc/python3/html/objects.inv'
++}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e83dee3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Use-packaged-docs.patch
diff --git a/debian/python-rpaths-doc.doc-base b/debian/python-rpaths-doc.doc-base
new file mode 100644
index 0000000..0043b89
--- /dev/null
+++ b/debian/python-rpaths-doc.doc-base
@@ -0,0 +1,10 @@
+Document: python-rpaths-doc
+Title: rpaths Documentation
+Author: Remi Rampin
+Abstract: This is the reference documentation for rpaths.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-rpaths-doc/html/index.html
+Files: /usr/share/doc/python-rpaths-doc/html/*.html
+
diff --git a/debian/python-rpaths-doc.docs b/debian/python-rpaths-doc.docs
new file mode 100644
index 0000000..7123782
--- /dev/null
+++ b/debian/python-rpaths-doc.docs
@@ -0,0 +1 @@
+doc/_build/html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3e56fe6
--- /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 = rpaths
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE = test
+endif
+
+%:
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_clean:
+	dh_auto_clean
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
+	$(MAKE) -C doc clean
+endif
+
+override_dh_auto_build: export http_proxy=127.0.0.1:9
+override_dh_auto_build: export https_proxy=127.0.0.1:9
+override_dh_auto_build:
+	dh_auto_build
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
+	PYTHONPATH=$(CURDIR) $(MAKE) -C doc html
+endif
+
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/local-options b/debian/source/local-options
new file mode 100644
index 0000000..b2b7b88
--- /dev/null
+++ b/debian/source/local-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..8dc6f14
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,10 @@
+Test-Command: set -e
+ ; cp -r tests "$AUTOPKGTEST_TMP"
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m pytest -v tests
+ ; done
+Depends: python3-all,
+         python3-pytest,
+         python3-rpaths
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b691b80
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/rpaths/rpaths@ANY_VERSION@@ARCHIVE_EXT@

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



More information about the Python-modules-commits mailing list