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}/*