!2 remove python2 of package python-mccabe

From: @wang--ge
Reviewed-by: @myeuler
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2020-10-29 20:07:29 +08:00 committed by Gitee
commit c2bcdc68ac

View File

@ -1,6 +1,6 @@
Name: python-mccabe
Version: 0.6.1
Release: 10
Release: 11
Summary: McCabe complexity checker for Python
License: MIT
URL: http://pypi.python.org/pypi/mccabe
@ -11,16 +11,6 @@ BuildArch: noarch
Ned's script to check McCabe complexity. This module provides a plugin
for flake8, the Python code checker.
%package -n python2-mccabe
Summary: McCabe complexity checker for Python version 2
BuildRequires: python2-devel python2-setuptools python2-pytest python2-pytest-runner
%{?python_provide:%python_provide python2-mccabe}
%description -n python2-mccabe
Ned's script to check McCabe complexity. This module provides a plugin
for flake8, the Python code checker.
%package -n python3-mccabe
Summary: McCabe complexity checker for Python version 3
BuildRequires: python3-devel python3-setuptools python3-pytest python3-pytest-runner
@ -35,22 +25,14 @@ for flake8, the Python code checker.
%autosetup -n mccabe-%{version} -p1
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} -m pytest -v
%{__python3} -m pytest -v
%files -n python2-mccabe
%doc README.rst LICENSE
%{python2_sitelib}/mccabe.py*
%{python2_sitelib}/mccabe-%{version}*
%files -n python3-mccabe
%doc README.rst LICENSE
%{python3_sitelib}/mccabe.py*
@ -58,5 +40,8 @@ for flake8, the Python code checker.
%{python3_sitelib}/__pycache__/mccabe.*
%changelog
* Wed Oct 21 2020 Ge Wang <wangge20@huawei.com> - 0.6.1-11
- remove python2
* Tue Feb 25 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.6.1-10
- Package init