diff --git a/add-missing-xfail-version.patch b/add-missing-xfail-version.patch new file mode 100644 index 0000000..9c92aea --- /dev/null +++ b/add-missing-xfail-version.patch @@ -0,0 +1,22 @@ +From 23eb3de76bc4581dfc8261b07a8a55cc03fea45b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= +Date: Mon, 16 Dec 2024 19:05:07 -0800 +Subject: [PATCH] TST: one more version to xfail + +--- + tests/test_doctestplus.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_doctestplus.py b/tests/test_doctestplus.py +index a88ca7b..fb0ac37 100644 +--- a/tests/test_doctestplus.py ++++ b/tests/test_doctestplus.py +@@ -1142,7 +1142,7 @@ def f(): + + + @pytest.mark.xfail( +- python_version() in ('3.11.9', '3.11.10', '3.12.3'), ++ python_version() in ('3.11.9', '3.11.10', '3.11.11', '3.12.3'), + reason='broken by https://github.com/python/cpython/pull/115440') + def test_ufunc(testdir): + pytest.importorskip('numpy') diff --git a/pytest-doctestplus-1.2.1.tar.gz b/pytest-doctestplus-1.2.1.tar.gz deleted file mode 100644 index 17cb3ce..0000000 --- a/pytest-doctestplus-1.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2472a8a2c8cea34d2f65f6499543faeb748eecb59c597852fd98839b47307679 -size 45896 diff --git a/pytest_doctestplus-1.3.0.tar.gz b/pytest_doctestplus-1.3.0.tar.gz new file mode 100644 index 0000000..f52efd6 --- /dev/null +++ b/pytest_doctestplus-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:709ad23ea98da9a835ace0a4365c85371c376e000f2860f30de6df3a6f00728a +size 46843 diff --git a/python-pytest-doctestplus.changes b/python-pytest-doctestplus.changes index d510eec..a6d5d61 100644 --- a/python-pytest-doctestplus.changes +++ b/python-pytest-doctestplus.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Thu Dec 19 10:11:47 UTC 2024 - Nico Krapp + +- Update to 1.3.0: + * add tests for ufuncs without docstrings, wrapped or not by @lpsinger in #248 + * Update skips for broken test by @lpsinger in #249 + * Fix multiline code in generate/update diff by @seberg in #253 + * Remove accidental debug print from new tests by @seberg in #254 + * refactored out runtime dependency on setuptools by @neutrinoceros in #258 + * adding python3.13 to CI and fix any incompatibilities by @bsipocz in #260 + * add one more python release to xfail list by @bsipocz in #266 + * Use hash for Action workflow versions and update if needed by @pllim in #267 + * Don't assume config exists. by @Carreau in #271 +- Add add-missing-xfail-version.patch to fix broken test + ------------------------------------------------------------------- Sat Mar 16 12:59:47 UTC 2024 - Dirk Müller diff --git a/python-pytest-doctestplus.spec b/python-pytest-doctestplus.spec index e2df93c..9033642 100644 --- a/python-pytest-doctestplus.spec +++ b/python-pytest-doctestplus.spec @@ -27,12 +27,14 @@ %{?sle15_python_module_pythons} Name: python-pytest-doctestplus%{psuffix} -Version: 1.2.1 +Version: 1.3.0 Release: 0 Summary: Pytest plugin with advanced doctest features License: BSD-3-Clause URL: https://github.com/scientific-python/pytest-doctestplus -Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest-doctestplus-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest_doctestplus-%{version}.tar.gz +# PATCH-FIX-UPSTREAM add-missing-xfail-version.patch (gh#23eb3de) +Patch0: add-missing-xfail-version.patch BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} @@ -41,7 +43,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-packaging >= 17.0 Requires: python-pytest >= 4.6 -Requires: python-setuptools >= 30.3.0 %if %{with test} BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module numpy-devel} @@ -61,7 +62,7 @@ advanced doctest support and enables the testing of various text files, such as reStructuredText (".rst"), markdown (".md"), and TeX (".tex"). %prep -%setup -q -n pytest-doctestplus-%{version} +%autosetup -p1 -n pytest_doctestplus-%{version} %build %pyproject_wheel