[Python-modules-commits] [nbsphinx] 03/03: Initial packaging
Jerome Benoit
calculus-guest at moszumanska.debian.org
Sun Sep 25 21:29:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
calculus-guest pushed a commit to branch experimental
in repository nbsphinx.
commit accaf042922555b7cb93977d89f22e86cd12f85a
Author: Jerome Benoit <calculus at rezozer.net>
Date: Sun Sep 25 22:06:42 2016 +0100
Initial packaging
---
debian/changelog | 5 ++
debian/clean | 1 +
debian/compat | 1 +
debian/control | 78 ++++++++++++++++++++++
debian/copyright | 38 +++++++++++
debian/gbp.conf | 2 +
debian/patches/debianization-documentation.patch | 44 ++++++++++++
...on-neutralize-lintian-privacy-breach-logo.patch | 28 ++++++++
debian/patches/series | 2 +
debian/python-nbsphinx-doc.doc-base | 15 +++++
debian/python-nbsphinx-doc.docs | 4 ++
debian/python-nbsphinx-doc.links | 1 +
debian/python-nbsphinx-doc.lintian-overrides | 9 +++
debian/python-nbsphinx.lintian-overrides | 2 +
debian/python3-nbsphinx.lintian-overrides | 2 +
debian/rules | 30 +++++++++
debian/watch | 3 +
17 files changed, 265 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..98ea1c6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+nbsphinx (0.2.9+ds-1) experimental; urgency=medium
+
+ * Initial release (Closes: #838806).
+
+ -- Jerome Benoit <calculus at rezozer.net> Sun, 25 Sep 2016 21:04:53 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..07f9156
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+nbsphinx.egg-info/
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..555c28a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,78 @@
+Source: nbsphinx
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Jerome Benoit <calculus at rezozer.net>
+Build-Depends:
+Build-Depends-Indep:
+ debhelper (>= 10),
+ dh-python,
+ python-all,
+ python-setuptools,
+ python-nbconvert,
+ python-nbformat,
+ python-docutils,
+ python-sphinx,
+ python-entrypoints,
+ python-jupyter-client,
+ python-ipykernel,
+ python3-all,
+ python3-setuptools,
+ python3-nbconvert,
+ python3-nbformat,
+ python3-docutils,
+ python3-sphinx,
+ python3-entrypoints,
+ python3-jupyter-client,
+ python3-ipykernel,
+ libjs-mathjax,
+ pandoc,
+ rdfind,
+ symlinks
+Standards-Version: 3.9.8
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.2
+Homepage: http://nbsphinx.rtfd.org/
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/nbsphinx.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/nbsphinx.git
+
+Package: python-nbsphinx
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Suggests: python-nbsphinx-doc (= ${source:Version})
+Description: Jupyter Notebook Tools for Sphinx -- Python
+ nbsphinx is a Sphinx extension that provides a source parser for *.ipynb
+ files. Custom Sphinx directives are used to show Jupyter Notebook code cells
+ (and of course their results) in both HTML and LaTeX output.
+ Un-evaluatednotebooks, i.e., notebooks without stored output cells, will be
+ automatically executed during the Sphinx build process.
+ .
+ This package installs the library for Python 2.
+
+Package: python3-nbsphinx
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Suggests: python-nbsphinx-doc (= ${source:Version})
+Description: Jupyter Notebook Tools for Sphinx -- Python 3
+ nbsphinx is a Sphinx extension that provides a source parser for *.ipynb
+ files. Custom Sphinx directives are used to show Jupyter Notebook code cells
+ (and of course their results) in both HTML and LaTeX output.
+ Un-evaluatednotebooks, i.e., notebooks without stored output cells, will be
+ automatically executed during the Sphinx build process.
+ .
+ This package installs the library for Python 3.
+
+Package: python-nbsphinx-doc
+Section: doc
+Architecture: all
+Depends: ${sphinxdoc:Depends}, ${misc:Depends}
+Suggests: pdf-viewer, www-browser
+Enhances: python-nbsphinx (= ${source:Version}), python3-nbsphinx (= ${source:Version})
+Description: Jupyter Notebook Tools for Sphinx -- doc
+ nbsphinx is a Sphinx extension that provides a source parser for *.ipynb
+ files. Custom Sphinx directives are used to show Jupyter Notebook code cells
+ (and of course their results) in both HTML and LaTeX output.
+ Un-evaluatednotebooks, i.e., notebooks without stored output cells, will be
+ automatically executed during the Sphinx build process.
+ .
+ This is the common documentation package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..851ac2a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: nbsphinx
+Upstream-Contact: Matthias Geier <Matthias.Geier at gmail.com>
+Source: https://pypi.python.org/pypi/nbsphinx/
+X-Source: https://github.com/spatialaudio/nbsphinx/
+X-Documentation: http://nbsphinx.readthedocs.io/
+Files-Excluded:
+ nbsphinx.egg-info
+ setup.cfg
+
+Files: *
+Copyright:
+ 2015-2016 Matthias Geier <Matthias.Geier at gmail.com>
+License: MIT
+
+Files: debian/*
+Copyright:
+ 2016 Jerome Benoit <calculus at rezozer.net>
+License: MIT
+
+License: MIT
+ 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..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/patches/debianization-documentation.patch b/debian/patches/debianization-documentation.patch
new file mode 100644
index 0000000..d6d5fa2
--- /dev/null
+++ b/debian/patches/debianization-documentation.patch
@@ -0,0 +1,44 @@
+Description: debianization: documentation
+ Meant to address Debian specific requirements and stuff for documentation.
+Origin: debian
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2016-09-25
+
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -4,12 +4,17 @@
+ # Use sphinx-quickstart to create your own conf.py file!
+ # After that, you have to edit a few things. See below.
+
++import os
++
+ # Select nbsphinx and, if needed, add a math extension (mathjax or pngmath):
+ extensions = [
+ 'nbsphinx',
+ 'sphinx.ext.mathjax',
+ ]
+
++## see debian/rules for more information
++mathjax_path = 'mathjax/MathJax.js?config=tex-ams-mml_htmlormml'
++
+ # Exclude build directory and Jupyter backup files:
+ exclude_patterns = ['_build', '**.ipynb_checkpoints']
+
+@@ -44,14 +49,10 @@
+
+ linkcheck_ignore = [r'http://localhost:\d+/']
+
+-# -- Get version information from Git -------------------------------------
++# -- Get version information from shell environment -------------------------------------
++
++release = os.getenv('NBSPHINX_VERSION_RELEASE', '<unknown>')
+
+-try:
+- from subprocess import check_output
+- release = check_output(['git', 'describe', '--tags', '--always'])
+- release = release.decode().strip()
+-except Exception:
+- release = '<unknown>'
+
+ # -- Options for HTML output ----------------------------------------------
+
diff --git a/debian/patches/debianization-neutralize-lintian-privacy-breach-logo.patch b/debian/patches/debianization-neutralize-lintian-privacy-breach-logo.patch
new file mode 100644
index 0000000..dd01d77
--- /dev/null
+++ b/debian/patches/debianization-neutralize-lintian-privacy-breach-logo.patch
@@ -0,0 +1,28 @@
+Description: debianization: neutralize lintian privacy-breach-logo
+ The involved is literally removed: no local copy of the involved logo
+ is made as the involved code it meant to be a URL example.
+Origin: debian
+Author: Jerome Benoit <calculus at rezozer.net>
+Comment: privacy-breach-logo
+Last-Update: 2016-09-25
+
+--- a/doc/code-cells.ipynb
++++ b/doc/code-cells.ipynb
+@@ -266,17 +266,6 @@
+ },
+ "outputs": [],
+ "source": [
+- "Image(url='https://www.python.org/static/favicon.ico')"
+- ]
+- },
+- {
+- "cell_type": "code",
+- "execution_count": null,
+- "metadata": {
+- "collapsed": false
+- },
+- "outputs": [],
+- "source": [
+ "Image(url='http://python.org/images/python-logo.gif')"
+ ]
+ },
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bc5e739
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+debianization-documentation.patch
+debianization-neutralize-lintian-privacy-breach-logo.patch
diff --git a/debian/python-nbsphinx-doc.doc-base b/debian/python-nbsphinx-doc.doc-base
new file mode 100644
index 0000000..0b8fd03
--- /dev/null
+++ b/debian/python-nbsphinx-doc.doc-base
@@ -0,0 +1,15 @@
+Document: nbsphinx
+Title: Jupyter Notebook Tools for Sphinx
+Author:
+ Matthias Geier
+Abstract:
+ nbsphinx is a Sphinx extension that provides a source parser for *.ipynb
+ files. Custom Sphinx directives are used to show Jupyter Notebook code cells
+ (and of course their results) in both HTML and LaTeX output.
+ Un-evaluated notebooks, i.e., notebooks without stored output cells, will be
+ automatically executed during the Sphinx build process.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-nbsphinx-doc/html/index.html
+Files: /usr/share/doc/python-nbsphinx-doc/html/*
diff --git a/debian/python-nbsphinx-doc.docs b/debian/python-nbsphinx-doc.docs
new file mode 100644
index 0000000..01112f3
--- /dev/null
+++ b/debian/python-nbsphinx-doc.docs
@@ -0,0 +1,4 @@
+PKG-INFO
+README.rst
+NEWS.rst
+CONTRIBUTING.rst
diff --git a/debian/python-nbsphinx-doc.links b/debian/python-nbsphinx-doc.links
new file mode 100644
index 0000000..cf8d7ea
--- /dev/null
+++ b/debian/python-nbsphinx-doc.links
@@ -0,0 +1 @@
+usr/share/doc/python-nbsphinx-doc/html/_sources usr/share/doc/python-nbsphinx-doc/rst
diff --git a/debian/python-nbsphinx-doc.lintian-overrides b/debian/python-nbsphinx-doc.lintian-overrides
new file mode 100644
index 0000000..4ff5b79
--- /dev/null
+++ b/debian/python-nbsphinx-doc.lintian-overrides
@@ -0,0 +1,9 @@
+# The upstream source tarball contains no ChangeLog file.
+python-nbsphinx-doc: no-upstream-changelog
+
+# The involved links are meant to illustrate URL examples, so it is meaningless
+# to bring the involved material in a local folder.
+python-nbsphinx-doc: privacy-breach-generic
+
+### At the time of writing, the involved code is literally removed via a patch.
+##python-nbsphinx-doc: privacy-breach-logo
diff --git a/debian/python-nbsphinx.lintian-overrides b/debian/python-nbsphinx.lintian-overrides
new file mode 100644
index 0000000..a913cf9
--- /dev/null
+++ b/debian/python-nbsphinx.lintian-overrides
@@ -0,0 +1,2 @@
+# The upstream source tarball contains no ChangeLog file.
+python-nbsphinx: no-upstream-changelog
diff --git a/debian/python3-nbsphinx.lintian-overrides b/debian/python3-nbsphinx.lintian-overrides
new file mode 100644
index 0000000..2f70cca
--- /dev/null
+++ b/debian/python3-nbsphinx.lintian-overrides
@@ -0,0 +1,2 @@
+# The upstream source tarball contains no ChangeLog file.
+python3-nbsphinx: no-upstream-changelog
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6bfed78
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=nbsphinx
+
+DEB_PKG_VERSION := $(shell dpkg-parsechangelog -S Version)
+DEB_SRC_VERSION := $(firstword $(subst -, ,$(DEB_PKG_VERSION)))
+UPS_PKG_VERSION := $(firstword $(subst +, ,$(DEB_SRC_VERSION)))
+export NBSPHINX_VERSION_RELEASE ?= "$(UPS_PKG_VERSION) (Debian $(DEB_PKG_VERSION))"
+
+default:
+ @uscan --no-conf --dehs --report || true
+
+%:
+ dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+DEB_SPHINXDOC_DOCHTMLDIR=debian/python-nbsphinx-doc/usr/share/doc/python-nbsphinx-doc/html
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+ PYTHONPATH=. sphinx-build -b html doc $(DEB_SPHINXDOC_DOCHTMLDIR)
+ cd $(DEB_SPHINXDOC_DOCHTMLDIR) && { \
+ rdfind -outputname /dev/null -makesymlinks true . ; \
+ symlinks -r -c -s -v . ; \
+ }
+ ## Debian Bug report #739300
+ ln -s /usr/share/javascript/mathjax $(DEB_SPHINXDOC_DOCHTMLDIR)/_static
+ dh_sphinxdoc -O--buildsystem=pybuild
+endif
+
+get-orig-source:
+ uscan --no-conf --download-current-version --compression xz --verbose
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..64a95dd
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=repack,dversionmangle=s/\+ds//,repacksuffix=+ds,uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/nbsphinx/nbsphinx-(.+)\.(?: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/nbsphinx.git
More information about the Python-modules-commits
mailing list