python-mccabe/python-mccabe.spec

52 lines
1.4 KiB
RPMSpec
Raw Permalink Normal View History

2020-02-26 16:57:13 +08:00
Name: python-mccabe
2023-04-14 16:53:52 +08:00
Version: 0.7.0
Release: 1
2020-02-26 16:57:13 +08:00
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
2023-04-14 16:53:52 +08:00
Patch0001: Fix-handling-missing-hypothesmith-gracefully.patch
2020-02-26 16:57:13 +08:00
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
2023-04-14 16:53:52 +08:00
* Fri Apr 14 2023 wulei <wu_lei@hoperun.com> - 0.7.0-1
- Upgrade package to version 0.7.0
2020-10-29 11:54:42 +08:00
* Wed Oct 21 2020 Ge Wang <wangge20@huawei.com> - 0.6.1-11
- remove python2
2020-02-26 16:57:13 +08:00
* Tue Feb 25 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.6.1-10
- Package init