summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Streicher <olebole@debian.org>2023-11-27 12:19:32 +0100
committerOle Streicher <olebole@debian.org>2023-11-27 12:19:32 +0100
commit1b0386a588d71ad5f6288b158be578998a962bb9 (patch)
tree549cd0f65931f29a9d62b117fe1205350f077715
parent44523f8e9546da8469a0faa4018c80565b235743 (diff)
parenta55ac4739f223d87c376b34fc40f69eb68e65211 (diff)
pytest-arraydiff (0.6.1-1) unstable; urgency=medium
* New upstream version 0.6.1 * Rediff patch [dgit import unpatched pytest-arraydiff 0.6.1-1]
-rw-r--r--debian/changelog83
-rw-r--r--debian/clean1
-rw-r--r--debian/control30
-rw-r--r--debian/copyright31
-rw-r--r--debian/gitlab-ci.yml8
-rw-r--r--debian/patches/Use-Python-3-version-of-pytest.patch50
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules8
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control2
-rw-r--r--debian/upstream/metadata4
-rw-r--r--debian/watch3
12 files changed, 222 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d6a1a11
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,83 @@
+pytest-arraydiff (0.6.1-1) unstable; urgency=medium
+
+ * New upstream version 0.6.1
+ * Rediff patch
+
+ -- Ole Streicher <olebole@debian.org> Mon, 27 Nov 2023 12:19:32 +0100
+
+pytest-arraydiff (0.6.0-1) unstable; urgency=medium
+
+ * New upstream version 0.6.0
+ * Rediff patch
+ * Push Standards-Version to 4.6.2. No changes needed.
+
+ -- Ole Streicher <olebole@debian.org> Thu, 16 Nov 2023 09:19:54 +0100
+
+pytest-arraydiff (0.5.0-2) unstable; urgency=medium
+
+ * Add version.py to d/clean (Closes: #1015127)
+ * Push Standards-Version to 4.6.1. No changes needed
+
+ -- Ole Streicher <olebole@debian.org> Sun, 17 Jul 2022 12:57:03 +0200
+
+pytest-arraydiff (0.5.0-1) unstable; urgency=medium
+
+ * New upstream version 0.5.0
+ * Drop Don-t-depend-on-Astropy.patch: applied upstream
+
+ -- Ole Streicher <olebole@debian.org> Sun, 16 Jan 2022 12:19:05 +0100
+
+pytest-arraydiff (0.4.0-3) unstable; urgency=medium
+
+ * Don't depend on Astropy (Closes: #1003238)
+
+ -- Ole Streicher <olebole@debian.org> Thu, 06 Jan 2022 20:37:56 +0100
+
+pytest-arraydiff (0.4.0-2) unstable; urgency=medium
+
+ * Add gitlab-ci.yml
+ * Disable build time tests again. They'd need an installation of the plugin
+
+ -- Ole Streicher <olebole@debian.org> Mon, 03 Jan 2022 10:29:30 +0100
+
+pytest-arraydiff (0.4.0-1) unstable; urgency=medium
+
+ [ Ondřej Nový ]
+ * Use debhelper-compat instead of debian/compat.
+ * d/control: Update Maintainer field with new Debian Python Team
+ contact address.
+ * d/control: Update Vcs-* fields with new Debian Python Team Salsa
+ layout.
+
+ [ Debian Janitor ]
+ * Bump debhelper from old 12 to 13.
+
+ [ Ole Streicher ]
+ * New upstream version 0.4.0
+ * Rediff patches
+ * Remove obsoleted versionized build dependency
+ * Push Standards-Version to 4.6.0. No changes
+ * (Accidently) enable build time tests. Not working.
+
+ -- Ole Streicher <olebole@debian.org> Mon, 03 Jan 2022 08:57:56 +0100
+
+pytest-arraydiff (0.3-1) unstable; urgency=low
+
+ * Fix maintainer (DPMT) email address
+ * Move VCS to DPMT
+ * New upstream version 0.3
+
+ -- Ole Streicher <olebole@debian.org> Thu, 06 Dec 2018 16:50:59 +0100
+
+pytest-arraydiff (0.2-2) unstable; urgency=low
+
+ * Add astropy as test dependency
+ * Push Standards-Version to 4.2.1. No changes needed.
+
+ -- Ole Streicher <olebole@debian.org> Wed, 21 Nov 2018 09:38:25 +0100
+
+pytest-arraydiff (0.2-1) unstable; urgency=low
+
+ * Initial release. (Closes: #887024)
+
+ -- Ole Streicher <olebole@debian.org> Tue, 16 Jan 2018 17:06:22 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..8b7c3d8
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+pytest_arraydiff/version.py
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4803851
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,30 @@
+Source: pytest-arraydiff
+Maintainer: Debian Python Team <team+python@tracker.debian.org>
+Uploaders: Ole Streicher <olebole@debian.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper-compat (= 13),
+ dh-python,
+ python3-all,
+ python3-numpy,
+ python3-pytest,
+ python3-setuptools,
+ python3-setuptools-scm
+Standards-Version: 4.6.2
+Vcs-Browser: https://salsa.debian.org/python-team/packages/pytest-arraydiff
+Vcs-Git: https://salsa.debian.org/python-team/packages/pytest-arraydiff.git
+Homepage: https://github.com/astropy/pytest-arraydiff
+
+Package: python3-pytest-arraydiff
+Architecture: all
+Depends: ${misc:Depends},
+ ${python3:Depends}
+Suggests: python3-astropy
+Description: Pytest plugin to generate and compare data arrays
+ The basic idea is that you can write a test that generates a Numpy array
+ (or other related objects depending on the format). You can then either
+ run the tests in a mode to generate reference files from the arrays, or
+ you can run the tests in comparison mode, which will compare the results
+ of the tests to the reference ones within some tolerance. At the moment,
+ the supported file formats for the reference files are plaint text and
+ FITS.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..bf5eb84
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pytest-arraydiff
+Source: https://github.com/astropy/pytest-arraydiff
+
+Files: *
+Copyright: 2016, Thomas P. Robitaille
+ 2018 Ole Streicher <olebole@debian.org>
+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.
+ .
+ This package was adapted from pytest-mpl, which is released under a BSD
+ license.
diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml
new file mode 100644
index 0000000..6b506f8
--- /dev/null
+++ b/debian/gitlab-ci.yml
@@ -0,0 +1,8 @@
+
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
+
+variables:
+ RELEASE: 'unstable'
+ \ No newline at end of file
diff --git a/debian/patches/Use-Python-3-version-of-pytest.patch b/debian/patches/Use-Python-3-version-of-pytest.patch
new file mode 100644
index 0000000..02c6477
--- /dev/null
+++ b/debian/patches/Use-Python-3-version-of-pytest.patch
@@ -0,0 +1,50 @@
+From: Ole Streicher <olebole@debian.org>
+Date: Sun, 14 Jan 2018 16:12:57 +0100
+Subject: Use Python 3 version of pytest
+
+---
+ tests/test_pytest_arraydiff.py | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/tests/test_pytest_arraydiff.py b/tests/test_pytest_arraydiff.py
+index da603fa..7c903ac 100644
+--- a/tests/test_pytest_arraydiff.py
++++ b/tests/test_pytest_arraydiff.py
+@@ -66,11 +66,11 @@ def test_fails():
+ f.write(TEST_FAILING)
+
+ # If we use --arraydiff, it should detect that the file is missing
+- code = subprocess.call('pytest --arraydiff {0}'.format(test_file), shell=True)
++ code = subprocess.call('pytest-3 --arraydiff {0}'.format(test_file), shell=True)
+ assert code != 0
+
+ # If we don't use --arraydiff option, the test should succeed
+- code = subprocess.call('pytest {0}'.format(test_file), shell=True)
++ code = subprocess.call('pytest-3 {0}'.format(test_file), shell=True)
+ assert code == 0
+
+
+@@ -97,12 +97,12 @@ def test_generate(file_format):
+
+ # If we don't generate, the test will fail
+ try:
+- subprocess.check_output(['pytest', '--arraydiff', test_file], timeout=10)
++ subprocess.check_output(['pytest-3', '--arraydiff', test_file], timeout=10)
+ except subprocess.CalledProcessError as grepexc:
+ assert b'File not found for comparison test' in grepexc.output
+
+ # If we do generate, the test should succeed and a new file will appear
+- code = subprocess.call(['pytest', '--arraydiff-generate-path={0}'.format(gen_dir), test_file],
++ code = subprocess.call(['pytest-3', '--arraydiff-generate-path={0}'.format(gen_dir), test_file],
+ timeout=10)
+ assert code == 0
+ assert os.path.exists(os.path.join(gen_dir, 'test_gen.' + ('fits' if file_format == 'fits' else 'txt')))
+@@ -130,7 +130,7 @@ def test_default_format(file_format):
+ gen_dir = os.path.join(tmpdir, 'spam', 'egg')
+
+ # If we do generate, the test should succeed and a new file will appear
+- code = subprocess.call('pytest -s --arraydiff-default-format={0}'
++ code = subprocess.call('pytest-3 -s --arraydiff-default-format={0}'
+ ' --arraydiff-generate-path={1} {2}'.format(file_format, gen_dir, test_file), shell=True)
+ assert code == 0
+ assert os.path.exists(os.path.join(gen_dir, 'test_default.' + ('fits' if file_format == 'fits' else 'txt')))
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b895c23
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Use-Python-3-version-of-pytest.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..06f201d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+ # pass
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..bc9cbf4
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Test-Command: pytest-3
+Depends: @, python3-astropy
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..b9b8cea
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,4 @@
+Bug-Database: https://github.com/astrofrog/pytest-arraydiff/issues
+Bug-Submit: https://github.com/astrofrog/pytest-arraydiff/issues/new
+Repository: https://github.com/astrofrog/pytest-arraydiff.git
+Repository-Browse: https://github.com/astrofrog/pytest-arraydiff
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..6fbc03e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/pytest-arraydiff/pytest-arraydiff-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))