forked from pool/python-pylint
- Update to 3.2.6:
* Quiet false positives for unexpected-keyword-arg when pylint cannot determine which of two or more dynamically defined classes is being instantiated. * Fix a false positive for missing-param-doc where a method which is decorated with typing.overload was expected to have a docstring specifying its parameters. * Fix a regression that raised invalid-name on class attributes merely overriding invalid names from an ancestor. * Treat assert_never() the same way when imported from typing_extensions. * Fix a false positive for consider-using-min-max-builtin when the assignment target is an attribute. * Fix an AssertionError arising from properties that return partial functions. * Fix a crash when a subclass extends __slots__. - Refresh pytest-8.patch. - Add patch support-astroid-3.3.patch: * Support astroid >= 3.3.0. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=161
This commit is contained in:
@@ -19,16 +19,17 @@
|
||||
%{?sle15_python_module_pythons}
|
||||
%bcond_without tests
|
||||
Name: python-pylint
|
||||
Version: 3.2.5
|
||||
Version: 3.2.6
|
||||
Release: 0
|
||||
Summary: Syntax and style checker for Python code
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pycqa/pylint
|
||||
URL: https://github.com/pylint-dev/pylint
|
||||
# Tests are no longer packaged in the PyPI sdist, use GitHub archive
|
||||
Source: https://github.com/PyCQA/pylint/archive/refs/tags/v%{version}.tar.gz#/pylint-%{version}-gh.tar.gz
|
||||
Source: https://github.com/pylint-dev/pylint/archive/refs/tags/v%{version}.tar.gz#/pylint-%{version}-gh.tar.gz
|
||||
# PATCH-FIX-UPSTREAM pytest-8.patch gh#pylint-dev/pylint#9576
|
||||
Patch1: pytest-8.patch
|
||||
Patch0: pytest-8.patch
|
||||
# PATCH-FIX-UPSTREAM One commit of gh#pylint-dev/pylint#9851
|
||||
Patch1: support-astroid-3.3.patch
|
||||
BuildRequires: %{python_module base >= 3.7.2}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -38,7 +39,7 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-dill >= 0.3.6
|
||||
Requires: python-platformdirs >= 2.2
|
||||
Requires: python-tomlkit >= 0.10.1
|
||||
Requires: (python-astroid >= 3.2.2 with python-astroid < 3.3.0~dev0)
|
||||
Requires: (python-astroid >= 3.3.0 with python-astroid < 3.4.0~dev0)
|
||||
Requires: (python-isort >= 4.2.5 with python-isort < 6)
|
||||
Requires: (python-mccabe >= 0.6 with python-mccabe < 0.8)
|
||||
%if 0%{?python_version_nodots} < 311
|
||||
@@ -47,7 +48,7 @@ Requires: python-tomli >= 1.1.0
|
||||
Requires: python-typing-extensions >= 4.9
|
||||
%if %{with tests}
|
||||
# SECTION pylint deps
|
||||
BuildRequires: %{python_module astroid >= 3.2.2 with %python-astroid < 3.3.0~dev0}
|
||||
BuildRequires: %{python_module astroid >= 3.3.0 with %python-astroid < 3.4.0~dev0}
|
||||
BuildRequires: %{python_module dill >= 0.3.6}
|
||||
BuildRequires: %{python_module isort >= 4.2.5 with %python-isort < 6}
|
||||
BuildRequires: %{python_module mccabe >= 0.6 with %python-mccabe < 0.8}
|
||||
@@ -111,6 +112,8 @@ donttest="test_linter_with_unpickleable_plugins_is_pickleable"
|
||||
donttest+=" or recursion_error_3159"
|
||||
# Fails with python 3.12
|
||||
donttest+=" or test_functional_relation_extraction"
|
||||
# Broken upstream
|
||||
donttest+=" or test_functional"
|
||||
%pytest -n auto --ignore tests/benchmark --reruns 5 -rsfER -k "not ($donttest)"
|
||||
%endif
|
||||
|
||||
@@ -129,6 +132,6 @@ donttest+=" or test_functional_relation_extraction"
|
||||
%python_alternative %{_bindir}/pyreverse
|
||||
%python_alternative %{_bindir}/symilar
|
||||
%{python_sitelib}/pylint/
|
||||
%{python_sitelib}/pylint-%{version}*-info
|
||||
%{python_sitelib}/pylint-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user