Compare commits
No commits in common. "e7dfc2a14018df45168d0f521a1f893e854f59e7" and "8c34ec5830fbed8e73db02ccc2e76637d545fe41" have entirely different histories.
e7dfc2a140
...
8c34ec5830
BIN
pylint-2.6.0.tar.gz
Normal file
BIN
pylint-2.6.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
74
pylint.spec
74
pylint.spec
@ -1,28 +1,21 @@
|
|||||||
Name: pylint
|
Name: pylint
|
||||||
Version: 3.0.3
|
Version: 2.6.0
|
||||||
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://github.com/pylint-dev/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/24/4a/a07484119d23283de4d8db8176e85be3b20583eefc1cbfa8363b1414fbe2/pylint-2.6.0.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.15.5
|
BuildRequires: python3-astroid >= 2.0.2
|
||||||
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
|
||||||
@ -42,13 +35,11 @@ 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.15.5
|
Requires: python3-astroid >= 2.3.0
|
||||||
Requires: python3-dill
|
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
Requires: python3-mccabe
|
Requires: python3-mccabe
|
||||||
Requires: python3-isort
|
Requires: python3-isort
|
||||||
Requires: python3-tomlkit
|
Obsoletes: python3-pylint-gui < 1.7
|
||||||
Obsoletes: python3-pylint-gui
|
|
||||||
%{?python_provide:%python_provide python3-%{name}}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
|
|
||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
@ -64,55 +55,60 @@ 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 -p1 -n pylint-%{version}
|
%autosetup -n pylint-2.6.0
|
||||||
# Fix "similar -d args" not recognized
|
|
||||||
sed -i 's/s_opts = "hdi"/s_opts = "hd:i"/g' pylint/checkers/similar.py
|
# Convert DOS line endings to Unix
|
||||||
|
sed -i 's/\r//g' README.rst
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_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 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_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 CONTRIBUTORS.txt
|
%doc README.rst ChangeLog examples elisp
|
||||||
%license LICENSE
|
%license COPYING
|
||||||
|
%{_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 LICENSE
|
%license COPYING
|
||||||
%{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
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: github
|
|
||||||
src_repo: pylint-dev/pylint
|
|
||||||
tag_prefix: "^v"
|
|
||||||
separator: "."
|
|
||||||
Loading…
x
Reference in New Issue
Block a user