diff --git a/mccabe-0.6.1.tar.gz b/mccabe-0.6.1.tar.gz new file mode 100644 index 0000000..da2afaf Binary files /dev/null and b/mccabe-0.6.1.tar.gz differ diff --git a/python-mccabe.spec b/python-mccabe.spec new file mode 100644 index 0000000..e8b4197 --- /dev/null +++ b/python-mccabe.spec @@ -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 - 0.6.1-10 +- Package init