Compare commits
10 Commits
8c34ec5830
...
e7dfc2a140
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7dfc2a140 | ||
|
|
20199dd508 | ||
|
|
1ae91407a5 | ||
|
|
c7c0b91097 | ||
|
|
54280a88ad | ||
|
|
df3fbcf8e3 | ||
|
|
71de995365 | ||
|
|
07932e044c | ||
|
|
7e14f9a884 | ||
|
|
69d00e5f71 |
Binary file not shown.
BIN
pylint-3.0.3.tar.gz
Normal file
BIN
pylint-3.0.3.tar.gz
Normal file
Binary file not shown.
74
pylint.spec
74
pylint.spec
@ -1,21 +1,28 @@
|
|||||||
Name: pylint
|
Name: pylint
|
||||||
Version: 2.6.0
|
Version: 3.0.3
|
||||||
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: https://files.pythonhosted.org/packages/24/4a/a07484119d23283de4d8db8176e85be3b20583eefc1cbfa8363b1414fbe2/pylint-2.6.0.tar.gz
|
Source0: https://github.com/pylint-dev/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-toml
|
BuildRequires: python3-toml
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-editables
|
||||||
|
BuildRequires: python3-hatch-vcs
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
# For tests
|
# For tests
|
||||||
BuildRequires: python3-astroid >= 2.0.2
|
BuildRequires: python3-astroid >= 2.15.5
|
||||||
|
BuildRequires: python3-dill
|
||||||
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-tomlkit
|
||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
|
|
||||||
# For the main pylint package
|
# For the main pylint package
|
||||||
@ -35,11 +42,13 @@ Additionally, it is possible to write plugins to add your own checks.
|
|||||||
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
Requires: python3-astroid >= 2.3.0
|
Requires: python3-astroid >= 2.15.5
|
||||||
|
Requires: python3-dill
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
Requires: python3-mccabe
|
Requires: python3-mccabe
|
||||||
Requires: python3-isort
|
Requires: python3-isort
|
||||||
Obsoletes: python3-pylint-gui < 1.7
|
Requires: python3-tomlkit
|
||||||
|
Obsoletes: python3-pylint-gui
|
||||||
%{?python_provide:%python_provide python3-%{name}}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
|
|
||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
@ -55,60 +64,55 @@ and much more.
|
|||||||
Additionally, it is possible to write plugins to add your own checks.
|
Additionally, it is possible to write plugins to add your own checks.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pylint-2.6.0
|
%autosetup -p1 -n pylint-%{version}
|
||||||
|
# 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
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_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 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_baseline_benchmark_j1 or test_baseline_lots_of_files_j1 or test_baseline_lots_of_files_j10 \
|
|
||||||
or test_baseline_benchmark_check_parallel_j10 or 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}/pylint
|
%{_bindir}/pylint
|
||||||
|
%{_bindir}/pylint-config
|
||||||
%{_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> - 3.0.3-2
|
||||||
|
- Fix "similar -d args" not recognized
|
||||||
|
|
||||||
|
* Tue Sep 19 2023 xu_ping <707078654@qq.com> - 3.0.3-1
|
||||||
|
- update to 3.0.3
|
||||||
|
|
||||||
|
* Wed Aug 9 2023 shangjiwei <cyrus_shang@163.com> - 2.17.5-1
|
||||||
|
- update to 2.17.5
|
||||||
|
|
||||||
|
* Mon May 15 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.17.2-1
|
||||||
|
- update to 2.17.2
|
||||||
|
|
||||||
|
* Wed Apr 27 2022 caodongxia <caodongxia@h-partners.com> - 2.12.2-1
|
||||||
|
- update to 2.12.2
|
||||||
|
|
||||||
* Thu Oct 28 2021 xu_ping <xuping33@huawei.com> - 2.6.0-2
|
* Thu Oct 28 2021 xu_ping <xuping33@huawei.com> - 2.6.0-2
|
||||||
- add python3-six model to fix some testcase failed
|
- add python3-six model to fix some testcase failed
|
||||||
|
|
||||||
|
|||||||
4
pylint.yaml
Normal file
4
pylint.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: pylint-dev/pylint
|
||||||
|
tag_prefix: "^v"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user