%global modulename pytest-runner %global _modulename pytest_runner Name: python-%{modulename} Version: 3.0 Release: 1%{?dist} Summary: Invoke py.test as distutils command with dependency resolution License: MIT URL: https://pypi.python.org/pypi/%{modulename} # setuptools-scm requires a pypi tarball and doesn't like github tarball Source0: https://files.pythonhosted.org/packages/source/p/%{modulename}/%{modulename}-%{version}.tar.gz # setuptools_scm is too old in EPEL, and we don't need it anyway Patch0: %{name}-noscm.patch BuildArch: noarch %global _description \ Setup scripts can use pytest-runner to add setup.py test support for pytest runner. %description %{_description} # Python 2 pytest is too old on EL7 %package -n python2-%{modulename} Summary: %{summary} %{?python_provide:%python_provide python2-%{modulename}} BuildRequires: python2-devel BuildRequires: python-setuptools %if 0%{?fedora} BuildRequires: python2-pytest Requires: python2-pytest %else BuildRequires: pytest Requires: pytest %endif %description -n python2-%{modulename} %{_description} Python 2 version. %package -n python%{python3_pkgversion}-%{modulename} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{modulename}} Requires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-setuptools_scm BuildRequires: python%{python3_pkgversion}-pytest %description -n python%{python3_pkgversion}-%{modulename} %{_description} Python %{python3_version} version. %prep %setup -q -n %{modulename}-%{version} %patch0 -p1 %build # Python 2 pytest is too old on EL7 %py2_build %py3_build %install %py2_install %py3_install %check # test require pytest 2.8 %if 0%{?fedora} %{__python2} setup.py test %endif %{__python3} setup.py test %files -n python2-%{modulename} %doc README.rst %license LICENSE %{python2_sitelib}/ptr.py* %{python2_sitelib}/%{_modulename}-%{version}-py%{python2_version}.egg-info/ %files -n python%{python3_pkgversion}-%{modulename} %doc README.rst %license LICENSE %{python3_sitelib}/ptr.py %{python3_sitelib}/%{_modulename}-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/__pycache__/ptr.* %changelog * Thu Nov 02 2017 Vadim Rutkovsky - 3.0-1 - Update to 3.0 (#1508216) * Tue Oct 31 2017 Sayan Chowdhury - 2.12.1-2 - Fix the patch to fix version and remove occurences of setuptools_scm in EPEL * Fri Oct 13 2017 Vadim Rutkovsky - 2.12.1-1 - Update to 2.12.1 (#1487972) * Thu Mar 16 2017 Orion Poplawski - 2.9-5 - python2-setuptools_scm is too old in EPEL, and we don't need it anyways, so don't use it * Thu Mar 9 2017 Orion Poplawski - 2.9-4 - Build python 3 version for EPEL * Sat Feb 11 2017 Fedora Release Engineering - 2.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Dec 13 2016 Stratakis Charalampos - 2.9-2 - Rebuild for Python 3.6 * Sat Aug 06 2016 Vadim Rutkovsky - 2.9-1 - Initial package