From deb5ea48c7dd2a31467aa3bd76f328c7204694f743584bc2cc5ab4a77d54b4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Feb 2019 12:34:19 +0000 Subject: [PATCH] - Update to 0.2.0: * Add doctest-plus-atol and doctest-plus-rtol options for setting the numerical tolerance. [#21] * Update behavior of --doctest-modules option when plugin is installed. [#26] - Switch to github tarball to obtain tests - Enable tests using _multibuild OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-doctestplus?expand=0&rev=5 --- _multibuild | 3 ++ pytest-doctestplus-0.1.3.tar.gz | 3 -- python-pytest-doctestplus.changes | 9 ++++++ python-pytest-doctestplus.spec | 46 +++++++++++++++++++++++-------- v0.2.0.tar.gz | 3 ++ 5 files changed, 50 insertions(+), 14 deletions(-) create mode 100644 _multibuild delete mode 100644 pytest-doctestplus-0.1.3.tar.gz create mode 100644 v0.2.0.tar.gz diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/pytest-doctestplus-0.1.3.tar.gz b/pytest-doctestplus-0.1.3.tar.gz deleted file mode 100644 index 6661791..0000000 --- a/pytest-doctestplus-0.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:91a5f81ff9e2038d363f6d49f4ec3c1b9726cc989ae8e3f227689a3793aa51fc -size 13169 diff --git a/python-pytest-doctestplus.changes b/python-pytest-doctestplus.changes index a582f8b..f0213ab 100644 --- a/python-pytest-doctestplus.changes +++ b/python-pytest-doctestplus.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Feb 14 12:22:53 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.0: + * Add doctest-plus-atol and doctest-plus-rtol options for setting the numerical tolerance. [#21] + * Update behavior of --doctest-modules option when plugin is installed. [#26] +- Switch to github tarball to obtain tests +- Enable tests using _multibuild + ------------------------------------------------------------------- Tue Aug 14 20:03:23 UTC 2018 - toddrme2178@gmail.com diff --git a/python-pytest-doctestplus.spec b/python-pytest-doctestplus.spec index 4ea53f2..0bff9b0 100644 --- a/python-pytest-doctestplus.spec +++ b/python-pytest-doctestplus.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-doctestplus # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,27 +12,40 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-pytest-doctestplus -Version: 0.1.3 +Name: python-pytest-doctestplus%{psuffix} +Version: 0.2.0 Release: 0 -License: BSD-3-Clause Summary: Pytest plugin with advanced doctest features -Url: https://github.com/astropy/pytest-doctestplus +License: BSD-3-Clause Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest-doctestplus-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} +URL: https://github.com/astropy/pytest-doctestplus +Source: https://github.com/astropy/pytest-doctestplus/archive/v%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-numpy >= 1.10 -Requires: python-pytest >= 2.8.0 +Requires: python-pytest >= 3.0 Requires: python-six BuildArch: noarch - +%if %{with test} +BuildRequires: %{python_module numpy >= 1.10} +BuildRequires: %{python_module pytest >= 3.0} +BuildRequires: %{python_module pytest-doctestplus} +BuildRequires: %{python_module six} +%endif %python_subpackages %description @@ -42,17 +55,28 @@ advanced doctest support and enables the testing of reStructuredText %prep %setup -q -n pytest-doctestplus-%{version} +# do not change the pytest behaviour for us +rm -f setup.cfg %build %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif +%if %{with test} +%check +%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} tests/ --doctest-plus --doctest-rst +%endif + +%if !%{with test} %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE.rst %{python_sitelib}/* +%endif %changelog diff --git a/v0.2.0.tar.gz b/v0.2.0.tar.gz new file mode 100644 index 0000000..c9718a4 --- /dev/null +++ b/v0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6f9bfa00326dacf69e78df34544650432ab3049ad71291c42f29d90fdc3e5f6 +size 14866