1
0

- 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
This commit is contained in:
Tomáš Chvátal 2019-02-14 12:34:19 +00:00 committed by Git OBS Bridge
parent e32d3fa8f8
commit deb5ea48c7
5 changed files with 50 additions and 14 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:91a5f81ff9e2038d363f6d49f4ec3c1b9726cc989ae8e3f227689a3793aa51fc
size 13169

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Feb 14 12:22:53 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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

View File

@ -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

3
v0.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e6f9bfa00326dacf69e78df34544650432ab3049ad71291c42f29d90fdc3e5f6
size 14866