forked from pool/python-pytest-doctestplus
- 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:
committed by
Git OBS Bridge
parent
e32d3fa8f8
commit
deb5ea48c7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user