Compare commits
10 Commits
93c5f19fa7
...
2ca0feeaf7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ca0feeaf7 | ||
|
|
38ff16f085 | ||
|
|
775cb6247a | ||
|
|
ed68496e87 | ||
|
|
4adec5eaa1 | ||
|
|
275f5b4df5 | ||
|
|
e7432d011c | ||
|
|
5e2c84e4fe | ||
|
|
8c5660ae5b | ||
|
|
936c6f716b |
BIN
pylint-2.12.2.tar.gz
Normal file
BIN
pylint-2.12.2.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
51
pylint.spec
51
pylint.spec
@ -1,20 +1,22 @@
|
|||||||
Name: pylint
|
Name: pylint
|
||||||
Version: 2.4.4
|
Version: 2.12.2
|
||||||
Release: 2
|
Release: 2
|
||||||
Summary: Analyzes Python code looking for bugs and signs of poor quality
|
Summary: Analyzes Python code looking for bugs and signs of poor quality
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.pylint.org/
|
URL: http://www.pylint.org/
|
||||||
Source0: %{pypi_source}
|
Source0: https://files.pythonhosted.org/packages/9d/6b/732db4470fb03760af3aada21189c95676c0ec514c3b044b42929e018224/pylint-2.12.2.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-toml
|
||||||
# For tests
|
# For tests
|
||||||
BuildRequires: python3-astroid >= 2.0.2
|
BuildRequires: python3-astroid >= 2.0.2
|
||||||
BuildRequires: python3-isort
|
BuildRequires: python3-isort
|
||||||
BuildRequires: python3-mccabe
|
BuildRequires: python3-mccabe
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-pytest-runner
|
BuildRequires: python3-pytest-runner
|
||||||
|
BuildRequires: python3-six
|
||||||
|
|
||||||
# For the main pylint package
|
# For the main pylint package
|
||||||
Requires: python3-%{name} = %{version}-%{release}
|
Requires: python3-%{name} = %{version}-%{release}
|
||||||
@ -54,9 +56,8 @@ Additionally, it is possible to write plugins to add your own checks.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
# Fix "similar -d args" not recognized
|
||||||
# Convert DOS line endings to Unix
|
sed -i 's/s_opts = "hdi"/s_opts = "hd:i"/g' pylint/checkers/similar.py
|
||||||
sed -i 's/\r//g' README.rst
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -65,47 +66,44 @@ sed -i 's/\r//g' README.rst
|
|||||||
%py3_install
|
%py3_install
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/pylint/test
|
rm -rf %{buildroot}%{python3_sitelib}/pylint/test
|
||||||
|
|
||||||
mkdir -pm 755 %{buildroot}%{_mandir}/man1
|
|
||||||
install -pm 644 man/*.1 %{buildroot}%{_mandir}/man1/
|
|
||||||
|
|
||||||
# Add -%%{python3_version} to the binaries and manpages for backwards compatibility
|
# Add -%%{python3_version} to the binaries and manpages for backwards compatibility
|
||||||
for NAME in epylint pylint pyreverse symilar; do
|
for NAME in epylint pylint pyreverse symilar; do
|
||||||
mv %{buildroot}%{_bindir}/{$NAME,${NAME}-%{python3_version}}
|
mv %{buildroot}%{_bindir}/{$NAME,${NAME}-%{python3_version}}
|
||||||
ln -s ${NAME}-%{python3_version} %{buildroot}%{_bindir}/${NAME}-3
|
ln -s ${NAME}-%{python3_version} %{buildroot}%{_bindir}/${NAME}-3
|
||||||
mv %{buildroot}%{_mandir}/man1/{${NAME}.1,${NAME}-%{python3_version}.1}
|
|
||||||
ln -s ${NAME}-%{python3_version}.1 %{buildroot}%{_mandir}/man1/${NAME}-3.1
|
|
||||||
ln -s ${NAME}-%{python3_version} %{buildroot}%{_bindir}/${NAME}
|
ln -s ${NAME}-%{python3_version} %{buildroot}%{_bindir}/${NAME}
|
||||||
ln -s ${NAME}-%{python3_version}.1 %{buildroot}%{_mandir}/man1/${NAME}.1
|
|
||||||
done
|
done
|
||||||
|
|
||||||
%check
|
|
||||||
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
||||||
%{__python3} bin/pylint -rn --rcfile=pylintrc --load-plugins=pylint.extensions.docparams, pylint.extensions.mccabe pylint || :
|
|
||||||
# Skip failing tests.
|
|
||||||
%{__python3} -m pytest -v -k "not (test_by_module_statement_value or import_outside_toplevel)"
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.rst ChangeLog examples elisp
|
%doc CONTRIBUTORS.txt
|
||||||
%license COPYING
|
%license LICENSE
|
||||||
%{_bindir}/epylint
|
%{_bindir}/epylint
|
||||||
%{_bindir}/pylint
|
%{_bindir}/pylint
|
||||||
%{_bindir}/pyreverse
|
%{_bindir}/pyreverse
|
||||||
%{_bindir}/symilar
|
%{_bindir}/symilar
|
||||||
%{_mandir}/man1/epylint.1*
|
|
||||||
%{_mandir}/man1/pylint.1*
|
|
||||||
%{_mandir}/man1/pyreverse.1*
|
|
||||||
%{_mandir}/man1/symilar.1*
|
|
||||||
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%license COPYING
|
%license LICENSE
|
||||||
%{python3_sitelib}/pylint*
|
%{python3_sitelib}/pylint*
|
||||||
# backwards compatible versioned executables and manpages:
|
# backwards compatible versioned executables and manpages:
|
||||||
%{_bindir}/*-3
|
%{_bindir}/*-3
|
||||||
%{_bindir}/*-%{python3_version}
|
%{_bindir}/*-%{python3_version}
|
||||||
%{_mandir}/man1/*-3.1*
|
|
||||||
%{_mandir}/man1/*-%{python3_version}.1*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 03 2024 wangkai <13474090681@163.com> - 2.12.2-2
|
||||||
|
- Fix "similar -d args" not recognized
|
||||||
|
|
||||||
|
* Feb Mov 01 2022 Ge Wang <wangge20@h-partners.com> - 2.12.2-1
|
||||||
|
- update to version 2.12.2
|
||||||
|
|
||||||
|
* Mon Jan 10 2022 wulei <wulei80@huawei.com> - 2.6.0-3
|
||||||
|
- lgnore some test cases
|
||||||
|
|
||||||
|
* Thu Oct 28 2021 xu_ping <xuping33@huawei.com> - 2.6.0-2
|
||||||
|
- add python3-six model to fix some testcase failed
|
||||||
|
|
||||||
|
* Mon Jul 19 2021 OpenStack_SIG <openstack@openeuler.org> - 2.6.0-1
|
||||||
|
- update to 2.6.0
|
||||||
|
|
||||||
* Wed Jun 24 2020 chengzihan <chengzihan2@huawei.com> - 2.4.4-0
|
* Wed Jun 24 2020 chengzihan <chengzihan2@huawei.com> - 2.4.4-0
|
||||||
- Package upgrade
|
- Package upgrade
|
||||||
|
|
||||||
@ -114,3 +112,4 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|||||||
|
|
||||||
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 2.1.1-3
|
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 2.1.1-3
|
||||||
- package init
|
- package init
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user