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:
parent
e32d3fa8f8
commit
deb5ea48c7
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:91a5f81ff9e2038d363f6d49f4ec3c1b9726cc989ae8e3f227689a3793aa51fc
|
|
||||||
size 13169
|
|
@ -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
|
Tue Aug 14 20:03:23 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-doctestplus
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pytest-doctestplus
|
Name: python-pytest-doctestplus%{psuffix}
|
||||||
Version: 0.1.3
|
Version: 0.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
License: BSD-3-Clause
|
|
||||||
Summary: Pytest plugin with advanced doctest features
|
Summary: Pytest plugin with advanced doctest features
|
||||||
Url: https://github.com/astropy/pytest-doctestplus
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest-doctestplus-%{version}.tar.gz
|
URL: https://github.com/astropy/pytest-doctestplus
|
||||||
BuildRequires: python-rpm-macros
|
Source: https://github.com/astropy/pytest-doctestplus/archive/v%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-numpy >= 1.10
|
Requires: python-numpy >= 1.10
|
||||||
Requires: python-pytest >= 2.8.0
|
Requires: python-pytest >= 3.0
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
BuildArch: noarch
|
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
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -42,17 +55,28 @@ advanced doctest support and enables the testing of reStructuredText
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytest-doctestplus-%{version}
|
%setup -q -n pytest-doctestplus-%{version}
|
||||||
|
# do not change the pytest behaviour for us
|
||||||
|
rm -f setup.cfg
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%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}
|
%files %{python_files}
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
3
v0.2.0.tar.gz
Normal file
3
v0.2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e6f9bfa00326dacf69e78df34544650432ab3049ad71291c42f29d90fdc3e5f6
|
||||||
|
size 14866
|
Loading…
x
Reference in New Issue
Block a user