summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-05-15 16:52:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-05-15 16:52:45 +0000
commit96839d97eb21d5c97d12bb0667a8a2fc391e4b5f (patch)
treefc162d49a1df223fd20192bd469124f3dc1aa13b
parentAdding upstream version 3.1.0. (diff)
downloadterminaltables-96839d97eb21d5c97d12bb0667a8a2fc391e4b5f.zip
terminaltables-96839d97eb21d5c97d12bb0667a8a2fc391e4b5f.tar.xz
Adding debian version 3.1.0-1.debian/3.1.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/.git-dpm8
-rw-r--r--debian/changelog5
-rw-r--r--debian/clean3
-rw-r--r--debian/compat1
-rw-r--r--debian/control50
-rw-r--r--debian/copyright30
-rw-r--r--debian/patches/0001-remove-sphinxcontrib.googleanalytics.patch28
-rw-r--r--debian/patches/0002-enable-Sphinx-html_copy_source.patch29
-rw-r--r--debian/patches/series2
-rw-r--r--debian/python3-terminaltables-doc.doc-base12
-rw-r--r--debian/python3-terminaltables-doc.docs4
-rw-r--r--debian/python3-terminaltables-doc.links3
-rwxr-xr-xdebian/rules31
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/options1
-rw-r--r--debian/watch4
16 files changed, 212 insertions, 0 deletions
diff --git a/debian/.git-dpm b/debian/.git-dpm
new file mode 100644
index 0000000..c678c91
--- /dev/null
+++ b/debian/.git-dpm
@@ -0,0 +1,8 @@
+# see git-dpm(1) from git-dpm package
+7d3174df83fd37b4cdcd23487cbcc5f2a7ce797b
+7d3174df83fd37b4cdcd23487cbcc5f2a7ce797b
+f687517a78f1a2cda5e071df2dfd71fcbf1a1588
+f687517a78f1a2cda5e071df2dfd71fcbf1a1588
+terminaltables-3.1.0.orig.tar.gz
+4746c1d8b85e056640299ea8e1d41c8e36679824
+278484
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..549783a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+terminaltables (3.1.0-1) experimental; urgency=medium
+
+ * Initial release (Closes: #850093)
+
+ -- Carl Suster <carl@contraflo.ws> Mon, 09 Jan 2017 16:56:28 +1100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..10ecb87
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+*.egg-info/*
+.cache/
+debian/upstream-changelog
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..7282e58
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,50 @@
+Source: terminaltables
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
+Uploaders: Carl Suster <carl@contraflo.ws>
+Build-Depends:
+ debhelper (>= 10),
+ dh-python,
+ python-setuptools,
+ python-sphinx,
+ python-sphinx-rtd-theme,
+ python3-all,
+ python3-colorama,
+ python3-colorclass,
+ python3-pytest,
+ python3-setuptools,
+ python3-termcolor,
+Standards-Version: 3.9.8
+Homepage: https://github.com/Robpol86/terminaltables
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/terminaltables.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/terminaltables.git
+X-Python3-Version: >= 3.3
+
+Package: python3-terminaltables
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Suggests: python3-terminaltables-doc
+Description: Python library for printing tables to the console
+ Easily draw tables in terminal/console applications from a list of lists of
+ strings.
+ .
+ Supports: multi-line rows, table titles, POSIX and Windows, Wide CJK
+ (Chinese/Japanese/Korean) characters are displayed correctly, RTL Arabic and
+ Hebrew characters are aligned correctly, alignment and justification.
+ Colored text is supported through colorclass, colorama, termcolor, or just
+ plain ANSI escape codes.
+ .
+ This package provides the Python 3 module.
+
+Package: python3-terminaltables-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Recommends: python3-terminaltables
+Description: Documentation for terminaltables table printer
+ Easily draw tables in terminal/console applications from a list of lists of
+ strings.
+ .
+ This package contains the documentation for terminaltables.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2bf448e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: terminaltables
+Source: https://github.com/Robpol86/terminaltables
+
+Files: *
+Copyright: 2016 Robpol86
+License: MIT
+
+Files: debian/*
+Copyright: 2017 Carl Suster <carl@contraflo.ws>
+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/patches/0001-remove-sphinxcontrib.googleanalytics.patch b/debian/patches/0001-remove-sphinxcontrib.googleanalytics.patch
new file mode 100644
index 0000000..cbb09bd
--- /dev/null
+++ b/debian/patches/0001-remove-sphinxcontrib.googleanalytics.patch
@@ -0,0 +1,28 @@
+From f6b5f27a750011b2c2b26e1a2152330051f8afbc Mon Sep 17 00:00:00 2001
+From: Carl Suster <carl@contraflo.ws>
+Date: Sat, 7 Jan 2017 13:04:55 +1100
+Subject: remove sphinxcontrib.googleanalytics
+
+Disable Google Analytics extension for building the documentation with
+Sphinx.
+
+Forwarded: no
+---
+ docs/conf.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index fb33f09..7580d0c 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -42,8 +42,8 @@ extlinks = {'github': ('https://github.com/robpol86/{0}/blob/v{1}/%s'.format(pro
+
+
+ # google analytics
+-extensions.append('sphinxcontrib.googleanalytics')
+-googleanalytics_id = 'UA-82627369-1'
++# extensions.append('sphinxcontrib.googleanalytics')
++# googleanalytics_id = 'UA-82627369-1'
+
+
+ # SCVersioning.
diff --git a/debian/patches/0002-enable-Sphinx-html_copy_source.patch b/debian/patches/0002-enable-Sphinx-html_copy_source.patch
new file mode 100644
index 0000000..437220f
--- /dev/null
+++ b/debian/patches/0002-enable-Sphinx-html_copy_source.patch
@@ -0,0 +1,29 @@
+From 7d3174df83fd37b4cdcd23487cbcc5f2a7ce797b Mon Sep 17 00:00:00 2001
+From: Carl Suster <carl@contraflo.ws>
+Date: Sat, 7 Jan 2017 14:39:14 +1100
+Subject: enable Sphinx html_copy_source
+
+We would like for the HTML source files to be installed, and they are
+needed for the search page. In theory this could be done by passing an
+argument `-Dhtml_copy_source=1` in debian/rules, however this causes
+HAS_SOURCE to be equal to 1 instead of True so dh_sphinxdoc fails with a
+"doesn't look like a Sphinc search page" error.
+
+Forwarded: no
+---
+ docs/conf.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index 7580d0c..12ab980 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -26,7 +26,7 @@ html_context = dict(
+ github_version=os.environ.get('TRAVIS_BRANCH', 'master'),
+ source_suffix='.rst',
+ )
+-html_copy_source = False
++html_copy_source = True
+ html_favicon = 'favicon.ico'
+ html_theme = 'sphinx_rtd_theme'
+ html_title = project
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..32c2281
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+0001-remove-sphinxcontrib.googleanalytics.patch
+0002-enable-Sphinx-html_copy_source.patch
diff --git a/debian/python3-terminaltables-doc.doc-base b/debian/python3-terminaltables-doc.doc-base
new file mode 100644
index 0000000..1053018
--- /dev/null
+++ b/debian/python3-terminaltables-doc.doc-base
@@ -0,0 +1,12 @@
+Document: terminaltables
+Title: Debian terminaltables Manual
+Author: Robpol86
+Abstract: This manual describes terminaltables - a Python table printer
+Section: Programming/Python
+
+Format: text
+Files: /usr/share/doc/python3-terminaltables-doc/rst/*.txt
+
+Format: HTML
+Index: /usr/share/doc/python3-terminaltables-doc/html/index.html
+Files: /usr/share/doc/python3-terminaltables-doc/html/*.html
diff --git a/debian/python3-terminaltables-doc.docs b/debian/python3-terminaltables-doc.docs
new file mode 100644
index 0000000..1a61a63
--- /dev/null
+++ b/debian/python3-terminaltables-doc.docs
@@ -0,0 +1,4 @@
+README.rst
+example1.py
+example2.py
+example3.py
diff --git a/debian/python3-terminaltables-doc.links b/debian/python3-terminaltables-doc.links
new file mode 100644
index 0000000..241b24c
--- /dev/null
+++ b/debian/python3-terminaltables-doc.links
@@ -0,0 +1,3 @@
+/usr/share/doc/python3-terminaltables-doc/html/_sources/ /usr/share/doc/python3-terminaltables-doc/rst
+/usr/share/doc/python3-terminaltables-doc/html/_sources/ /usr/share/doc/python3-terminaltables/rst
+/usr/share/doc/python3-terminaltables-doc/html /usr/share/doc/python3-terminaltables/html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0d5e27d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME=terminaltables
+
+export PYBUILD_BEFORE_TEST=cp example*.py {build_dir}
+export PYBUILD_AFTER_TEST=rm {build_dir}/example*.py
+
+%:
+ dh $@ --with python3,sphinxdoc --buildsystem pybuild
+
+override_dh_sphinxdoc: export http_proxy=127.0.0.1:9
+override_dh_sphinxdoc: export https_proxy=127.0.0.1:9
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+ PYTHONPATH=. sphinx-build -N -q -E -b html docs/ debian/python3-terminaltables-doc/usr/share/doc/python3-terminaltables-doc/html/
+ dh_sphinxdoc
+endif
+
+override_dh_compress:
+ dh_compress -X example1.py -X example2.py -X example3.py -X html/
+
+override_dh_installchangelogs:
+ # Trim the changelog section out of the README file. Note that this will
+ # hang if the changelog-section-{start,end} strings don't appear exactly as
+ # they are in the README file.
+ python3 -c "with open('README.rst', encoding='utf-8') as r: print(''.join( \
+ ['' for x in iter(r.readline, '.. changelog-section-start\n')] + \
+ [x for x in iter(r.readline, '.. changelog-section-end\n')]))" \
+ > debian/upstream-changelog
+ dh_installchangelogs debian/upstream-changelog
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/watch b/debian/watch
new file mode 100644
index 0000000..d5156e4
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/colorclass-$1\.tar\.gz/ \
+ https://github.com/Robpol86/terminaltables/releases .*/v?(\d\S*)\.tar\.gz