Accepting request 687153 from home:jayvdb:coala:test-rig

- Initial spec for v1.4.0

OBS-URL: https://build.opensuse.org/request/show/687153
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-fixture-config?expand=0&rev=3
This commit is contained in:
Matej Cepl 2019-03-21 09:52:26 +00:00 committed by Git OBS Bridge
parent 88c8e7d723
commit 7f5246594f
2 changed files with 16 additions and 14 deletions

View File

@ -1,4 +1,4 @@
-------------------------------------------------------------------
Wed Feb 20 11:40:45 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
Thu Mar 21 01:34:50 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Intial commit, needed by pytest-virtualenv
- Initial spec for v1.4.0

View File

@ -12,34 +12,36 @@
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-fixture-config
Version: 1.4.0
Release: 0
License: MIT
Summary: Fixture configuration utils for pytest
Url: https://github.com/manahl/pytest-plugins
License: MIT
Group: Development/Languages/Python
URL: https://github.com/manahl/pytest-plugins
Source: https://files.pythonhosted.org/packages/source/p/pytest-fixture-config/pytest-fixture-config-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools-git}
Requires: python-pytest
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest < 4.0.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest < 4.0.0}
BuildRequires: %{python_module six}
# /SECTION
%python_subpackages
%description
Fixture configuration utilities for pytest
Fixture configuration utils for py.test
%prep
%setup -q -n pytest-fixture-config-%{version}
sed -i -e 's:pytest<4.0.0:pytest:g' setup.py
%build
%python_build
@ -49,10 +51,10 @@ sed -i -e 's:pytest<4.0.0:pytest:g' setup.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%python_exec setup.py test
%files %{python_files}
%doc README.md CHANGES.md
%doc CHANGES.md README.md
%license LICENSE
%{python_sitelib}/*