python-mccabe/python-mccabe.spec
2023-04-14 16:53:52 +08:00

52 lines
1.4 KiB
RPMSpec

Name: python-mccabe
Version: 0.7.0
Release: 1
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
Patch0001: Fix-handling-missing-hypothesmith-gracefully.patch
BuildArch: noarch
%description
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
%py3_build
%install
%py3_install
%check
%{__python3} -m pytest -v
%files -n python3-mccabe
%doc README.rst LICENSE
%{python3_sitelib}/mccabe.py*
%{python3_sitelib}/mccabe-%{version}-*
%{python3_sitelib}/__pycache__/mccabe.*
%changelog
* Fri Apr 14 2023 wulei <wu_lei@hoperun.com> - 0.7.0-1
- Upgrade package to version 0.7.0
* 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