[pybtex-docutils] 01/02: Initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jul 26 09:14:26 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository pybtex-docutils.

commit d5d64cdf613bc41fb2ae1ceae739077e0b857083
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sat Jul 22 22:26:56 2017 +0100

    Initial debianization
---
 debian/changelog                                   |  5 +++
 debian/compat                                      |  1 +
 debian/control                                     | 47 ++++++++++++++++++++++
 debian/copyright                                   | 31 ++++++++++++++
 debian/gbp.conf                                    |  7 ++++
 .../patches/Fix-build-of-docs-with-Python-3.patch  | 21 ++++++++++
 debian/patches/No-privacy-breach.patch             | 24 +++++++++++
 debian/patches/series                              |  2 +
 debian/python-pybtex-docutils-doc.doc-base         |  9 +++++
 debian/python-pybtex-docutils-doc.docs             |  1 +
 .../python-pybtex-docutils-doc.lintian-overrides   |  2 +
 debian/rules                                       | 29 +++++++++++++
 debian/source/format                               |  1 +
 debian/source/options                              |  1 +
 debian/tests/control                               | 11 +++++
 debian/watch                                       |  3 ++
 16 files changed, 195 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9c1bcb2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pybtex-docutils (0.2.1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #801307)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Sat, 22 Jul 2017 22:13:12 +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..5677b52
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,47 @@
+Source: pybtex-docutils
+Maintainer: Debian Science Maintainers <debian-science-maintainers 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-docutils,
+               python3-nose <!nocheck>,
+               python3-pybtex,
+               python3-setuptools,
+               python3-six,
+               python3-sphinx <!nodoc>,
+               sphinx-common
+Standards-Version: 4.0.0
+Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/pybtex-docutils.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/pybtex-docutils.git
+Homepage: https://github.com/mcmtroffaes/pybtex-docutils
+
+Package: python3-pybtex-docutils
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Suggests: python-pybtex-docutils-doc <!nodoc>
+Description: docutils backend for pybtex
+ Pybtex reads citation information from a file and produces a formatted
+ bibliography. Pybtex-docutils provides a plugin which brings support for
+ docutils to pybtex.
+ .
+ This package provides the modules for Python 3.
+
+Package: python-pybtex-docutils-doc
+Architecture: all
+Multi-Arch: foreign
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Description: documentation for pybtex-docutils
+ Pybtex reads citation information from a file and produces a formatted
+ bibliography. Pybtex-docutils provides a plugin which brings support for
+ docutils to pybtex.
+ .
+ This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..82dc990
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pybtex-docutils
+Upstream-Contact: Matthias C. M. Troffaes <matthias.troffaes at gmail.com>
+Source: https://pypi.python.org/pypi/pybtex-docutils
+
+Files: *
+Copyright: 2013-2014 Matthias C. M. Troffaes
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: Expat
+
+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/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/Fix-build-of-docs-with-Python-3.patch b/debian/patches/Fix-build-of-docs-with-Python-3.patch
new file mode 100644
index 0000000..32070fb
--- /dev/null
+++ b/debian/patches/Fix-build-of-docs-with-Python-3.patch
@@ -0,0 +1,21 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sat, 22 Jul 2017 22:33:54 +0100
+Subject: Fix build of docs with Python 3
+
+---
+ doc/conf.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/doc/conf.py b/doc/conf.py
+index 359994e..0e09e1e 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -46,7 +46,7 @@ copyright = u'2013, Matthias C. M. Troffaes'
+ # built documents.
+ #
+ # The full version, including alpha/beta/rc tags.
+-with open("../VERSION", "rb") as version_file:
++with open("../VERSION") as version_file:
+     release = version_file.read().strip()
+ # The short X.Y version.
+ version = '.'.join(release.split('.')[:2])
diff --git a/debian/patches/No-privacy-breach.patch b/debian/patches/No-privacy-breach.patch
new file mode 100644
index 0000000..b856c8f
--- /dev/null
+++ b/debian/patches/No-privacy-breach.patch
@@ -0,0 +1,24 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sat, 22 Jul 2017 22:35:23 +0100
+Subject: No privacy breach
+
+---
+ README.rst | 8 --------
+ 1 file changed, 8 deletions(-)
+
+diff --git a/README.rst b/README.rst
+index 43e2680..b4b4fdb 100644
+--- a/README.rst
++++ b/README.rst
+@@ -5,11 +5,3 @@ A docutils backend for pybtex.
+ * Documentation: http://pybtex-docutils.readthedocs.org/
+ 
+ * Development: http://github.com/mcmtroffaes/pybtex-docutils/ |imagetravis| |imagecoveralls|
+-
+-.. |imagetravis| image:: https://travis-ci.org/mcmtroffaes/pybtex-docutils.png?branch=develop
+-       :target: https://travis-ci.org/mcmtroffaes/pybtex-docutils
+-       :alt: travis-ci
+-
+-.. |imagecoveralls| image:: https://coveralls.io/repos/mcmtroffaes/pybtex-docutils/badge.png?branch=develop
+-       :target: https://coveralls.io/r/mcmtroffaes/pybtex-docutils?branch=develop
+-       :alt: coveralls.io
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e8fa66b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Fix-build-of-docs-with-Python-3.patch
+No-privacy-breach.patch
diff --git a/debian/python-pybtex-docutils-doc.doc-base b/debian/python-pybtex-docutils-doc.doc-base
new file mode 100644
index 0000000..bf8270c
--- /dev/null
+++ b/debian/python-pybtex-docutils-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-pybtex-docutils-doc
+Title: pybtex-docutils Documentation
+Author: Matthias C. M. Troffaes
+Abstract: This is the reference documentation for pybtex-docutils.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-pybtex-docutils-doc/html/index.html
+Files: /usr/share/doc/python-pybtex-docutils-doc/html/*.html
diff --git a/debian/python-pybtex-docutils-doc.docs b/debian/python-pybtex-docutils-doc.docs
new file mode 100644
index 0000000..7123782
--- /dev/null
+++ b/debian/python-pybtex-docutils-doc.docs
@@ -0,0 +1 @@
+doc/_build/html
diff --git a/debian/python-pybtex-docutils-doc.lintian-overrides b/debian/python-pybtex-docutils-doc.lintian-overrides
new file mode 100644
index 0000000..1718578
--- /dev/null
+++ b/debian/python-pybtex-docutils-doc.lintian-overrides
@@ -0,0 +1,2 @@
+# This file is part of the upstream documentation.
+extra-license-file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5554624
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=pybtex-docutils
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE=test
+else
+export PYBUILD_BEFORE_TEST=cp -r {dir}/*.egg-info {build_dir}
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*.egg-info
+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/options b/debian/source/options
new file mode 100644
index 0000000..6e88e49
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+\.egg-info/"
\ No newline at end of file
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..25b387e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,11 @@
+Test-Command: set -e
+ ; cp -r test "$AUTOPKGTEST_TMP"
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m nose -v
+ ; done
+Depends: python3-all,
+         python3-nose,
+         python3-pybtex-docutils
+Restrictions: allow-stderr
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..887f5d3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/@PACKAGE@/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pybtex-docutils.git



More information about the debian-science-commits mailing list