Hello community,
here is the log from the commit of package python-pytest-doctestplus for
openSUSE:Factory checked in at 2019-02-15 10:02:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-doctestplus"
Fri Feb 15 10:02:14 2019 rev:2 rq:674958 version:0.2.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes
2018-08-18 00:03:09.918907304 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.28833/python-pytest-doctestplus.changes
2019-02-15 10:02:18.495627563 +0100
@@ -1,0 +2,9 @@
+Thu Feb 14 12:22:53 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- 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
+
+-------------------------------------------------------------------
Old:
----
pytest-doctestplus-0.1.3.tar.gz
New:
----
_multibuild
v0.2.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-doctestplus.spec ++++++
--- /var/tmp/diff_new_pack.rkxrs8/_old 2019-02-15 10:02:18.911627429 +0100
+++ /var/tmp/diff_new_pack.rkxrs8/_new 2019-02-15 10:02:18.911627429 +0100
@@ -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 @@
%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
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>