Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
deps: drop unused setuptools (#18166)
Mikaile2afe264f0a3
diff --git a/.github/workflows/test-migrations-compatibility.yml b/.github/workflows/test-migrations-compatibility.ymlindex a8e25a58ad..9849cce48b 100644--- a/.github/workflows/test-migrations-compatibility.yml+++ b/.github/workflows/test-migrations-compatibility.yml@@ -7,6 +7,7 @@ on:- "main"paths:- "**/migrations/**"+ - .github/workflows/test-migrations-compatibility.ymlenv:DATABASE_URL: "postgres://saleor:saleor@postgres:5432/saleor"diff --git a/pyproject.toml b/pyproject.tomlindex 960f49c7c1..3b2fd5974c 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -73,7 +73,6 @@ dependencies = ["text-unidecode~=1.2","urllib3>=2.4.0,<3","uvicorn[standard]>=0.32.0,<0.33",- "setuptools>=76.0.0,<77","psycopg[binary]>=3.2.9,<4","pydantic>=2.11.0,<3","pydantic-core>=2.33.0,<3",@@ -119,7 +118,6 @@ dev = ["types-certifi>=2021.10.8,<2022","types-freezegun>=1.1.7,<2","types-mock>=5.0.0.5,<6",- "types-setuptools>=80.9.0.20250529,<81","types-python-dateutil>=2.9.0,<3","types-redis>=4.6.0,<5","types-requests>=2.32.4,<3",@@ -188,7 +186,6 @@ pillow = "PIL"python-magic-bin = "magic"[tool.deptry.per_rule_ignores]-DEP001 = ["pkg_resources"]DEP002 = ["azure-common", "azure-storage-blob", "azure-storage-common", "django-redis", "psycopg", "pyxb"][tool.django-stubs]diff --git a/saleor/settings.py b/saleor/settings.pyindex 3f78fe0c14..ef1f6061a3 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -1,4 +1,5 @@import datetime+import importlib.metadataimport loggingimport osimport os.path@@ -10,7 +11,6 @@ import dj_database_urlimport dj_email_urlimport django_cache_urlimport django_stubs_ext-import pkg_resourcesimport sentry_sdkimport sentry_sdk.utilsfrom celery.schedules import crontab@@ -862,9 +862,9 @@ BUILTIN_PLUGINS = [# Plugin discoveryEXTERNAL_PLUGINS = []-installed_plugins = pkg_resources.iter_entry_points("saleor.plugins")+installed_plugins = importlib.metadata.entry_points(group="saleor.plugins")for entry_point in installed_plugins:- plugin_path = f"{entry_point.module_name}.{entry_point.attrs[0]}"+ plugin_path = f"{entry_point.module}.{entry_point.attr}"if plugin_path not in BUILTIN_PLUGINS and plugin_path not in EXTERNAL_PLUGINS:if entry_point.name not in INSTALLED_APPS:INSTALLED_APPS.append(entry_point.name)diff --git a/uv.lock b/uv.lockindex 2d5589dd2e..5413816c37 100644--- a/uv.lock+++ b/uv.lock@@ -2588,7 +2588,6 @@ dependencies = [{ name = "semantic-version", marker = "platform_python_implementation != 'PyPy'" },{ name = "sendgrid", marker = "platform_python_implementation != 'PyPy'" },{ name = "sentry-sdk", marker = "platform_python_implementation != 'PyPy'" },- { name = "setuptools", marker = "platform_python_implementation != 'PyPy'" },{ name = "stripe", marker = "platform_python_implementation != 'PyPy'" },{ name = "text-unidecode", marker = "platform_python_implementation != 'PyPy'" },{ name = "urllib3", marker = "platform_python_implementation != 'PyPy'" },@@ -2627,7 +2626,6 @@ dev = [{ name = "types-python-dateutil", marker = "platform_python_implementation != 'PyPy'" },{ name = "types-redis", marker = "platform_python_implementation != 'PyPy'" },{ name = "types-requests", marker = "platform_python_implementation != 'PyPy'" },- { name = "types-setuptools", marker = "platform_python_implementation != 'PyPy'" },{ name = "types-six", marker = "platform_python_implementation != 'PyPy'" },{ name = "vcrpy", marker = "platform_python_implementation != 'PyPy'" },]@@ -2703,7 +2701,6 @@ requires-dist = [{ name = "semantic-version", specifier = ">=2.10.0,<3" },{ name = "sendgrid", specifier = ">=6.7.1,<7" },{ name = "sentry-sdk", specifier = "~=2.12" },- { name = "setuptools", specifier = ">=76.0.0,<77" },{ name = "stripe", specifier = ">=3.0.0,<4" },{ name = "text-unidecode", specifier = "~=1.2" },{ name = "urllib3", specifier = ">=2.4.0,<3" },@@ -2742,7 +2739,6 @@ dev = [{ name = "types-python-dateutil", specifier = ">=2.9.0,<3" },{ name = "types-redis", specifier = ">=4.6.0,<5" },{ name = "types-requests", specifier = ">=2.32.4,<3" },- { name = "types-setuptools", specifier = ">=80.9.0.20250529,<81" },{ name = "types-six", specifier = ">=1.17.0,<2" },{ name = "vcrpy", specifier = ">=7.0.0,<8" },]