diff --git a/10.patch b/10.patch new file mode 100644 index 0000000..35a36fd --- /dev/null +++ b/10.patch @@ -0,0 +1,28 @@ +# HG changeset patch +# User Miro HronĨok +# Date 1733147018 -3600 +# Mon Dec 02 14:43:38 2024 +0100 +# Node ID 0c7d924a643f990dd365db57ac3d52baf7db34fb +# Parent 0bef9fa8b3c43637cd90ce3f2e299e81c2122128 +Do not specificity build-system.requires on wheel + +When building from pyproject.toml, setuptools only needed wheel for building wheels. +It was never needed needed to build sdists. +Setuptools knww this and properly generated the dependency on wheel only when needed. + +With the current setuptools version, wheel is not needed at all. + +See also https://github.com/pypa/pip/pull/12728 + +diff -r 0bef9fa8b3c4 -r 0c7d924a643f setup.py +--- a/setup.py Thu Mar 14 10:13:16 2024 +0100 ++++ b/setup.py Mon Dec 02 14:43:38 2024 +0100 +@@ -830,7 +830,7 @@ + with open(file_name, 'w') as fp: + fp.write(dedent("""\ + [build-system] +- requires = ["setuptools", "wheel"] ++ requires = ["setuptools"] + # test + build-backend = "setuptools.build_meta" + """)) diff --git a/python-ruamel-yaml.spec b/python-ruamel-yaml.spec index c17972b..d9f7066 100644 --- a/python-ruamel-yaml.spec +++ b/python-ruamel-yaml.spec @@ -19,6 +19,11 @@ Source: https://sourceforge.net/code-snapshots/hg/r/ru/ruamel-yaml/code/ # https://sourceforge.net/p/ruamel-yaml/code/merge-requests/9/ Patch: 9.patch +# Do not specificity build-system.requires on wheel +# Fixes the bootstrap build (see commit message for details) +# https://sourceforge.net/p/ruamel-yaml/code/merge-requests/10/ +Patch: 10.patch + BuildArch: noarch %global _description %{expand: