summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog61
-rw-r--r--debian/control28
-rw-r--r--debian/copyright81
-rwxr-xr-xdebian/rules15
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control3
-rwxr-xr-xdebian/tests/upstream.sh17
-rw-r--r--debian/upstream/metadata6
-rw-r--r--debian/watch7
9 files changed, 219 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0cead45
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,61 @@
+python-pot (0.8.0+dfsg-3) unstable; urgency=medium
+
+ * Generate NumPy ABI dependency (Closes: #1000708).
+
+ -- Gard Spreemann <gspr@nonempty.org> Sat, 27 Nov 2021 16:31:18 +0100
+
+python-pot (0.8.0+dfsg-2) unstable; urgency=medium
+
+ * Skip test meant to be run from uninstalled sources.
+
+ -- Gard Spreemann <gspr@nonempty.org> Wed, 10 Nov 2021 07:30:59 +0100
+
+python-pot (0.8.0+dfsg-1) unstable; urgency=medium
+
+ * New upstream version.
+ * Remove unclearly licensed example data files.
+ * Standards-version 4.6.0.1. No changes needed.
+
+ -- Gard Spreemann <gspr@nonempty.org> Tue, 09 Nov 2021 17:17:20 +0100
+
+python-pot (0.7.0+dfsg-4) unstable; urgency=medium
+
+ * Fix watch file.
+ * Fix upstream metadata file.
+
+ -- Gard Spreemann <gspr@nonempty.org> Sun, 15 Aug 2021 12:03:20 +0200
+
+python-pot (0.7.0+dfsg-3) unstable; urgency=medium
+
+ * Move git to Salsa.
+ * Start upstream metadata file.
+ * Standards-version 4.5.1. No changes needed.
+
+ -- Gard Spreemann <gspr@nonempty.org> Sun, 24 Jan 2021 13:50:05 +0100
+
+python-pot (0.7.0+dfsg-2) unstable; urgency=medium
+
+ * Require Scikit-learn for tests.
+ * Recommend Scikit-learn as some functionality uses it.
+
+ -- Gard Spreemann <gspr@nonempty.org> Thu, 09 Jul 2020 18:08:26 +0200
+
+python-pot (0.7.0+dfsg-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Gard Spreemann <gspr@nonempty.org> Thu, 09 Jul 2020 08:51:54 +0200
+
+python-pot (0.6.0+dfsg-2) unstable; urgency=medium
+
+ * Watch file.
+ * DH compat 13.
+ * Fix tests that were trivially passing.
+
+ -- Gard Spreemann <gspr@nonempty.org> Wed, 08 Jul 2020 20:53:59 +0200
+
+python-pot (0.6.0+dfsg-1) unstable; urgency=medium
+
+ * Initial release. (Closes: #949381)
+
+ -- Gard Spreemann <gspr@nonempty.org> Sat, 25 Apr 2020 17:23:23 +0200
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0bfe792
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: python-pot
+Maintainer: Gard Spreemann <gspr@nonempty.org>
+Section: python
+Priority: optional
+Standards-Version: 4.6.0.1
+Build-Depends: cython3,
+ debhelper-compat (= 13),
+ dh-python,
+ python3-all-dev,
+ python3-numpy,
+ python3-scipy,
+ python3-setuptools
+Rules-Requires-Root: no
+Homepage: https://pythonot.github.io/
+Vcs-Browser: https://salsa.debian.org/gspr/python-pot
+Vcs-Git: https://salsa.debian.org/gspr/python-pot.git -b debian/sid
+
+Package: python3-pot
+Section: python
+Architecture: any
+Depends: ${misc:Depends},
+ ${python3:Depends},
+ ${shlibs:Depends}
+Recommends: python3-sklearn
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4c9d597
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,81 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: POT
+Source: https://pythonot.github.io/
+License: MIT
+Files-Excluded: data/
+Comment: Deleted upstream bundling of unclearly licensed data for DFSG repack.
+
+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: ot/lp/*
+Copyright: 2014 Antoine Rolet
+ Nicolas Bonneel
+License: BSD-2-clause
+
+Files: ot/lp/*.py*
+Copyright: Rémi Flamary <remi.flamary@unice.fr>
+License: MIT
+
+Files: debian/*
+Copyright: 2020-2021 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..b039f58
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export PYBUILD_NAME = pot
+
+%:
+ dh $@ --with numpy3,python3 --buildsystem=pybuild
+
+execute_after_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..2c89e6f
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: upstream.sh
+Depends: python3-all, python3-pot, python3-pytest, python3-sklearn
+Restrictions: allow-stderr
diff --git a/debian/tests/upstream.sh b/debian/tests/upstream.sh
new file mode 100755
index 0000000..25ece72
--- /dev/null
+++ b/debian/tests/upstream.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e
+set -u
+
+testdir=test
+cp -R $testdir $AUTOPKGTEST_TMP
+cd $AUTOPKGTEST_TMP
+rm ${testdir}/test_helpers.py
+
+for py3ver in $(py3versions -vs)
+do
+ echo "Running tests with Python ${py3ver}."
+ /usr/bin/python${py3ver} -B -m pytest $testdir
+ rm -rf .pytest_cache
+ echo "**********"
+done
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..091d4c1
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Bug-Database: https://github.com/PythonOT/POT/issues
+Bug-Submit: https://github.com/PythonOT/POT/issues/new
+Repository: https://github.com/PythonOT/POT.git
+Repository-Browse: https://github.com/PythonOT/POT
+Cite-As: >
+ Rémi Flamary and Nicolas Courty, POT Python Optimal Transport library, https://pythonot.github.io/
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..4a67941
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+version=4
+opts=filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.gz%,\
+ dversionmangle=s/\+dfsg(\.\d+)?$//,\
+ uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/ \
+ https://github.com/PythonOT/POT/releases \
+ (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
+ \ No newline at end of file