summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control27
-rw-r--r--debian/copyright70
-rwxr-xr-xdebian/rules16
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control3
-rwxr-xr-xdebian/tests/upstream.sh17
8 files changed, 140 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fbbf9e1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-pot (0.6.0-1) UNRELEASED; urgency=medium
+
+ * Initial release. (Closes: #949381)
+
+ -- Gard Spreemann <gspr@nonempty.org> Mon, 20 Jan 2020 11:22:04 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..48082f7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+12
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f925771
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,27 @@
+Source: python-pot
+Maintainer: Gard Spreemann <gspr@nonempty.org>
+Section: python
+Priority: optional
+Standards-Version: 4.4.1
+Build-Depends: cython3,
+ debhelper (>= 12),
+ dh-python,
+ python3-all-dev,
+ python3-numpy,
+ python3-scipy,
+ python3-setuptools
+Rules-Requires-Root: no
+Homepage: https://pypi.org/project/POT/
+Vcs-Browser: https://git.nonempty.org/debian-python-pot
+Vcs-Git: https://git.nonempty.org/debian-python-pot -b debian/sid
+
+Package: python3-pot
+Section: python
+Architecture: any
+Depends: ${misc:Depends},
+ ${python3:Depends},
+ ${shlibs:Depends}
+Description: Python optimal transport library
+ Python library with solvers for optimization problems related to
+ optimal transport in for example signal and image processing, and machine learning.
+ \ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6cadeb7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,70 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: POT
+Source: https://github.com/rflamary/POT/
+License: MIT
+
+Files: *
+Copyright: RĂ©mi Flamary <remi.flamary@unice.fr>
+ Nicolas Courty <ncourty@irisa.fr>
+ Kilian Fatras <kilian.fatras@irisa.fr>
+ Titouan Vayer <titouan.vayer@irisa.fr>
+ Hicham Janati <hicham.janati@inria.fr>
+ Michael Perrot <michael.perrot@univ-st-etienne.fr>
+ Nathalie Gayraud <nat.gayraud@gmail.com>
+ Leo Gautheron <https://github.com/aje>
+ Erwan Vautier <erwan.vautier@gmail.com>
+ Hicham Janati <hicham.janati@inria.fr>
+License: MIT
+
+Files: ot/smooth.py
+Copyright: 2018, Mathieu Blondel
+License: BSD-2-clause
+
+Files: debian/*
+Copyright: 2020 Gard Spreemann <gspr@nonempty.org>
+License: MIT
+
+License: MIT
+ 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.
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ .
+ 2. 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.
+ .
+ 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
+ HOLDER 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. \ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d322e85
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = pot
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -f ot/lp/emd_wrap.cpp
+
+# Some of the build-time tests assume the existence of cupy, so we
+# currently disable all test.
+override_dh_auto_test:
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..80e8c6e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: upstream.sh
+Depends: python3-all, python3-pot, python3-pytest
+Restrictions: allow-stderr
diff --git a/debian/tests/upstream.sh b/debian/tests/upstream.sh
new file mode 100755
index 0000000..e450c59
--- /dev/null
+++ b/debian/tests/upstream.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e
+set -u
+
+testdir=$PWD/test
+cd $AUTOPKGTEST_TMP
+
+for py3ver in $(py3versions -vs)
+do
+ echo "Running tests with Python ${py3ver}."
+ for t in $(find $testdir -type f -name 'test_*.py')
+ do
+ echo "Running test ${t}."
+ /usr/bin/python${py3ver} -B $t
+ done
+done