From d4555ec179c4dcc93269b95d0c3516c91c9e7a52 Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Tue, 21 Oct 2025 13:57:20 -0300 Subject: [PATCH] Pin setuptools version for python bindings client --- templates/python/v7.14.0/pyproject.mustache | 4 +++- templates/python/v7.14.0/setup.mustache | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/python/v7.14.0/pyproject.mustache b/templates/python/v7.14.0/pyproject.mustache index 6ce0b1f..3a02635 100644 --- a/templates/python/v7.14.0/pyproject.mustache +++ b/templates/python/v7.14.0/pyproject.mustache @@ -91,7 +91,9 @@ mypy = ">= 1.5" [build-system] -requires = ["setuptools"] +# this version includes support and fixes for PEP 625 +# https://setuptools.pypa.io/en/stable/history.html#v70-2-0 +requires = ["setuptools>=70.2.0"] build-backend = "setuptools.build_meta" [tool.pylint.'MESSAGES CONTROL'] diff --git a/templates/python/v7.14.0/setup.mustache b/templates/python/v7.14.0/setup.mustache index 343ca2e..8d654e9 100644 --- a/templates/python/v7.14.0/setup.mustache +++ b/templates/python/v7.14.0/setup.mustache @@ -41,6 +41,7 @@ setup( keywords=["pulp", "pulpcore", "client", "{{{appName}}}"], install_requires=REQUIRES, python_requires=PYTHON_REQUIRES, + setup_requires=["setuptools>=70.2.0"], packages=find_packages(exclude=["test", "tests"]), include_package_data=True, {{#licenseInfo}}license="{{.}}",