Marcel Telka
2023-12-12 51beb57ab912f19c8aec183f920be606f34f7b5c
python/pylint: update to 3.0.3

4 files modified
32 ■■■■■ changed files
components/python/pylint/Makefile 4 ●●●● patch | view | raw | blame | history
components/python/pylint/patches/01-test-requirements.patch 8 ●●●● patch | view | raw | blame | history
components/python/pylint/patches/02-pydantic.patch 12 ●●●● patch | view | raw | blame | history
components/python/pylint/test/results-all.master 8 ●●●● patch | view | raw | blame | history
components/python/pylint/Makefile
@@ -19,12 +19,12 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        pylint
HUMAN_VERSION =            3.0.2
HUMAN_VERSION =            3.0.3
COMPONENT_SUMMARY =        pylint - python code static checker
COMPONENT_ARCHIVE_URL =        \
    https://github.com/pylint-dev/pylint/archive/refs/tags/v$(HUMAN_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:05323c5c40aa2fdd4bba714bea079bb096539a015b43513f396d9b471a4fb762
    sha256:2880998fc9f3a53fab8989f373faba3f47a3097df0ff2e201ec286bdef0c3aa5
COMPONENT_LICENSE =        GPL-2.0-only
COMPONENT_LICENSE_FILE =    LICENSE
components/python/pylint/patches/01-test-requirements.patch
@@ -1,7 +1,7 @@
These test requirements are not needed to run tests.
--- pylint-3.0.2/requirements_test_min.txt.orig
+++ pylint-3.0.2/requirements_test_min.txt
--- pylint-3.0.3/requirements_test_min.txt.orig
+++ pylint-3.0.3/requirements_test_min.txt
@@ -1,4 +1,4 @@
-.[testutils,spelling]
+.[testutils]
@@ -16,8 +16,8 @@
 requests
 # Voluntary for test purpose, not actually used in prod, see #8904
 setuptools==41.6.0
--- pylint-3.0.2/requirements_test.txt.orig
+++ pylint-3.0.2/requirements_test.txt
--- pylint-3.0.3/requirements_test.txt.orig
+++ pylint-3.0.3/requirements_test.txt
@@ -1,11 +1,7 @@
 -r requirements_test_min.txt
 coverage~=7.3
components/python/pylint/patches/02-pydantic.patch
@@ -1,15 +1,15 @@
https://github.com/pylint-dev/pylint/issues/9270
--- pylint-3.0.2/tests/functional/n/no/no_name_in_module.py.orig
+++ pylint-3.0.2/tests/functional/n/no/no_name_in_module.py
--- pylint-3.0.3/tests/functional/n/no/no_name_in_module.py.orig
+++ pylint-3.0.3/tests/functional/n/no/no_name_in_module.py
@@ -83,4 +83,4 @@
 # This captures the original failure in https://github.com/pylint-dev/pylint/issues/6497
 # only if numpy is installed. We are not installing numpy on CI (for now)
 from numpy.distutils.misc_util import is_sequence
-from pydantic import BaseModel
+from pydantic_foo import BaseModel
--- pylint-3.0.2/tests/functional/d/dataclass/dataclass_with_field.py.orig
+++ pylint-3.0.2/tests/functional/d/dataclass/dataclass_with_field.py
--- pylint-3.0.3/tests/functional/d/dataclass/dataclass_with_field.py.orig
+++ pylint-3.0.3/tests/functional/d/dataclass/dataclass_with_field.py
@@ -4,7 +4,7 @@
 
 from dataclasses import field
@@ -19,8 +19,8 @@
 
 
 class Item:
--- pylint-3.0.2/tests/functional/d/dataclass/dataclass_with_field.txt.orig
+++ pylint-3.0.2/tests/functional/d/dataclass/dataclass_with_field.txt
--- pylint-3.0.3/tests/functional/d/dataclass/dataclass_with_field.txt.orig
+++ pylint-3.0.3/tests/functional/d/dataclass/dataclass_with_field.txt
@@ -1 +1 @@
-import-error:7:0:7:42::Unable to import 'pydantic.dataclasses':UNDEFINED
+import-error:7:0:7:46::Unable to import 'pydantic_foo.dataclasses':UNDEFINED
components/python/pylint/test/results-all.master
@@ -5,7 +5,7 @@
cachedir: .tox/py$(PYV)/.pytest_cache
rootdir: $(@D)
configfile: pyproject.toml
collecting ... collected 2145 items
collecting ... collected 2149 items
tests/benchmark/test_baseline_benchmarks.py::TestEstablishBaselineBenchmarks::test_baseline_benchmark_check_parallel_j2 PASSED
tests/benchmark/test_baseline_benchmarks.py::TestEstablishBaselineBenchmarks::test_baseline_benchmark_j1 PASSED
@@ -571,6 +571,8 @@
tests/lint/unittest_expand_modules.py::TestExpandModules::test_expand_modules[files_or_modules1-expected1] PASSED
tests/lint/unittest_expand_modules.py::TestExpandModules::test_expand_modules_deduplication[files_or_modules0-expected0] PASSED
tests/lint/unittest_expand_modules.py::TestExpandModules::test_expand_modules_deduplication[files_or_modules1-expected1] PASSED
tests/lint/unittest_expand_modules.py::TestExpandModules::test_expand_modules_relative_path[files_or_modules0-expected0] PASSED
tests/lint/unittest_expand_modules.py::TestExpandModules::test_expand_modules_relative_path[files_or_modules1-expected1] PASSED
tests/lint/unittest_expand_modules.py::TestExpandModules::test_expand_modules_with_ignore[files_or_modules0-expected0] PASSED
tests/lint/unittest_expand_modules.py::TestExpandModules::test_expand_modules_with_ignore[files_or_modules1-expected1] PASSED
tests/lint/unittest_expand_modules.py::test__is_in_ignore_list_re_match PASSED
@@ -1657,6 +1659,7 @@
tests/test_functional.py::test_functional[star_needs_assignment_target] PASSED
tests/test_functional.py::test_functional[star_needs_assignment_target_py38] SKIPPED
tests/test_functional.py::test_functional[statement_without_effect] PASSED
tests/test_functional.py::test_functional[statement_without_effect_py312] SKIPPED
tests/test_functional.py::test_functional[statement_without_effect_py36] PASSED
tests/test_functional.py::test_functional[stop_iteration_inside_generator] PASSED
tests/test_functional.py::test_functional[string_formatting] PASSED
@@ -1749,6 +1752,7 @@
tests/test_functional.py::test_functional[undefined_variable_crash_on_attribute] PASSED
tests/test_functional.py::test_functional[undefined_variable_decorators] PASSED
tests/test_functional.py::test_functional[undefined_variable_py30] PASSED
tests/test_functional.py::test_functional[undefined_variable_py312] SKIPPED
tests/test_functional.py::test_functional[undefined_variable_py38] PASSED
tests/test_functional.py::test_functional[undefined_variable_typing] PASSED
tests/test_functional.py::test_functional[unexpected_keyword_arg] PASSED
@@ -2153,6 +2157,6 @@
tests/utils/unittest_utils.py::test_decoding_stream_known_encoding PASSED
tests/utils/unittest_utils.py::test_decoding_stream_unknown_encoding PASSED
======== 1842 passed, 298 skipped, 5 xfailed ========
======== 1844 passed, 300 skipped, 5 xfailed ========
  py$(PYV): OK
  congratulations :)