[sphinxcontrib-bibtex] 01/02: Initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Sep 27 16:29:13 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository sphinxcontrib-bibtex.

commit 863b977ede419677d3f5529b07993b543a42e82b
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Sep 27 17:03:50 2017 +0100

    Initial debianization
---
 debian/changelog                                   |  5 +++
 debian/compat                                      |  1 +
 debian/control                                     | 49 ++++++++++++++++++++++
 debian/copyright                                   | 34 +++++++++++++++
 debian/gbp.conf                                    |  7 ++++
 debian/patches/No-privacy-breach.patch             | 36 ++++++++++++++++
 debian/patches/Use-sortedcollections.patch         | 33 +++++++++++++++
 debian/patches/Use-the-packaged-docs.patch         | 21 ++++++++++
 debian/patches/series                              |  3 ++
 debian/python-sphinxcontrib.bibtex-doc.doc-base    |  9 ++++
 debian/python-sphinxcontrib.bibtex-doc.docs        |  1 +
 ...thon-sphinxcontrib.bibtex-doc.lintian-overrides |  2 +
 debian/rules                                       | 27 ++++++++++++
 debian/source/format                               |  1 +
 debian/source/options                              |  1 +
 debian/tests/control                               | 12 ++++++
 debian/watch                                       |  3 ++
 17 files changed, 245 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..86aa847
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+sphinxcontrib-bibtex (0.3.6-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #800358)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Mon, 25 Sep 2017 10:03:33 +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..cc23a6e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,49 @@
+Source: sphinxcontrib-bibtex
+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-doc <!nodoc>,
+               python3-nose <!nocheck>,
+               python3-pybtex-docutils <!nocheck>,
+               python3-setuptools,
+               python3-six <!nocheck>,
+               python3-sortedcollections <!nocheck>,
+               python3-sphinx <!nocheck> <!nodoc>,
+               python3-sphinx-testing <!nocheck>,
+               sphinx-doc <!nodoc>
+Standards-Version: 4.1.0
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/sphinxcontrib-bibtex.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/sphinxcontrib-bibtex.git
+Homepage: https://github.com/mcmtroffaes/sphinxcontrib-bibtex
+
+Package: python3-sphinxcontrib.bibtex
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Suggests: python-sphinxcontrib.bibtex-doc <!nodoc>
+Description: Sphinx extension for BibTeX style citations
+ This extension allows BibTeX citations to be inserted into documentation
+ generated by Sphinx, via a bibliography directive, and a cite role, which work
+ similarly to LaTeX’s thebibliography environment and \cite command.
+ .
+ This package provides the modules for Python 3.
+
+Package: python-sphinxcontrib.bibtex-doc
+Architecture: all
+Multi-Arch: foreign
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Description: documentation for sphinxcontrib-bibtex
+ This extension allows BibTeX citations to be inserted into documentation
+ generated by Sphinx, via a bibliography directive, and a cite role, which work
+ similarly to LaTeX’s thebibliography environment and \cite command.
+ .
+ This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..908fa84
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sphinxcontrib-bibtex
+Upstream-Contact: Matthias C. M. Troffaes <matthias.troffaes at gmail.com>
+Source: https://pypi.python.org/pypi/sphinxcontrib-bibtex
+
+Files: *
+Copyright: 2011-2015 Matthias C. M. Troffaes
+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/patches/No-privacy-breach.patch b/debian/patches/No-privacy-breach.patch
new file mode 100644
index 0000000..214bbb5
--- /dev/null
+++ b/debian/patches/No-privacy-breach.patch
@@ -0,0 +1,36 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sat, 22 Jul 2017 23:32:59 +0100
+Subject: No privacy breach
+
+---
+ README.rst | 20 --------------------
+ 1 file changed, 20 deletions(-)
+
+diff --git a/README.rst b/README.rst
+index 0ffc210..f9650f8 100644
+--- a/README.rst
++++ b/README.rst
+@@ -23,23 +23,3 @@ The extension is inspired by Matthew Brett's
+ * Documentation: http://sphinxcontrib-bibtex.readthedocs.org/en/latest/
+ 
+ * Development: https://github.com/mcmtroffaes/sphinxcontrib-bibtex/
+-
+-.. |travis| image:: https://travis-ci.org/mcmtroffaes/sphinxcontrib-bibtex.png?branch=develop
+-    :target: https://travis-ci.org/mcmtroffaes/sphinxcontrib-bibtex
+-    :alt: travis-ci
+-
+-.. |coveralls| image:: https://coveralls.io/repos/mcmtroffaes/sphinxcontrib-bibtex/badge.png?branch=develop
+-    :target: https://coveralls.io/github/mcmtroffaes/sphinxcontrib-bibtex?branch=develop
+-    :alt: coveralls.io
+-
+-.. |downloads| image:: https://pypip.in/d/sphinxcontrib-bibtex/badge.png
+-    :target: https://pypi.python.org/pypi/sphinxcontrib-bibtex/
+-    :alt: downloads
+-
+-.. |version| image:: https://pypip.in/v/sphinxcontrib-bibtex/badge.png
+-    :target: https://pypi.python.org/pypi/sphinxcontrib-bibtex/
+-    :alt: latest version
+-
+-.. |license| image:: https://pypip.in/license/sphinxcontrib-bibtex/badge.png
+-    :target: https://pypi.python.org/pypi/sphinxcontrib-bibtex/
+-    :alt: license
diff --git a/debian/patches/Use-sortedcollections.patch b/debian/patches/Use-sortedcollections.patch
new file mode 100644
index 0000000..c9d0c0f
--- /dev/null
+++ b/debian/patches/Use-sortedcollections.patch
@@ -0,0 +1,33 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 26 Jul 2017 14:43:43 +0100
+Subject: Use sortedcollections
+
+---
+ requirements.txt              | 2 +-
+ sphinxcontrib/bibtex/cache.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/requirements.txt b/requirements.txt
+index 212ea41..4cb7937 100644
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -3,5 +3,5 @@ pybtex>=0.17
+ pybtex-docutils>=0.2.0
+ six>=1.4.1
+ Sphinx>=1.0
+-oset>=0.1.3
++sortedcollections
+ 
+diff --git a/sphinxcontrib/bibtex/cache.py b/sphinxcontrib/bibtex/cache.py
+index aa9064f..29f1b97 100644
+--- a/sphinxcontrib/bibtex/cache.py
++++ b/sphinxcontrib/bibtex/cache.py
+@@ -24,7 +24,7 @@ except ImportError:  # pragma: no cover
+ import ast
+ import collections
+ import copy
+-from oset import oset
++from sortedcollections import OrderedSet as oset
+ import re
+ 
+ 
diff --git a/debian/patches/Use-the-packaged-docs.patch b/debian/patches/Use-the-packaged-docs.patch
new file mode 100644
index 0000000..f89893a
--- /dev/null
+++ b/debian/patches/Use-the-packaged-docs.patch
@@ -0,0 +1,21 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sun, 3 Sep 2017 06:57:16 +0200
+Subject: Use the packaged docs
+
+---
+ doc/conf.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/doc/conf.py b/doc/conf.py
+index c4926fd..591c519 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -243,6 +243,6 @@ texinfo_documents = [
+ 
+ # Example configuration for intersphinx: refer to the Python standard library.
+ intersphinx_mapping = {
+-    'python': ('https://docs.python.org/3/', None),
+-    'sphinx': ('http://sphinx-doc.org/', None),
++    'python': ('https://docs.python.org/3/', '/usr/share/doc/python3-doc/html/objects.inv'),
++    'sphinx': ('http://sphinx-doc.org/', '/usr/share/doc/sphinx-doc/html/objects.inv'),
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5cf87ef
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+No-privacy-breach.patch
+Use-the-packaged-docs.patch
+Use-sortedcollections.patch
diff --git a/debian/python-sphinxcontrib.bibtex-doc.doc-base b/debian/python-sphinxcontrib.bibtex-doc.doc-base
new file mode 100644
index 0000000..e91ad86
--- /dev/null
+++ b/debian/python-sphinxcontrib.bibtex-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-sphinxcontrib.bibtex-doc
+Title: sphinxcontrib-bibtex Documentation
+Author: Matthias C. M. Troffaes
+Abstract: This is the reference documentation for sphinxcontrib-bibtex.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-sphinxcontrib.bibtex-doc/html/index.html
+Files: /usr/share/doc/python-sphinxcontrib.bibtex-doc/html/*.html
diff --git a/debian/python-sphinxcontrib.bibtex-doc.docs b/debian/python-sphinxcontrib.bibtex-doc.docs
new file mode 100644
index 0000000..7123782
--- /dev/null
+++ b/debian/python-sphinxcontrib.bibtex-doc.docs
@@ -0,0 +1 @@
+doc/_build/html
diff --git a/debian/python-sphinxcontrib.bibtex-doc.lintian-overrides b/debian/python-sphinxcontrib.bibtex-doc.lintian-overrides
new file mode 100644
index 0000000..1718578
--- /dev/null
+++ b/debian/python-sphinxcontrib.bibtex-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..8110014
--- /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=sphinxcontrib.bibtex
+
+# Testing is currently disabled due to compatibility issues between sphinx and
+# sphinx-testing (#875399).
+export PYBUILD_DISABLE=test
+
+%:
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_clean:
+	dh_auto_clean
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+	$(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 (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+	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..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..82e314e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,12 @@
+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-sphinx-testing,
+         python3-sphinxcontrib.bibtex
+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/sphinxcontrib-bibtex.git



More information about the debian-science-commits mailing list