[Python-modules-commits] r29902 - in packages/toposort/trunk (13 files)
dktrkranz at users.alioth.debian.org
dktrkranz at users.alioth.debian.org
Fri Jul 25 06:58:34 UTC 2014
Date: Friday, July 25, 2014 @ 06:58:34
Author: dktrkranz
Revision: 29902
[svn-inject] Applying Debian modifications (1.1-1) to trunk
Added:
packages/toposort/trunk/debian/
packages/toposort/trunk/debian/changelog
packages/toposort/trunk/debian/compat
packages/toposort/trunk/debian/control
packages/toposort/trunk/debian/copyright
packages/toposort/trunk/debian/rules
packages/toposort/trunk/debian/source/
packages/toposort/trunk/debian/source/format
packages/toposort/trunk/debian/tests/
packages/toposort/trunk/debian/tests/control
packages/toposort/trunk/debian/tests/python2-smoketest
packages/toposort/trunk/debian/tests/python3-smoketest
packages/toposort/trunk/debian/watch
Property changes on: packages/toposort/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
+ 1
Added: packages/toposort/trunk/debian/changelog
===================================================================
--- packages/toposort/trunk/debian/changelog (rev 0)
+++ packages/toposort/trunk/debian/changelog 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1,5 @@
+toposort (1.1-1) unstable; urgency=medium
+
+ * Initial release (Closes: #755906).
+
+ -- Luca Falavigna <dktrkranz at debian.org> Thu, 24 Jul 2014 14:54:36 +0200
Added: packages/toposort/trunk/debian/compat
===================================================================
--- packages/toposort/trunk/debian/compat (rev 0)
+++ packages/toposort/trunk/debian/compat 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1 @@
+9
Added: packages/toposort/trunk/debian/control
===================================================================
--- packages/toposort/trunk/debian/control (rev 0)
+++ packages/toposort/trunk/debian/control 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1,39 @@
+Source: toposort
+Section: python
+Priority: optional
+Maintainer: Luca Falavigna <dktrkranz at debian.org>
+Build-Depends: debhelper (>= 9),
+ dh-python,
+ python-all (>= 2.6.6-3~),
+ python-setuptools,
+ python3-all,
+ python3-setuptools
+Homepage: https://bitbucket.org/ericvsmith/toposort
+Standards-Version: 3.9.5
+X-Python-Versions: >= 2.7
+X-Python3-Versions: >= 3.2
+Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/toposort/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewsvn/python-modules/packages/toposort/trunk/
+XS-Testsuite: autopkgtest
+
+Package: python-toposort
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Description: topological sort algorithm - Python 2 module
+ In computer science, a topological sort (sometimes abbreviated
+ topsort or toposort) or topological ordering of a directed graph is a
+ linear ordering of its vertices such that for every directed edge uv
+ from vertex u to vertex v, u comes before v in the ordering.
+ .
+ This package provides this algorithm for Python.
+
+Package: python3-toposort
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: topological sort algorithm - Python 3 module
+ In computer science, a topological sort (sometimes abbreviated
+ topsort or toposort) or topological ordering of a directed graph is a
+ linear ordering of its vertices such that for every directed edge uv
+ from vertex u to vertex v, u comes before v in the ordering.
+ .
+ This package provides this algorithm for Python 3.
Added: packages/toposort/trunk/debian/copyright
===================================================================
--- packages/toposort/trunk/debian/copyright (rev 0)
+++ packages/toposort/trunk/debian/copyright 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: toposort
+Source: https://bitbucket.org/ericvsmith/toposort
+
+Files: *
+Copyright: 2014, True Blade Systems, Inc.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2014, Luca Falavigna <dktrkranz at debian.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ 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 complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
\ No newline at end of file
Added: packages/toposort/trunk/debian/rules
===================================================================
--- packages/toposort/trunk/debian/rules (rev 0)
+++ packages/toposort/trunk/debian/rules 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=toposort
+PYVERS := $(shell pyversions -vr)
+PY3VERS := $(shell py3versions -vr)
+
+%:
+ dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+ set -ex; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ python$$py setup.py test ; \
+ done
Property changes on: packages/toposort/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/toposort/trunk/debian/source/format
===================================================================
--- packages/toposort/trunk/debian/source/format (rev 0)
+++ packages/toposort/trunk/debian/source/format 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: packages/toposort/trunk/debian/tests/control
===================================================================
--- packages/toposort/trunk/debian/tests/control (rev 0)
+++ packages/toposort/trunk/debian/tests/control 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1,5 @@
+Tests: python2-smoketest
+Depends: python-toposort
+
+Tests: python3-smoketest
+Depends: python3-toposort
Added: packages/toposort/trunk/debian/tests/python2-smoketest
===================================================================
--- packages/toposort/trunk/debian/tests/python2-smoketest (rev 0)
+++ packages/toposort/trunk/debian/tests/python2-smoketest 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+cd "$ADTTMP"
+cat > test.py << EOF
+#!/usr/bin/python
+
+
+from toposort import toposort, toposort_flatten
+
+data = {2: {11},
+ 9: {11, 8, 10},
+ 10: {11, 3},
+ 11: {7, 5},
+ 8: {7, 3}}
+simple = [{3, 5, 7}, {8, 11}, {2, 10}, {9}]
+flatten = [3, 5, 7, 8, 11, 2, 10, 9]
+
+try:
+ assert(list(toposort(data)) == simple)
+except AssertionError:
+ raise AssertionError('toposort failed')
+try:
+ assert(list(toposort_flatten(data)) == flatten)
+except AssertionError:
+ raise AssertionError('toposort_flatten failed')
+EOF
+python test.py
Added: packages/toposort/trunk/debian/tests/python3-smoketest
===================================================================
--- packages/toposort/trunk/debian/tests/python3-smoketest (rev 0)
+++ packages/toposort/trunk/debian/tests/python3-smoketest 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+cd "$ADTTMP"
+cat > test.py << EOF
+#!/usr/bin/python3
+
+
+from toposort import toposort, toposort_flatten
+
+data = {2: {11},
+ 9: {11, 8, 10},
+ 10: {11, 3},
+ 11: {7, 5},
+ 8: {7, 3}}
+simple = [{3, 5, 7}, {8, 11}, {2, 10}, {9}]
+flatten = [3, 5, 7, 8, 11, 2, 10, 9]
+
+try:
+ assert(list(toposort(data)) == simple)
+except AssertionError:
+ raise AssertionError('toposort failed')
+try:
+ assert(list(toposort_flatten(data)) == flatten)
+except AssertionError:
+ raise AssertionError('toposort_flatten failed')
+EOF
+python3 test.py
Added: packages/toposort/trunk/debian/watch
===================================================================
--- packages/toposort/trunk/debian/watch (rev 0)
+++ packages/toposort/trunk/debian/watch 2014-07-25 06:58:34 UTC (rev 29902)
@@ -0,0 +1,2 @@
+version=3
+https://bitbucket.org/ericvsmith/toposort/downloads .*/(\d\S*)\.tar\.gz
\ No newline at end of file
More information about the Python-modules-commits
mailing list