[Python-modules-commits] [dask] 03/03: Initial Packaging (Closes: #817777)

Diane Trout diane at moszumanska.debian.org
Wed Jan 11 06:23:32 UTC 2017


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

diane pushed a commit to branch master
in repository dask.

commit f575d26760f0cf5ed405c76d56b5615676fde2c5
Author: Diane Trout <diane at ghic.org>
Date:   Tue Jan 10 20:02:46 2017 -0800

    Initial Packaging (Closes: #817777)
---
 debian/.git-dpm                          |  3 ++
 debian/README.source                     |  4 ++
 debian/changelog                         |  5 +++
 debian/compat                            |  1 +
 debian/control                           | 66 ++++++++++++++++++++++++++++++++
 debian/copyright                         | 61 +++++++++++++++++++++++++++++
 debian/files                             |  1 +
 debian/patches/series                    |  1 +
 debian/patches/use-mathjax-package.patch | 14 +++++++
 debian/python-dask-doc.doc-base          | 11 ++++++
 debian/python-dask-doc.docs              |  1 +
 debian/rules                             | 21 ++++++++++
 debian/source/options                    |  1 +
 debian/tests/control                     |  2 +
 debian/watch                             |  4 ++
 15 files changed, 196 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
index e187034..b1c0581 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@
 dask_0.12.0.orig.tar.gz
 20fb019607ae46b4d244d5eee870088fca46c1e8
 2033497
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..f9dc7e8
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,4 @@
+Github is used as the Upstream source instead of pypi because upstream
+doesn't include the configuration to build the documentation on pypi.
+
+ -- Diane Trout <diane at ghic.org>, Wed,  7 Dec 2016 11:48:46 -0800
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..63dd3c3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+dask (0.12.0-1) unstable; urgency=low
+
+  * Initial Packaging (Closes: #817777)
+
+ -- Diane Trout <diane at ghic.org>  Wed, 07 Dec 2016 10:54:28 -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..5c37edb
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,66 @@
+Source: dask
+Maintainer: Diane Trout <diane at ghic.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               libjs-mathjax,
+               python3-all,
+               python3-cloudpickle (>= 0.2.1),
+               python3-numpy,
+               python3-numpydoc,
+               python3-pandas (>= 0.18.0),
+               python3-partd (>= 0.3.6),
+               python3-setuptools,
+               python3-sphinx,
+               python3-sphinx-rtd-theme,
+               python3-toolz (>= 0.7.2)
+Standards-Version: 3.9.8
+Homepage: http://github.com/dask/dask/
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/dask.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/dask.git
+Testsuite: autopkgtest-pkg-python
+X-Python3-Version: >= 3.3
+
+Package: python3-dask
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Recommends: python3-cloudpickle (>= 0.2.1),
+            python3-distributed (>= 1.14),
+            python3-graphviz,
+            python3-numpy,
+            python3-pandas (>= 0.18.0),
+            python3-partd (>= 0.3.6),
+            python3-psutil,
+            python3-toolz (>= 0.7.2)
+Description: Minimal task scheduling abstraction for Python 3
+ Dask is a flexible parallel computing library for analytics,
+ containing two components.
+ .
+ 1. Dynamic task scheduling optimized for computation. This is similar
+ to Airflow, Luigi, Celery, or Make, but optimized for interactive
+ computational workloads.
+ 2. "Big Data" collections like parallel arrays, dataframes, and lists
+ that extend common interfaces like NumPy, Pandas, or Python iterators
+ to larger-than-memory or distributed environments. These parallel
+ collections run on top of the dynamic task schedulers.
+ .
+ This contains the Python 3 version.
+
+Package: python-dask-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Minimal task scheduling abstraction documentation
+ Dask is a flexible parallel computing library for analytics,
+ containing two components.
+ .
+ 1. Dynamic task scheduling optimized for computation. This is similar
+ to Airflow, Luigi, Celery, or Make, but optimized for interactive
+ computational workloads.
+ 2. "Big Data" collections like parallel arrays, dataframes, and lists
+ that extend common interfaces like NumPy, Pandas, or Python iterators
+ to larger-than-memory or distributed environments. These parallel
+ collections run on top of the dynamic task schedulers.
+ .
+ This contains the documentation
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2ba11fb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,61 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: dask
+Upstream-Contact: Matthew Rocklin <mrocklin at gmail.com>
+Source: https://github.com/dask/dask
+
+Files: *
+Copyright: Copyright (c) 2014-2015, Continuum Analytics, Inc. and contributors
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2016 Diane Trout <diane at ghic.org>
+License: Expat
+
+License: BSD-3-Clause
+ Copyright (c) 2015-2016, Continuum Analytics, Inc. and contributors
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ .
+ Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ .
+ 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.
+ .
+ Neither the name of Continuum Analytics nor the names of any 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 COPYRIGHT OWNER 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.
+
+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..063e33c
--- /dev/null
+++ b/debian/files
@@ -0,0 +1 @@
+dask_0.12.0-1_source.buildinfo python optional
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1d51d1d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-mathjax-package.patch
diff --git a/debian/patches/use-mathjax-package.patch b/debian/patches/use-mathjax-package.patch
new file mode 100644
index 0000000..c848a0e
--- /dev/null
+++ b/debian/patches/use-mathjax-package.patch
@@ -0,0 +1,14 @@
+Author: Diane Trout <diane at ghic.org>
+Description: Use locally installed MathJax
+
+--- a/docs/source/conf.py
++++ b/docs/source/conf.py
+@@ -28,6 +28,8 @@
+ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax',
+               'sphinx.ext.autosummary', 'sphinx.ext.extlinks', 'numpydoc']
+ 
++mathjax_path = 'mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
++
+ numpydoc_show_class_members = False
+ 
+ # Add any paths that contain templates here, relative to this directory.
diff --git a/debian/python-dask-doc.doc-base b/debian/python-dask-doc.doc-base
new file mode 100644
index 0000000..9447704
--- /dev/null
+++ b/debian/python-dask-doc.doc-base
@@ -0,0 +1,11 @@
+Document: python-dask-doc
+Title: Dask documentation
+Author: Continuum Analytics
+Abstract: Distributed computation documentation
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-dask-doc/html/index.html
+Files: /usr/share/doc/python-dask-doc/html/*.html
+ /usr/share/doc/python-dask-doc/html/examples/*.html
+
diff --git a/debian/python-dask-doc.docs b/debian/python-dask-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-dask-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..fab1684
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=dask
+%:
+	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
+	ln -s /usr/share/javascript/mathjax docs/source/_static
+	PYTHONPATH=. sphinx-build -N -bhtml docs/source build/html # HTML generator
+
+override_dh_auto_clean:
+	dh_auto_clean
+	-rm docs/source/_static/mathjax
+
+# Test needs: skimage, scipy, s3fs, cachey, distributed, graphviz
+# dask is a build-dep for distributed... so we can't run tests at build
+.PHONY: override_dh_auto_test
+
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/tests/control b/debian/tests/control
new file mode 100644
index 0000000..03ac523
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Test-Command: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py $(which py.test-3) --pyargs dask ; done
+Depends: python3-all, python3-pytest, python3-dask, python3-distributed
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..99d9f93
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%dask-$1.tar.gz%" \
+    https://github.com/dask/dask/tags \
+    (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate

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



More information about the Python-modules-commits mailing list