[Python-modules-commits] [sortedcollections] 03/06: Initial packaging. (Closes: #861140)

Diane Trout diane at moszumanska.debian.org
Tue Apr 25 03:08:03 UTC 2017


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

diane pushed a commit to branch master
in repository sortedcollections.

commit 4be6a46387d205a01a47acc2bf4352d0ab89ddcd
Author: Diane Trout <diane at ghic.org>
Date:   Mon Apr 24 16:37:00 2017 -0700

    Initial packaging. (Closes: #861140)
---
 debian/README.source                         |  5 +++
 debian/changelog                             |  5 +++
 debian/compat                                |  1 +
 debian/control                               | 60 ++++++++++++++++++++++++++++
 debian/copyright                             | 48 ++++++++++++++++++++++
 debian/python-sortedcollections-doc.doc-base |  9 +++++
 debian/python-sortedcollections-doc.docs     |  1 +
 debian/rules                                 | 11 +++++
 debian/tests/control                         |  3 ++
 debian/watch                                 |  4 ++
 10 files changed, 147 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..689c01e
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,5 @@
+I chose to use github as the source for this python package because
+upstream removed the documentation directories from the pypi source
+package.
+
+ -- Diane Trout <diane at ghic.org>, Mon, 24 Apr 2017 15:24:09 -0700
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..bfa8caa
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+sortedcollections (0.5.3-1) unstable; urgency=low
+
+  * Initial packaging. (Closes: #861140)
+
+ -- Diane Trout <diane at ghic.org>  Mon, 24 Apr 2017 14:56:24 -0700
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..ad5c829
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,60 @@
+Source: sortedcollections
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Diane Trout <diane at ghic.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python3-all,
+               python3-nose,
+               python3-setuptools,
+               python3-sortedcontainers,
+               python3-sphinx
+Standards-Version: 3.9.8
+Homepage: http://www.grantjenks.com/docs/sortedcollections/
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/sortedcollections.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/sortedcollections.git
+Testsuite: autopkgtest-pkg-python
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+
+Package: python3-sortedcollections
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Python 3 Sorted Collections
+ SortedCollections is an Apache2 licensed Python sorted collections library.
+ .
+ Features
+ --------
+ .
+   - Pure-Python
+   - Depends on the SortedContainers module.
+   - ValueSortedDict - Dictionary with (key, value) item pairs sorted by value.
+   - ItemSortedDict - Dictionary with key-function support for item pairs.
+   - OrderedDict - Ordered dictionary with numeric indexing support.
+   - OrderedSet - Ordered set with numeric indexing support.
+   - IndexableDict - Dictionary with numeric indexing support.
+   - IndexableSet - Set with numeric indexing support.
+ .
+ This contains the Python 3 module
+
+Package: python-sortedcollections-doc
+Architecture: all
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Section: doc
+Description: Python documentation for Sorted Collections
+ SortedCollections is an Apache2 licensed Python sorted collections library.
+ .
+ Features
+ --------
+ .
+   - Pure-Python
+   - Depends on the SortedContainers module.
+   - ValueSortedDict - Dictionary with (key, value) item pairs sorted by value.
+   - ItemSortedDict - Dictionary with key-function support for item pairs.
+   - OrderedDict - Ordered dictionary with numeric indexing support.
+   - OrderedSet - Ordered set with numeric indexing support.
+   - IndexableDict - Dictionary with numeric indexing support.
+   - IndexableSet - Set with numeric indexing support.
+ .
+ This contians the documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c967147
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,48 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sortedcollections
+Source: https://github.com/grantjenks/sortedcollections
+
+Files: *
+Copyright: Copyright (c) 2015-2016 Grant Jenks
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016 Diane Trout <diane at ghic.org>
+License: Expat
+
+License: Apache-2.0
+ Copyright 2015-2016 Grant Jenks
+ .
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+     http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the full text of the Apache Software License version 2 can
+ be found in the file `/usr/share/common-licenses/Apache-2.0'.
+
+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/python-sortedcollections-doc.doc-base b/debian/python-sortedcollections-doc.doc-base
new file mode 100644
index 0000000..6227d3f
--- /dev/null
+++ b/debian/python-sortedcollections-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-sortedcollections-doc
+Title: Sorted Collections Documetnation
+Author: Grant Jenks
+Abstract: Distributed computation documentation
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-sortedcollections-doc/html/index.html
+Files: /usr/share/doc/python-sortedcollections-doc/html/*.html
diff --git a/debian/python-sortedcollections-doc.docs b/debian/python-sortedcollections-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-sortedcollections-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ccace16
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=sortedcollections
+%:
+	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
+	PYTHONPATH=. sphinx-build -N -bhtml docs build/html # HTML generator
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e3fd0e9
--- /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 sortedcollections; print(sortedcollections)" ; done
+Depends: python3-all, python3-sortedcollections
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3a3b9b8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%sortedcollections-$1.tar.gz%" \
+    https://github.com/grantjenks/sortedcollections/releases \
+    (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate

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



More information about the Python-modules-commits mailing list