Remove python2

This commit is contained in:
jpzhang 2020-08-05 11:54:00 +08:00
parent 4fa208553b
commit 29869c2c16

View File

@ -1,28 +1,18 @@
Name: python-sure Name: python-sure
Version: 1.4.11 Version: 1.4.11
Release: 5 Release: 6
Summary: Utility belt for automated testing in Python Summary: Utility belt for automated testing in Python
License: GPLv3+ License: GPLv3+
URL: https://github.com/gabrielfalcao/sure URL: https://github.com/gabrielfalcao/sure
Source0: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz
BuildRequires: python2-devel python2-mock python2-nose python-setuptools python-six
BuildRequires: python3-devel python3-mock python3-nose python3-setuptools python3-six BuildRequires: python3-devel python3-mock python3-nose python3-setuptools python3-six
Requires: python-six
BuildArch: noarch BuildArch: noarch
%description %description
An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily
inspired in RSpec Expectations and should.js. inspired in RSpec Expectations and should.js.
%package -n python2-sure
Summary: Utility belt for automated testing in Python 2
%{?python_provide:%python_provide python2-sure}
%description -n python2-sure
An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily
inspired in RSpec Expectations and should.js.
%package -n python3-sure %package -n python3-sure
Summary: Utility belt for automated testing in Python 3 Summary: Utility belt for automated testing in Python 3
Requires: python3-six Requires: python3-six
@ -37,27 +27,24 @@ inspired in RSpec Expectations and should.js.
rm -rf sure.egg-info rm -rf sure.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
%{__python2} -m nose --verbosity 2
%{__python3} -m nose --verbosity 2 %{__python3} -m nose --verbosity 2
%files -n python2-sure
%doc COPYING
%{python2_sitelib}/*
%files -n python3-sure %files -n python3-sure
%doc COPYING %doc COPYING
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* Wed Aug 05 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.4.11-6
- Remove python2
* Thu May 21 2020 yanan li <liyanan032@huawei.com> - 1.4.11-5 * Thu May 21 2020 yanan li <liyanan032@huawei.com> - 1.4.11-5
- Modify python-mock and python-nose version - Modify python-mock and python-nose version
* Wed Nov 27 2019 lingsheng <lingsheng@huawei.com> 1.4.11-4 * Wed Nov 27 2019 lingsheng <lingsheng@huawei.com> 1.4.11-4
* Package init * Package init