[Python-modules-commits] [python-agate] 02/03: Initial debianisation
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Mar 22 11:20:15 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.
commit 212b04036d01d31e1412e693aedd8209513f214f
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Sun Mar 12 23:27:11 2017 +0000
Initial debianisation
---
debian/changelog | 5 ++
debian/compat | 1 +
debian/control | 86 ++++++++++++++++++++++
debian/copyright | 31 ++++++++
debian/gbp.conf | 7 ++
debian/patches/Fix-typo-in-shebang.patch | 18 +++++
debian/patches/No-privacy-breach.patch | 36 +++++++++
.../Remove-absent-reference-from-the-docs.patch | 23 ++++++
debian/patches/Use-packaged-docs.patch | 29 ++++++++
debian/patches/series | 4 +
debian/py3dist-overrides | 1 +
debian/python-agate-doc.doc-base | 9 +++
debian/python-agate-doc.docs | 1 +
debian/python-agate-doc.lintian-overrides | 2 +
debian/rules | 25 +++++++
debian/source/format | 1 +
debian/source/local-options | 1 +
debian/tests/control | 12 +++
debian/watch | 3 +
19 files changed, 295 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..40b2a0b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-agate (1.6.0-1) UNRELEASED; urgency=low
+
+ * Initial release. (Closes: #850448)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com> Sat, 11 Mar 2017 14:45:52 +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..871fb24
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,86 @@
+Source: python-agate
+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),
+ python-leather-doc <!nodoc>,
+ python3-all,
+ python3-babel <!nocheck>,
+ python3-cssselect <!nocheck>,
+ python3-doc <!nodoc>,
+ python3-isodate <!nocheck> <!nodoc>,
+ python3-leather <!nocheck> <!nodoc>,
+ python3-lxml <!nocheck>,
+ python3-parsedatetime <!nocheck> <!nodoc>,
+ python3-pytimeparse <!nocheck> <!nodoc>,
+ python3-setuptools,
+ python3-six <!nocheck>,
+ python3-slugify <!nocheck> <!nodoc>,
+ python3-sphinx <!nodoc>,
+ python3-sphinx-rtd-theme <!nodoc>,
+ python3-tz <!nocheck>,
+ sphinx-common
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/python-agate.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-agate.git
+Homepage: http://agate.readthedocs.org/
+X-Python3-Version: >= 3.3
+
+Package: python3-agate
+Architecture: all
+Depends: ${misc:Depends},
+ ${python3:Depends}
+Suggests: python-agate-doc <!nodoc>
+Description: data analysis library optimized for human readability
+ Agate is a Python data analysis library that is optimized for humans instead
+ of machines. It is an alternative to numpy and pandas that solves real-world
+ problems with readable code.
+ .
+ Why agate?
+ .
+ - A readable and user-friendly API.
+ - A complete set of SQL-like operations.
+ - Unicode support everywhere.
+ - Decimal precision everywhere.
+ - Exhaustive user documentation.
+ - Pluggable extensions that add SQL integration, Excel support, and more.
+ - Designed with iPython, Jupyter and atom/hydrogen in mind.
+ - Pure Python. No C dependencies to compile.
+ - Exhaustive test coverage.
+ - MIT licensed and free for all purposes.
+ - Zealously zen.
+ - Made with love.
+ .
+ This package provides the modules for Python 3.
+
+Package: python-agate-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+ ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Description: documentation for agate
+ Agate is a Python data analysis library that is optimized for humans instead
+ of machines. It is an alternative to numpy and pandas that solves real-world
+ problems with readable code.
+ .
+ Why agate?
+ .
+ - A readable and user-friendly API.
+ - A complete set of SQL-like operations.
+ - Unicode support everywhere.
+ - Decimal precision everywhere.
+ - Exhaustive user documentation.
+ - Pluggable extensions that add SQL integration, Excel support, and more.
+ - Designed with iPython, Jupyter and atom/hydrogen in mind.
+ - Pure Python. No C dependencies to compile.
+ - Exhaustive test coverage.
+ - 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..497e2a2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: agate
+Upstream-Contact: Christopher Groskopf <chrisgroskopf at gmail.com>
+Source: https://github.com/wireservice/agate
+
+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/Fix-typo-in-shebang.patch b/debian/patches/Fix-typo-in-shebang.patch
new file mode 100644
index 0000000..34d83cf
--- /dev/null
+++ b/debian/patches/Fix-typo-in-shebang.patch
@@ -0,0 +1,18 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sat, 11 Mar 2017 15:00:09 +0000
+Subject: Fix typo in shebang
+
+---
+ agate/testcase.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/agate/testcase.py b/agate/testcase.py
+index 8daf3cd..8943820 100644
+--- a/agate/testcase.py
++++ b/agate/testcase.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env Python
++#!/usr/bin/env python
+
+ try:
+ import unittest2 as unittest
diff --git a/debian/patches/No-privacy-breach.patch b/debian/patches/No-privacy-breach.patch
new file mode 100644
index 0000000..8918562
--- /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 23:29:41 +0000
+Subject: No privacy breach
+
+---
+ README.rst | 20 --------------------
+ 1 file changed, 20 deletions(-)
+
+diff --git a/README.rst b/README.rst
+index de38286..dcc69de 100644
+--- a/README.rst
++++ b/README.rst
+@@ -1,23 +1,3 @@
+-.. image:: https://travis-ci.org/wireservice/agate.png
+- :target: https://travis-ci.org/wireservice/agate
+- :alt: Build status
+-
+-.. image:: https://img.shields.io/pypi/dw/agate.svg
+- :target: https://pypi.python.org/pypi/agate
+- :alt: PyPI downloads
+-
+-.. image:: https://img.shields.io/pypi/v/agate.svg
+- :target: https://pypi.python.org/pypi/agate
+- :alt: Version
+-
+-.. image:: https://img.shields.io/pypi/l/agate.svg
+- :target: https://pypi.python.org/pypi/agate
+- :alt: License
+-
+-.. image:: https://img.shields.io/pypi/pyversions/agate.svg
+- :target: https://pypi.python.org/pypi/agate
+- :alt: Support Python versions
+-
+ agate is a Python data analysis library that is optimized for humans instead of machines. It is an alternative to numpy and pandas that solves real-world problems with readable code.
+
+ agate was previously known as journalism.
diff --git a/debian/patches/Remove-absent-reference-from-the-docs.patch b/debian/patches/Remove-absent-reference-from-the-docs.patch
new file mode 100644
index 0000000..0e2fff1
--- /dev/null
+++ b/debian/patches/Remove-absent-reference-from-the-docs.patch
@@ -0,0 +1,23 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 15 Mar 2017 11:30:18 +0000
+Subject: Remove absent reference from the docs
+
+---
+ docs/api/misc.rst | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/docs/api/misc.rst b/docs/api/misc.rst
+index 0dad4dd..bff7a6a 100644
+--- a/docs/api/misc.rst
++++ b/docs/api/misc.rst
+@@ -5,10 +5,8 @@ Miscellaneous
+ .. autosummary::
+ :nosignatures:
+
+- agate.Patchable
+ agate.NullOrder
+ agate.Quantiles
+
+-.. autoclass:: agate.Patchable
+ .. autoclass:: agate.NullOrder
+ .. autoclass:: agate.Quantiles
diff --git a/debian/patches/Use-packaged-docs.patch b/debian/patches/Use-packaged-docs.patch
new file mode 100644
index 0000000..76708f9
--- /dev/null
+++ b/debian/patches/Use-packaged-docs.patch
@@ -0,0 +1,29 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sun, 12 Mar 2017 23:29:17 +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 6ceb20d..ef52568 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -17,8 +17,14 @@ extensions = [
+ autodoc_default_flags = ['members', 'show-inheritance']
+
+ intersphinx_mapping = {
+- 'python': ('http://docs.python.org/3.5', None),
+- 'leather': ('http://leather.readthedocs.io/en/latest/', None)
++ 'python': (
++ 'http://docs.python.org/3',
++ '/usr/share/doc/python3/html/objects.inv',
++ ),
++ 'leather': (
++ 'http://leather.readthedocs.io/en/latest/',
++ '/usr/share/doc/python-leather-doc/html/objects.inv',
++ ),
+ }
+
+ # Templates
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ff221bd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+Use-packaged-docs.patch
+No-privacy-breach.patch
+Fix-typo-in-shebang.patch
+Remove-absent-reference-from-the-docs.patch
diff --git a/debian/py3dist-overrides b/debian/py3dist-overrides
new file mode 100644
index 0000000..2e173d0
--- /dev/null
+++ b/debian/py3dist-overrides
@@ -0,0 +1 @@
+leather python3-leather; PEP386
diff --git a/debian/python-agate-doc.doc-base b/debian/python-agate-doc.doc-base
new file mode 100644
index 0000000..36455a3
--- /dev/null
+++ b/debian/python-agate-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-agate-doc
+Title: agate documentation
+Author: Christopher Groskopf
+Abstract: This is the reference documentation for the agate Python library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/python-agate-doc/html/index.html
+Files: /usr/share/doc/python-agate-doc/html/*.html
diff --git a/debian/python-agate-doc.docs b/debian/python-agate-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-agate-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/python-agate-doc.lintian-overrides b/debian/python-agate-doc.lintian-overrides
new file mode 100644
index 0000000..a19b78d
--- /dev/null
+++ b/debian/python-agate-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..0820084
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = agate
+# Testing is temporarily disabled due to a bug upstream, see
+# <https://github.com/wireservice/agate/issues/677>.
+#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..2fe0154
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,12 @@
+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-agate,
+ python3-all,
+ python3-cssselect,
+ python3-lxml,
+ python3-pytest
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..af8a607
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/agate-$1\.tar\.gz/ \
+https://github.com/wireservice/agate/tags .*/v?@ANY_VERSION@@ARCHIVE_EXT@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-agate.git
More information about the Python-modules-commits
mailing list