Remove Python 2 subpackages (#1737399)

epel9
Scott Talbert 6 years ago
parent 3cfdfe7743
commit 2ec1fe80de

@ -14,7 +14,7 @@
Name: python-%{pypi_name}
Version: 1.29.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: py.test plugin for distributed testing and loop-on-failing modes
License: MIT
@ -22,34 +22,17 @@ URL: https://github.com/pytest-dev/pytest-xdist
Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python3-devel
BuildRequires: python2-execnet
BuildRequires: python3-execnet
BuildRequires: python3-filelock
BuildRequires: python2-pytest
BuildRequires: python3-pytest
BuildRequires: python2-pytest-forked
BuildRequires: python3-pytest-forked
BuildRequires: python2-py
BuildRequires: python3-py
BuildRequires: python2-setuptools_scm
BuildRequires: python3-setuptools_scm
%description
%{desc}
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
Requires: python2-execnet
Requires: python2-pytest
Requires: python2-pytest-forked
Requires: python2-py
%description -n python2-%{pypi_name}
%{desc}
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
@ -65,24 +48,15 @@ Requires: python3-py
%autosetup -n %{pypi_name}-%{version}
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
PYTHONPATH=%{buildroot}%{python2_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python2_version} testing -k "not TestLocking"
PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python3_version} testing
%files -n python2-%{pypi_name}
%doc OVERVIEW.md README.rst
%license LICENSE
%{python2_sitelib}/pytest_xdist*
%{python2_sitelib}/xdist/
%files -n python3-%{pypi_name}
%doc OVERVIEW.md README.rst
%license LICENSE
@ -90,6 +64,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{py
%{python3_sitelib}/xdist/
%changelog
* Thu Aug 08 2019 Scott Talbert <swt@techie.net> - 1.29.0-3
- Remove Python 2 subpackages (#1737399)
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.29.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save