From 89189d087088466898ebdf6e8993f856cf2e3ba6 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jan 19 2022 18:43:18 +0000 Subject: %pyproject_buildrequires now generates runtime dependencies by default See https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/2R6NKELTHAWE6PI3CCZBVW5PMGO5VPDG/ --- diff --git a/guidelines/modules/ROOT/pages/Python.adoc b/guidelines/modules/ROOT/pages/Python.adoc index 5768573..3f31737 100644 --- a/guidelines/modules/ROOT/pages/Python.adoc +++ b/guidelines/modules/ROOT/pages/Python.adoc @@ -685,7 +685,7 @@ to gather further requirements. See <> for more details. -Note that with the `+-r+` flag, the generator will include run-time +Note that without the `+-R+` flag, the generator will include run-time requirements in BuildRequires. This is useful for running tests and for checking that the dependencies are available in Fedora. @@ -1266,7 +1266,7 @@ Summary: %{summary} %generate_buildrequires -%pyproject_buildrequires -rx... / -t +%pyproject_buildrequires -x... / -t %build @@ -1398,7 +1398,7 @@ Generate BuildRequires for the package. Used in the `+%generate_buildrequires+` section of the `+spec+` file. The macro has these options: + -** `+-r+`: Include run-time requirements (commonly needed for `+%check+`). +** `+-R+`: Don't include run-time requirements (e.g. if the build backend does not support this). ** `+-x EXTRA+`: Include dependencies given by the given <>. Implies `+-r+`. ** `+-t+`: Include dependencies for the default _tox_ environment.