[Python-modules-commits] [heapdict] 03/04: Import initial packaging

Diane Trout diane at moszumanska.debian.org
Wed Dec 14 01:08:17 UTC 2016


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

diane pushed a commit to branch master
in repository heapdict.

commit a518dab7e115bf10fe01022d644bbafcee808d76
Author: Diane Trout <diane at ghic.org>
Date:   Tue Dec 13 16:52:59 2016 -0800

    Import initial packaging
---
 debian/changelog               |  5 ++++
 debian/compat                  |  1 +
 debian/control                 | 26 +++++++++++++++++++
 debian/copyright               | 59 ++++++++++++++++++++++++++++++++++++++++++
 debian/patches/fix-setup.patch | 21 +++++++++++++++
 debian/patches/series          |  1 +
 debian/rules                   |  7 +++++
 debian/source/options          |  1 +
 debian/tests/control           |  2 ++
 debian/watch                   |  3 +++
 10 files changed, 126 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..917194b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+heapdict (1.0.0-1) unstable; urgency=low
+
+  * Initial Packaging (Closes: #847503)
+
+ -- Diane Trout <diane at ghic.org>  Mon, 05 Dec 2016 15:55:56 -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..8473ed9
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: heapdict
+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-pytest,
+               python3-setuptools
+Standards-Version: 3.9.8
+Homepage: http://stutzbachenterprises.com/
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/heapdict.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/heapdict.git
+Testsuite: autopkgtest-pkg-python
+X-Python3-Version: >= 3.2
+
+Package: python3-heapdict
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: heap with decrease-key and increase-key operations for Python 3
+ heapdict implements the MutableMapping ABC, meaning it works pretty
+ much like a regular Python dict.  It's designed to be used as a
+ priority queue.
+ .
+ This contains the Python 3 version
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4315133
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,59 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: HeapDict
+Source: https://github.com/DanielStutzbach/heapdict/blob/master/LICENSE
+
+Files: *
+Copyright: Copyright 2009 Stutzbach Enterprises, LLC <daniel at stutzbachenterprises.com>
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2016 Diane Trout <diane at ghic.org>
+License: Expat
+
+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.
+
+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/patches/fix-setup.patch b/debian/patches/fix-setup.patch
new file mode 100644
index 0000000..eb9efe5
--- /dev/null
+++ b/debian/patches/fix-setup.patch
@@ -0,0 +1,21 @@
+Author: Diane Trout <diane at ghic.org>
+Description: setuptools will always be available, so always use it.
+ Removes a warning message during the build (and may make tests
+ run properly)
+
+--- a/setup.py
++++ b/setup.py
+@@ -1,12 +1,7 @@
+ #!/usr/bin/env
+ 
+ import sys
+-if sys.version_info[0] <= 2:
+-    import ez_setup
+-    ez_setup.use_setuptools()
+-    from setuptools import setup, Extension
+-else:
+-    from distutils.core import setup, Extension
++from setuptools import setup, Extension
+ 
+ setup(name='HeapDict',
+       version='1.0.0',
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5ac2a9b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-setup.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5af7854
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=heapdict
+export PYBUILD_TEST_ARGS=$(CURDIR)/test_heap.py
+
+%:
+	dh $@ --with python3 --buildsystem=pybuild
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..9510d29
--- /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 -c "import heapdict; print(heapdict)" ; done
+Depends: python3-all, python3-heapdict
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..39104a0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/HeapDict/HeapDict-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

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



More information about the Python-modules-commits mailing list