[Python-modules-commits] [toolz] 04/09: Initial packaging

Diane Trout diane at moszumanska.debian.org
Sat Dec 3 06:07:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

diane pushed a commit to branch master
in repository toolz.

commit e564e73b6a6ab9219b8c4f0adad02c8cddbb71c1
Author: Diane Trout <diane at ghic.org>
Date:   Fri Dec 2 21:47:53 2016 -0800

    Initial packaging
---
 debian/changelog                 |  6 ++++++
 debian/compat                    |  1 +
 debian/control                   | 41 ++++++++++++++++++++++++++++++++++++++++
 debian/copyright                 | 40 +++++++++++++++++++++++++++++++++++++++
 debian/python-toolz-doc.doc-base | 12 ++++++++++++
 debian/python-toolz-doc.docs     |  1 +
 debian/rules                     | 17 +++++++++++++++++
 debian/tests/control             |  3 +++
 debian/watch                     |  4 ++++
 9 files changed, 125 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fa39020
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+toolz (0.8.0-1) UNRELEASED; urgency=low
+
+  * Initial packaging (Closes: #817779)
+    This incorporates some work by Stefan van der Walt. Thank you.
+
+ -- Diane Trout <diane at ghic.org>  Fri, 02 Dec 2016 15:22:45 -0800
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ffb690f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,41 @@
+Source: toolz
+Maintainer: Diane Trout <diane at ghic.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-docutils,
+               python-sphinx (>= 1.0.7+dfsg-1~),
+               python3-all,
+               python3-pytest,
+               python3-setuptools
+Standards-Version: 3.9.8
+Homepage: http://github.com/pytoolz/toolz/
+X-Python3-Version: >= 3.2
+Testsuite: autopkgtest-pkg-python
+
+Package: python3-toolz
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Suggests: python-toolz-doc
+Description: List processing tools and functional utilities
+ A set of utility functions for iterators, functions, and
+ dictionaries.  These functions interoperate well and form the
+ building blocks of common data analytic operations. They extend the
+ standard libraries itertools and functools and borrow heavily from
+ the standard libraries of contemporary functional languages.
+ .
+ This contains the Python 3 version
+
+Package: python-toolz-doc
+Architecture: all
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Section: doc
+Description: List processing tools and functional utilities documentation
+ A set of utility functions for iterators, functions, and
+ dictionaries.  These functions interoperate well and form the
+ building blocks of common data analytic operations. They extend the
+ standard libraries itertools and functools and borrow heavily from
+ the standard libraries of contemporary functional languages.
+ .
+ This contains the documentation
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b97587e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,40 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: toolz
+Source: https://github.com/pytoolz/toolz
+
+Files: *
+Copyright: 2013 Matthew Rocklin <mrocklin at gmail.com>
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2015 Diane Trout <diane at ghic.org>
+License: BSD-3-Clause
+
+License: BSD-3-Clause
+  Copyright (c) 2013 Matthew Rocklin
+  .
+  All rights reserved.
+  .
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are met:
+  .
+    a. Redistributions of source code must retain the above copyright notice,
+       this list of conditions and the following disclaimer.
+    b. Redistributions in binary form must reproduce the above copyright
+       notice, this list of conditions and the following disclaimer in the
+       documentation and/or other materials provided with the distribution.
+    c. Neither the name of toolz nor the names of its contributors
+       may be used to endorse or promote products derived from this software
+       without specific prior written permission.
+  .
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
+  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+  DAMAGE.
diff --git a/debian/python-toolz-doc.doc-base b/debian/python-toolz-doc.doc-base
new file mode 100644
index 0000000..6f73cd1
--- /dev/null
+++ b/debian/python-toolz-doc.doc-base
@@ -0,0 +1,12 @@
+Document: python-toolz-doc
+Title: toolz documentation
+Author: Matthew Rocklin
+Abstract: Documentation for the toolz Python library
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-toolz-doc/html/index.html
+Files: /usr/share/doc/python-toolz-doc/html/*.html
+ /usr/share/doc/python-toolz-doc/html/_modules/*.html
+ /usr/share/doc/python-toolz-doc/html/_modules/toolz/*.html
+ /usr/share/doc/python-toolz-doc/html/_modules/toolz/sandbox/*.html
diff --git a/debian/python-toolz-doc.docs b/debian/python-toolz-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-toolz-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7f397ea
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=toolz
+export PYBUILD_DISABLE_python2=1
+
+%:
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_clean:
+	rm -rf build doc/build toolz.egg-info
+	dh_clean
+
+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
+	PYTHONPATH=. sphinx-build $(SPHINXOPTS) -n -bhtml doc/source build/html
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..f8adf81
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Test-Command: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py -c "import toolz; print(toolz)" ; done
+Depends: python3-all, python3-toolz
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e7913c7
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# please also check http://pypi.debian.net/toolz/watch
+version=3
+opts="filenamemangle=s/(?:.*)?v?(\d[\d\.]*)\.tar\.gz/toolz-$1.tar.gz/" \
+  https://github.com/pytoolz/toolz/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz

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



More information about the Python-modules-commits mailing list