From 7f5246594f0cbf16279a581562dbc02488804ae0e36f6ae6fe80f1df3898e158 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 21 Mar 2019 09:52:26 +0000 Subject: [PATCH] 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 --- python-pytest-fixture-config.changes | 4 ++-- python-pytest-fixture-config.spec | 26 ++++++++++++++------------ 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/python-pytest-fixture-config.changes b/python-pytest-fixture-config.changes index 9f4d838..618b608 100644 --- a/python-pytest-fixture-config.changes +++ b/python-pytest-fixture-config.changes @@ -1,4 +1,4 @@ ------------------------------------------------------------------- -Wed Feb 20 11:40:45 UTC 2019 - Tomáš Chvátal +Thu Mar 21 01:34:50 AM UTC 2019 - John Vandenberg -- Intial commit, needed by pytest-virtualenv +- Initial spec for v1.4.0 diff --git a/python-pytest-fixture-config.spec b/python-pytest-fixture-config.spec index 6d661ed..0853c6b 100644 --- a/python-pytest-fixture-config.spec +++ b/python-pytest-fixture-config.spec @@ -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}/*