!3 update release to 4.0.2

Merge pull request !3 from tianwei/master
This commit is contained in:
openeuler-ci-bot 2020-07-30 15:55:47 +08:00 committed by Gitee
commit e4bf4928f6
3 changed files with 6 additions and 22 deletions

Binary file not shown.

BIN
mock-4.0.2.tar.gz Normal file

Binary file not shown.

View File

@ -6,29 +6,20 @@ arguments they were called with. You can also specify return values and set \
needed attributes in the normal way. \
Name: python-mock
Version: 2.0.0
Release: 11
Version: 4.0.2
Release: 1
Summary: A Python Mocking and Patching Library for Testing
License: BSD
URL: http://www.voidspace.org.uk/python/mock/
Source0: http://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel python2-setuptools python2-funcsigs python2-pbr git python2-unittest2
BuildRequires: python3-devel python3-setuptools python3-funcsigs python3-pbr python3-unittest2
BuildRequires: python3-devel python3-setuptools python3-funcsigs python3-pbr python3-unittest2 python3-pytest
%description
%{_description__}
%package -n python2-mock
Summary: Python2 subpackage for %{name}
%{?python_provide:%python_provide python2-mock}
Requires: python2-funcsigs python2-pbr python2-six >= 1.9.0
%description -n python2-mock
This is the python2 subpackage for %{name}.
%{_description__}
%package -n python3-mock
Summary: Python3 subpackage for %{name}
%{?python_provide:%python_provide python3-mock}
@ -42,27 +33,20 @@ This is the python3 subpackage for %{name}.
%autosetup -n mock-%{version} -p1
%build
%{py2_build}
%{py3_build}
%check
%{__python2} setup.py test
%{__python3} setup.py test ||:
%install
%{py3_install}
%{py2_install}
%files -n python2-mock
%license LICENSE.txt
%doc docs/*
%{python2_sitelib}/{*.egg-info,mock}
%files -n python3-mock
%license LICENSE.txt
%doc docs/*
%{python3_sitelib}/{*.egg-info,mock}
%changelog
* Sat Jul 25 2020 tianwei <tianwei12@huawei.com> - 4.0.2-1
- Package update to 4.0.2
* Thu Oct 17 2019 huzhiyu <huzhiyu1@huawei.com> - 2.0.0-11
- Package init