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

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Mar 16 16:12:42 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-leather.

commit 03c2c9c04a8530635fb7054e6f539edf43885fdc
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Mar 16 15:59:23 2017 +0000

    Initial debianisation
---
 debian/changelog                            |  5 ++
 debian/compat                               |  1 +
 debian/control                              | 71 +++++++++++++++++++++++++++++
 debian/copyright                            | 31 +++++++++++++
 debian/files                                |  1 +
 debian/gbp.conf                             |  7 +++
 debian/patches/No-privacy-breach.patch      | 36 +++++++++++++++
 debian/patches/Use-packaged-docs.patch      | 24 ++++++++++
 debian/patches/series                       |  2 +
 debian/python-leather-doc.doc-base          |  9 ++++
 debian/python-leather-doc.docs              |  1 +
 debian/python-leather-doc.lintian-overrides |  2 +
 debian/rules                                | 20 ++++++++
 debian/source/format                        |  1 +
 debian/source/local-options                 |  1 +
 debian/tests/control                        | 12 +++++
 debian/watch                                |  3 ++
 17 files changed, 227 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3bb40e7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-leather (0.3.3-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #857388)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Wed, 15 Mar 2017 19:12:02 +0000
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..b3ee78a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,71 @@
+Source: python-leather
+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-cssselect <!nocheck>,
+               python3-doc <!nodoc>,
+               python3-lxml <!nocheck>,
+               python3-setuptools,
+               python3-six <!nocheck>,
+               python3-sphinx <!nodoc>,
+               python3-sphinx-rtd-theme <!nodoc>,
+               sphinx-common
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/python-leather.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-leather.git
+Homepage: http://leather.readthedocs.org/
+X-Python3-Version: >= 3.3
+
+Package: python3-leather
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Suggests: python-leather-doc <!nodoc>
+Description: charting library for Python
+ Leather is the Python charting library for those who need charts now and don’t
+ care if they’re perfect.
+ .
+ Why leather?
+ .
+   - A readable and user-friendly API.
+   - Optimized for exploratory charting.
+   - Produces scale-independent SVG charts.
+   - Completely type-agnostic. Chart your data, whatever it is.
+   - Designed with iPython, Jupyter and atom/hydrogen in mind.
+   - Pure Python. No C dependencies to compile.
+   - MIT licensed and free for all purposes.
+   - Zealously zen.
+   - Made with love.
+ .
+ This package provides the modules for Python 3.
+
+Package: python-leather-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Suggests: python-leather-doc <!nodoc>
+Description: documentation for leather
+ Leather is the Python charting library for those who need charts now and don’t
+ care if they’re perfect.
+ .
+ Why leather?
+ .
+   - A readable and user-friendly API.
+   - Optimized for exploratory charting.
+   - Produces scale-independent SVG charts.
+   - Completely type-agnostic. Chart your data, whatever it is.
+   - Designed with iPython, Jupyter and atom/hydrogen in mind.
+   - Pure Python. No C dependencies to compile.
+   - MIT licensed and free for all purposes.
+   - Zealously zen.
+   - Made with love.
+ .
+ This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..87d14d8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: leather
+Upstream-Contact: Christopher Groskopf <chrisgroskopf at gmail.com>
+Source: https://github.com/wireservice/leather
+
+Files: *
+Copyright: 2016 Christopher Groskopf and contributors
+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/files b/debian/files
new file mode 100644
index 0000000..661dea4
--- /dev/null
+++ b/debian/files
@@ -0,0 +1 @@
+python-leather_0.3.3-1_source.buildinfo python optional
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..2fa038f
--- /dev/null
+++ b/debian/patches/No-privacy-breach.patch
@@ -0,0 +1,36 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sun, 12 Mar 2017 22:30:13 +0000
+Subject: No privacy breach
+
+---
+ README.rst | 20 --------------------
+ 1 file changed, 20 deletions(-)
+
+diff --git a/README.rst b/README.rst
+index de947cf..117247a 100644
+--- a/README.rst
++++ b/README.rst
+@@ -1,23 +1,3 @@
+-.. image:: https://travis-ci.org/wireservice/leather.png
+-    :target: https://travis-ci.org/wireservice/leather
+-    :alt: Build status
+-
+-.. image:: https://img.shields.io/pypi/dw/leather.svg
+-    :target: https://pypi.python.org/pypi/leather
+-    :alt: PyPI downloads
+-
+-.. image:: https://img.shields.io/pypi/v/leather.svg
+-    :target: https://pypi.python.org/pypi/leather
+-    :alt: Version
+-
+-.. image:: https://img.shields.io/pypi/l/leather.svg
+-    :target: https://pypi.python.org/pypi/leather
+-    :alt: License
+-
+-.. image:: https://img.shields.io/pypi/pyversions/leather.svg
+-    :target: https://pypi.python.org/pypi/leather
+-    :alt: Support Python versions
+-
+ Leather is the Python charting library for those who need charts *now* and don't care if they're perfect.
+ 
+ Leather isn't picky. It's rough. It gets dirty. It looks sexy just hanging on the back of a chair. Leather doesn't need your accessories. Leather is how Snake Plissken would make charts.
diff --git a/debian/patches/Use-packaged-docs.patch b/debian/patches/Use-packaged-docs.patch
new file mode 100644
index 0000000..8c7f796
--- /dev/null
+++ b/debian/patches/Use-packaged-docs.patch
@@ -0,0 +1,24 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sun, 12 Mar 2017 22:18:39 +0000
+Subject: Use packaged docs
+
+---
+ docs/conf.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index c653d77..871bc70 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -17,7 +17,10 @@ extensions = [
+ autodoc_default_flags = ['members', 'show-inheritance']
+ 
+ intersphinx_mapping = {
+-    'python': ('http://docs.python.org/3.5', None)
++    'python': (
++        'http://docs.python.org/3',
++        '/usr/share/doc/python3/html/objects.inv'
++    )
+ }
+ 
+ # Templates
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..22a20a1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Use-packaged-docs.patch
+No-privacy-breach.patch
diff --git a/debian/python-leather-doc.doc-base b/debian/python-leather-doc.doc-base
new file mode 100644
index 0000000..e4057e1
--- /dev/null
+++ b/debian/python-leather-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-leather-doc
+Title: leather documentation
+Author: Christopher Groskopf
+Abstract: This is the reference documentation for leather.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/python-leather-doc/html/index.html
+Files: /usr/share/doc/python-leather-doc/html/*.html
diff --git a/debian/python-leather-doc.docs b/debian/python-leather-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-leather-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/python-leather-doc.lintian-overrides b/debian/python-leather-doc.lintian-overrides
new file mode 100644
index 0000000..a19b78d
--- /dev/null
+++ b/debian/python-leather-doc.lintian-overrides
@@ -0,0 +1,2 @@
+# Required by the documentation.
+extra-license-file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..146004c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = leather
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE = test
+endif
+
+%:
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+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=. sphinx-build -N -b html docs build/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..fa0d69d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,12 @@
+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 unittest discover -v
+ ; done
+Depends: python3-all,
+         python3-cssselect,
+         python3-leather,
+         python3-lxml
+Restrictions: allow-stderr
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..66c0f2a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/leather-$1\.tar\.gz/ \
+https://github.com/wireservice/leather/tags .*/v?(\d\S+)\.tar\.gz

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



More information about the Python-modules-commits mailing list