Subpackage python2-mock has been removed
This commit is contained in:
parent
88fc1fefc9
commit
7fabc8fd34
@ -1,11 +1,5 @@
|
|||||||
%if 0%{?fedora} || 0%{?rhel} > 6
|
|
||||||
# keeping python3 subpackage as stdlib mock lives in a different namespace
|
# keeping python3 subpackage as stdlib mock lives in a different namespace
|
||||||
# Some people may have not fixed their imports
|
# 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
|
# When bootstrapping Python 3, mock is built before pytest
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
@ -14,7 +8,7 @@
|
|||||||
|
|
||||||
Name: python-mock
|
Name: python-mock
|
||||||
Version: 3.0.5
|
Version: 3.0.5
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: A Python Mocking and Patching Library for Testing
|
Summary: A Python Mocking and Patching Library for Testing
|
||||||
|
|
||||||
License: BSD
|
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
|
Source0: https://pypi.python.org/packages/source/m/%{mod_name}/%{mod_name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
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}-devel
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python%{python3_pkgversion}-pytest
|
BuildRequires: python%{python3_pkgversion}-pytest
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%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
|
arguments they were called with. You can also specify return values and set
|
||||||
needed attributes in the normal way.
|
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
|
%package -n python%{python3_pkgversion}-mock
|
||||||
Summary: A Python Mocking and Patching Library for Testing
|
Summary: A Python Mocking and Patching Library for Testing
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{mod_name}}
|
%{?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
|
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
|
arguments they were called with. You can also specify return values and set
|
||||||
needed attributes in the normal way.
|
needed attributes in the normal way.
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -77,43 +49,30 @@ needed attributes in the normal way.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{py2_build}
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%{py3_build}
|
%{py3_build}
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?with_python3}
|
|
||||||
%{py3_install}
|
%{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
|
%files -n python%{python3_pkgversion}-mock
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/*.egg-info
|
%{python3_sitelib}/*.egg-info/
|
||||||
%{python3_sitelib}/%{mod_name}
|
%{python3_sitelib}/%{mod_name}
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 28 2019 Miro Hrončok <mhroncok@redhat.com> - 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 <pviktori@redhat.com> - 3.0.5-6
|
* Fri Nov 01 2019 Petr Viktorin <pviktori@redhat.com> - 3.0.5-6
|
||||||
- Remove unused dependencies on pbr
|
- Remove unused dependencies on pbr
|
||||||
The current version of Mock does not use pbr.
|
The current version of Mock does not use pbr.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user