From fda2f1761aa0a5935d5a075f527c854a1ca81665e0331ba6d866b144adf86a5e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 31 Dec 2023 13:38:28 +0000 Subject: [PATCH] - update to 1.1.0: * Added --doctest-plus-generate-diff to update documentation based on actual output. * Fix module level __doctest_requires__. * Versions of Python <3.8 are no longer supported. * Fix erroneous attempt to import __main__.py by skipping it. * Respect pytest --import-mode. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-doctestplus?expand=0&rev=35 --- pytest-doctestplus-1.0.0.tar.gz | 3 --- pytest-doctestplus-1.1.0.tar.gz | 3 +++ python-pytest-doctestplus.changes | 11 +++++++++++ python-pytest-doctestplus.spec | 17 +++++++++-------- 4 files changed, 23 insertions(+), 11 deletions(-) delete mode 100644 pytest-doctestplus-1.0.0.tar.gz create mode 100644 pytest-doctestplus-1.1.0.tar.gz diff --git a/pytest-doctestplus-1.0.0.tar.gz b/pytest-doctestplus-1.0.0.tar.gz deleted file mode 100644 index 4db9b3f..0000000 --- a/pytest-doctestplus-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f650440dcaede13ed6d7da73bfb4ac585d40a80444ba3542d3e6eecdb275d49f -size 38960 diff --git a/pytest-doctestplus-1.1.0.tar.gz b/pytest-doctestplus-1.1.0.tar.gz new file mode 100644 index 0000000..cb498f7 --- /dev/null +++ b/pytest-doctestplus-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea0a710f1b6a3571ed971fb6d6e5db05a2ae6b91b0fbcafe30fb5ea40e9987c4 +size 45166 diff --git a/python-pytest-doctestplus.changes b/python-pytest-doctestplus.changes index 862eabc..44ceb3c 100644 --- a/python-pytest-doctestplus.changes +++ b/python-pytest-doctestplus.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sun Dec 31 13:32:06 UTC 2023 - Dirk Müller + +- update to 1.1.0: + * Added --doctest-plus-generate-diff to update documentation + based on actual output. + * Fix module level __doctest_requires__. + * Versions of Python <3.8 are no longer supported. + * Fix erroneous attempt to import __main__.py by skipping it. + * Respect pytest --import-mode. + ------------------------------------------------------------------- Wed Oct 4 12:48:36 UTC 2023 - Ben Greiner diff --git a/python-pytest-doctestplus.spec b/python-pytest-doctestplus.spec index 7d161ad..f1d4ca1 100644 --- a/python-pytest-doctestplus.spec +++ b/python-pytest-doctestplus.spec @@ -27,16 +27,16 @@ %{?sle15_python_module_pythons} Name: python-pytest-doctestplus%{psuffix} -Version: 1.0.0 +Version: 1.1.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 -BuildRequires: %{python_module base >= 3.7} -BuildRequires: %{python_module packaging >= 17.0} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-packaging >= 17.0 @@ -49,6 +49,7 @@ BuildRequires: %{python_module numpy} BuildRequires: %{python_module pip >= 19.3.1} BuildRequires: %{python_module pytest-doctestplus = %{version}} BuildRequires: %{python_module pytest-remotedata >= 0.3.2} +BuildRequires: git-core %else BuildArch: noarch %endif @@ -63,11 +64,11 @@ as reStructuredText (".rst"), markdown (".md"), and TeX (".tex"). %setup -q -n pytest-doctestplus-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -75,7 +76,7 @@ as reStructuredText (".rst"), markdown (".md"), and TeX (".tex"). %check export LANG=en_US.UTF8 export PY_IGNORE_IMPORTMISMATCH=1 -%pytest tests/ --doctest-plus --doctest-rst -k "not test_remote_data_url" +%pytest tests/ --doctest-plus --doctest-rst -k "not test_remote_data_url and not test_import_mode" %endif %if !%{with test} @@ -83,7 +84,7 @@ export PY_IGNORE_IMPORTMISMATCH=1 %doc CHANGES.rst README.rst %license LICENSE.rst %{python_sitelib}/pytest_doctestplus -%{python_sitelib}/pytest_doctestplus-%{version}*-info +%{python_sitelib}/pytest_doctestplus-%{version}.dist-info %endif %changelog