From aed2433c4cad26d5b5a5ae01c3dd0f1c382dd1d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20G=C3=B3mez=20Villamor?= Date: Wed, 5 Mar 2025 12:41:03 +0100 Subject: [PATCH] fix: fixes mypy complaints about pkgresources (#12790) --- metadata-ingestion/pyproject.toml | 2 +- metadata-ingestion/setup.py | 1 - metadata-ingestion/tests/unit/test_packaging.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/metadata-ingestion/pyproject.toml b/metadata-ingestion/pyproject.toml index f30060c5ccdbdf..3d44767e176379 100644 --- a/metadata-ingestion/pyproject.toml +++ b/metadata-ingestion/pyproject.toml @@ -1,6 +1,6 @@ [build-system] build-backend = "setuptools.build_meta" -requires = ["setuptools>=63.0.0", "wheel"] +requires = ["setuptools >= 71.1", "wheel"] [tool.ruff.lint.isort] section-order = ["future", "patch", "standard-library", "third-party", "first-party", "local-folder"] diff --git a/metadata-ingestion/setup.py b/metadata-ingestion/setup.py index d55960aa1750c2..fbeba1e510b645 100644 --- a/metadata-ingestion/setup.py +++ b/metadata-ingestion/setup.py @@ -555,7 +555,6 @@ mypy_stubs = { "types-dataclasses", - "types-setuptools", "types-six", "types-python-dateutil", # We need to avoid 2.31.0.5 and 2.31.0.4 due to diff --git a/metadata-ingestion/tests/unit/test_packaging.py b/metadata-ingestion/tests/unit/test_packaging.py index f9a3ae9562d3eb..56e877a03deaee 100644 --- a/metadata-ingestion/tests/unit/test_packaging.py +++ b/metadata-ingestion/tests/unit/test_packaging.py @@ -8,6 +8,6 @@ ) def test_datahub_version(): # Simply importing pkg_resources checks for unsatisfied dependencies. - import pkg_resources + import pkg_resources # type: ignore[import-untyped] assert pkg_resources.get_distribution(datahub_version.__package_name__).version