From 7fabc8fd340bc3231db89d3a6a88b85042a4777f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 28 Nov 2019 11:04:58 +0100 Subject: [PATCH] Subpackage python2-mock has been removed --- python-mock.spec | 53 ++++++------------------------------------------ 1 file changed, 6 insertions(+), 47 deletions(-) diff --git a/python-mock.spec b/python-mock.spec index 5417556..9bed1f2 100644 --- a/python-mock.spec +++ b/python-mock.spec @@ -1,11 +1,5 @@ -%if 0%{?fedora} || 0%{?rhel} > 6 # keeping python3 subpackage as stdlib mock lives in a different namespace # Some people may have not fixed their imports -%global with_python3 1 -%endif - -# Not yet in Fedora buildroot -%{!?python3_pkgversion:%global python3_pkgversion 3} # When bootstrapping Python 3, mock is built before pytest %bcond_without tests @@ -14,7 +8,7 @@ Name: python-mock Version: 3.0.5 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A Python Mocking and Patching Library for Testing License: BSD @@ -22,20 +16,12 @@ URL: http://www.voidspace.org.uk/python/%{mod_name}/ Source0: https://pypi.python.org/packages/source/m/%{mod_name}/%{mod_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-funcsigs -%if %{with tests} -BuildRequires: python2-pytest -%endif -%if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %if %{with tests} BuildRequires: python%{python3_pkgversion}-pytest %endif -%endif %description @@ -45,19 +31,6 @@ action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes in the normal way. -%package -n python2-mock -Summary: A Python Mocking and Patching Library for Testing -%{?python_provide:%python_provide python2-%{mod_name}} -Requires: python2-funcsigs -Requires: python2-six >= 1.9.0 - -%description -n python2-mock -Mock is a Python module that provides a core mock class. It removes the need -to create a host of stubs throughout your test suite. After performing an -action, you can make assertions about which methods / attributes were used and -arguments they were called with. You can also specify return values and set - -%if 0%{?with_python3} %package -n python%{python3_pkgversion}-mock Summary: A Python Mocking and Patching Library for Testing %{?python_provide:%python_provide python%{python3_pkgversion}-%{mod_name}} @@ -69,7 +42,6 @@ to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes in the normal way. -%endif %prep @@ -77,43 +49,30 @@ needed attributes in the normal way. %build -%{py2_build} -%if 0%{?with_python3} %{py3_build} -%endif %if %{with tests} %check -%{__python2} setup.py test -%if 0%{?with_python3} %{__python3} setup.py test %endif -%endif %install -%if 0%{?with_python3} %{py3_install} -%endif -%{py2_install} -%files -n python2-mock -%license LICENSE.txt -%doc README.rst -%{python2_sitelib}/*.egg-info -%{python2_sitelib}/%{mod_name} - -%if 0%{?with_python3} %files -n python%{python3_pkgversion}-mock %license LICENSE.txt %doc README.rst -%{python3_sitelib}/*.egg-info +%{python3_sitelib}/*.egg-info/ %{python3_sitelib}/%{mod_name} -%endif %changelog +* Thu Nov 28 2019 Miro HronĨok - 3.0.5-7 +- Subpackage python2-mock has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Fri Nov 01 2019 Petr Viktorin - 3.0.5-6 - Remove unused dependencies on pbr The current version of Mock does not use pbr.