Subpackage python2-pytest-mock has been removed

This commit is contained in:
Miro Hrončok 2019-10-01 09:50:51 +02:00
parent b456c65c9f
commit 4962974b7a

View File

@ -7,7 +7,7 @@ to worry about undoing patches at the end of a test.
Name: python-%{pypi_name}
Version: 1.10.4
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Thin-wrapper around the mock package for easier use with py.test
License: MIT
@ -23,21 +23,6 @@ Patch1: fix-mock-python-3.8.patch
%{desc}
%package -n python2-%{pypi_name}
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-pytest >= 2.7
BuildRequires: python2-mock
BuildRequires: python2-setuptools_scm
Requires: python2-pytest >= 2.7
Requires: python2-mock
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name}
%{desc}
%package -n python3-%{pypi_name}
Summary: %{summary}
BuildArch: noarch
@ -62,28 +47,17 @@ sed -i 's/\r$//' README.rst
%build
%py2_build
%py3_build
%install
%py3_install
%py2_install
%check
PYTHONPATH="$(pwd)" py.test-%{python2_version} test_pytest_mock.py
PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py
%files -n python2-%{pypi_name}
%doc README.rst
%license LICENSE
%{python2_sitelib}/%{file_name}-%{version}-py%{python2_version}.egg-info/
%{python2_sitelib}/%{file_name}.py*
%{python2_sitelib}/_pytest_mock_version.py*
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
@ -95,6 +69,10 @@ PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py
%changelog
* Tue Oct 01 2019 Miro Hrončok <mhroncok@redhat.com> - 1.10.4-6
- Subpackage python2-pytest-mock has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.10.4-5
- Rebuilt for Python 3.8