From a55ac4739f223d87c376b34fc40f69eb68e65211 Mon Sep 17 00:00:00 2001 From: Ole Streicher Date: Mon, 27 Nov 2023 12:19:32 +0100 Subject: Import pytest-arraydiff_0.6.1-1.debian.tar.xz [dgit import tarball pytest-arraydiff 0.6.1-1 pytest-arraydiff_0.6.1-1.debian.tar.xz] --- changelog | 83 ++++++++++++++++++++++++++++ clean | 1 + control | 30 ++++++++++ copyright | 31 +++++++++++ gitlab-ci.yml | 8 +++ patches/Use-Python-3-version-of-pytest.patch | 50 +++++++++++++++++ patches/series | 1 + rules | 8 +++ source/format | 1 + tests/control | 2 + upstream/metadata | 4 ++ watch | 3 + 12 files changed, 222 insertions(+) create mode 100644 changelog create mode 100644 clean create mode 100644 control create mode 100644 copyright create mode 100644 gitlab-ci.yml create mode 100644 patches/Use-Python-3-version-of-pytest.patch create mode 100644 patches/series create mode 100755 rules create mode 100644 source/format create mode 100644 tests/control create mode 100644 upstream/metadata create mode 100644 watch diff --git a/changelog b/changelog new file mode 100644 index 0000000..d6a1a11 --- /dev/null +++ b/changelog @@ -0,0 +1,83 @@ +pytest-arraydiff (0.6.1-1) unstable; urgency=medium + + * New upstream version 0.6.1 + * Rediff patch + + -- Ole Streicher 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 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 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 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 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 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 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 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 Wed, 21 Nov 2018 09:38:25 +0100 + +pytest-arraydiff (0.2-1) unstable; urgency=low + + * Initial release. (Closes: #887024) + + -- Ole Streicher Tue, 16 Jan 2018 17:06:22 +0100 diff --git a/clean b/clean new file mode 100644 index 0000000..8b7c3d8 --- /dev/null +++ b/clean @@ -0,0 +1 @@ +pytest_arraydiff/version.py diff --git a/control b/control new file mode 100644 index 0000000..4803851 --- /dev/null +++ b/control @@ -0,0 +1,30 @@ +Source: pytest-arraydiff +Maintainer: Debian Python Team +Uploaders: Ole Streicher +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/copyright b/copyright new file mode 100644 index 0000000..bf5eb84 --- /dev/null +++ b/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 +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/gitlab-ci.yml b/gitlab-ci.yml new file mode 100644 index 0000000..6b506f8 --- /dev/null +++ b/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/patches/Use-Python-3-version-of-pytest.patch b/patches/Use-Python-3-version-of-pytest.patch new file mode 100644 index 0000000..02c6477 --- /dev/null +++ b/patches/Use-Python-3-version-of-pytest.patch @@ -0,0 +1,50 @@ +From: Ole Streicher +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/patches/series b/patches/series new file mode 100644 index 0000000..b895c23 --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +Use-Python-3-version-of-pytest.patch diff --git a/rules b/rules new file mode 100755 index 0000000..06f201d --- /dev/null +++ b/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_auto_test: + # pass diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/tests/control b/tests/control new file mode 100644 index 0000000..bc9cbf4 --- /dev/null +++ b/tests/control @@ -0,0 +1,2 @@ +Test-Command: pytest-3 +Depends: @, python3-astropy diff --git a/upstream/metadata b/upstream/metadata new file mode 100644 index 0000000..b9b8cea --- /dev/null +++ b/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/watch b/watch new file mode 100644 index 0000000..6fbc03e --- /dev/null +++ b/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))) -- cgit v1.2.3