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="{{.}}",