!1 package init

Merge pull request !1 from 快乐的一只小青蛙/br_pi
This commit is contained in:
openeuler-ci-bot 2020-03-02 10:07:30 +08:00 committed by Gitee
commit d81321f12b
2 changed files with 62 additions and 0 deletions

BIN
mccabe-0.6.1.tar.gz Normal file

Binary file not shown.

62
python-mccabe.spec Normal file
View File

@ -0,0 +1,62 @@
Name: python-mccabe
Version: 0.6.1
Release: 10
Summary: McCabe complexity checker for Python
License: MIT
URL: http://pypi.python.org/pypi/mccabe
Source0: https://files.pythonhosted.org/packages/source/m/mccabe/mccabe-%{version}.tar.gz
BuildArch: noarch
%description
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
%{?python_provide:%python_provide python3-mccabe}
%description -n python3-mccabe
Ned's script to check McCabe complexity. This module provides a plugin
for flake8, the Python code checker.
%prep
%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*
%{python3_sitelib}/mccabe-%{version}-*
%{python3_sitelib}/__pycache__/mccabe.*
%changelog
* Tue Feb 25 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.6.1-10
- Package init