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

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Mar 22 11:18:02 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-agate-excel.

commit 08ab0348414db5316c7580a0ae7d6e9d3e96495a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Mar 15 07:27:49 2017 +0000

    Initial debianisation
---
 debian/changelog                       |  5 ++++
 debian/compat                          |  1 +
 debian/control                         | 49 ++++++++++++++++++++++++++++++++++
 debian/copyright                       | 31 +++++++++++++++++++++
 debian/gbp.conf                        |  7 +++++
 debian/patches/No-privacy-breach.patch | 36 +++++++++++++++++++++++++
 debian/patches/Use-packaged-docs.patch | 29 ++++++++++++++++++++
 debian/patches/series                  |  2 ++
 debian/py3dist-overrides               |  1 +
 debian/python-agateexcel-doc.doc-base  | 10 +++++++
 debian/python-agateexcel-doc.docs      |  1 +
 debian/rules                           | 23 ++++++++++++++++
 debian/source/format                   |  1 +
 debian/source/local-options            |  1 +
 debian/tests/control                   | 10 +++++++
 debian/watch                           |  3 +++
 16 files changed, 210 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f82ceec
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-agate-excel (0.2.1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #850449)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Sat, 11 Mar 2017 16:14:44 +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..1705be0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,49 @@
+Source: python-agate-excel
+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),
+               python-agate-doc <!nodoc>,
+               python3-agate <!nocheck> <!nodoc>,
+               python3-all,
+               python3-doc <!nodoc>,
+               python3-openpyxl <!nocheck> <!nodoc>,
+               python3-setuptools,
+               python3-sphinx <!nodoc>,
+               python3-sphinx-rtd-theme <!nodoc>,
+               python3-xlrd <!nocheck> <!nodoc>,
+               sphinx-common
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/python-agate-excel.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/python-agate-excel.git
+Homepage: http://agate-excel.rtfd.org/
+X-Python3-Version: >= 3.3
+
+Package: python3-agateexcel
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Suggests: python-agateexcel-doc <!nodoc>
+Description: support for Excel files in agate
+ Agate-excel adds read support for Excel files (xls and xlsx) to agate. It uses
+ a monkey patching pattern to add read methods for xls and xlsx files to all
+ agate.Table instances after import of the corresponding agateexcel module.
+ .
+ This package provides the modules for Python 3.
+
+Package: python-agateexcel-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Description: documentation for agate-excel
+ Agate-excel adds read support for Excel files (xls and xlsx) to agate. It uses
+ a monkey patching pattern to add read methods for xls and xlsx files to all
+ agate.Table instances after import of the corresponding agateexcel module.
+ .
+ This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f3add81
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: agate-excel
+Upstream-Contact: Christopher Groskopf <chrisgroskopf at gmail.com>
+Source: https://pypi.python.org/pypi/agate-excel/
+
+Files: *
+Copyright: 2017 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/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..52179fc
--- /dev/null
+++ b/debian/patches/No-privacy-breach.patch
@@ -0,0 +1,36 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 15 Mar 2017 07:39:33 +0000
+Subject: No privacy breach
+
+---
+ README.rst | 20 --------------------
+ 1 file changed, 20 deletions(-)
+
+diff --git a/README.rst b/README.rst
+index 91b0427..dbd3f10 100644
+--- a/README.rst
++++ b/README.rst
+@@ -1,23 +1,3 @@
+-.. image:: https://travis-ci.org/wireservice/agate-excel.png
+-    :target: https://travis-ci.org/wireservice/agate-excel
+-    :alt: Build status
+-
+-.. image:: https://img.shields.io/pypi/dw/agate-excel.svg
+-    :target: https://pypi.python.org/pypi/agate-excel
+-    :alt: PyPI downloads
+-
+-.. image:: https://img.shields.io/pypi/v/agate-excel.svg
+-    :target: https://pypi.python.org/pypi/agate-excel
+-    :alt: Version
+-
+-.. image:: https://img.shields.io/pypi/l/agate-excel.svg
+-    :target: https://pypi.python.org/pypi/agate-excel
+-    :alt: License
+-
+-.. image:: https://img.shields.io/pypi/pyversions/agate-excel.svg
+-    :target: https://pypi.python.org/pypi/agate-excel
+-    :alt: Support Python versions
+-
+ agate-excel adds read support for Excel files (xls and xlsx) to `agate <https://github.com/wireservice/agate>`_.
+ 
+ Important links:
diff --git a/debian/patches/Use-packaged-docs.patch b/debian/patches/Use-packaged-docs.patch
new file mode 100644
index 0000000..b32d60f
--- /dev/null
+++ b/debian/patches/Use-packaged-docs.patch
@@ -0,0 +1,29 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 15 Mar 2017 07:39:11 +0000
+Subject: Use packaged docs
+
+---
+ docs/conf.py | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index 255f713..c1c618e 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -27,8 +27,14 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
+ autodoc_member_order = 'bysource'
+ 
+ intersphinx_mapping = {
+-    'python': ('http://docs.python.org/3.5/', None),
+-    'agate': ('http://agate.readthedocs.org/en/latest/', None)
++    'python': (
++        'http://docs.python.org/3/',
++        '/usr/share/doc/python3/html/objects.inv'
++    ),
++    'agate': (
++        'http://agate.readthedocs.org/en/latest/',
++        '/usr/share/doc/python-agate-doc/html/objects.inv'
++    ),
+ }
+ 
+ # Add any paths that contain templates here, relative to this directory.
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/py3dist-overrides b/debian/py3dist-overrides
new file mode 100644
index 0000000..0a459f5
--- /dev/null
+++ b/debian/py3dist-overrides
@@ -0,0 +1 @@
+agate python3-agate; PEP386
diff --git a/debian/python-agateexcel-doc.doc-base b/debian/python-agateexcel-doc.doc-base
new file mode 100644
index 0000000..c431426
--- /dev/null
+++ b/debian/python-agateexcel-doc.doc-base
@@ -0,0 +1,10 @@
+Document: python-agateexcel-doc
+Title: agate-excel documentation
+Author: Christopher Groskopf
+Abstract: This is the reference documentation for the agate-excel Python
+ library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/python-agateexcel-doc/html/index.html
+Files: /usr/share/doc/python-agateexcel-doc/html/*.html
diff --git a/debian/python-agateexcel-doc.docs b/debian/python-agateexcel-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-agateexcel-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4848218
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = agateexcel
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE = test
+else
+export PYBUILD_BEFORE_TEST = cp -r {dir}/examples {build_dir}
+export PYBUILD_AFTER_TEST = rm -rf {build_dir}/examples
+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..3c5f2e7
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,10 @@
+Test-Command: set -e
+ ; cp -r examples tests "$AUTOPKGTEST_TMP"
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m pytest -v
+ ; done
+Depends: python3-agateexcel,
+         python3-all,
+         python3-pytest
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..af3d376
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/agate-excel-$1\.tar\.gz/ \
+https://github.com/wireservice/agate-excel/tags .*/v?(\d\S+)\.tar\.gz

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



More information about the Python-modules-commits mailing list