remove python2

This commit is contained in:
root 2020-10-29 11:54:42 +08:00
parent d81321f12b
commit 782323bfd6

View File

@ -1,6 +1,6 @@
Name: python-mccabe Name: python-mccabe
Version: 0.6.1 Version: 0.6.1
Release: 10 Release: 11
Summary: McCabe complexity checker for Python Summary: McCabe complexity checker for Python
License: MIT License: MIT
URL: http://pypi.python.org/pypi/mccabe 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 Ned's script to check McCabe complexity. This module provides a plugin
for flake8, the Python code checker. 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 %package -n python3-mccabe
Summary: McCabe complexity checker for Python version 3 Summary: McCabe complexity checker for Python version 3
BuildRequires: python3-devel python3-setuptools python3-pytest python3-pytest-runner 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 %autosetup -n mccabe-%{version} -p1
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
%{__python2} -m pytest -v
%{__python3} -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 %files -n python3-mccabe
%doc README.rst LICENSE %doc README.rst LICENSE
%{python3_sitelib}/mccabe.py* %{python3_sitelib}/mccabe.py*
@ -58,5 +40,8 @@ for flake8, the Python code checker.
%{python3_sitelib}/__pycache__/mccabe.* %{python3_sitelib}/__pycache__/mccabe.*
%changelog %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 * Tue Feb 25 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.6.1-10
- Package init - Package init