From b81f792a4e6287e875521b16bb285d5ffa7ccdc9 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Feb 27 2024 09:41:41 +0000 Subject: Document explicitly that %tox requires %pyproject_buildrequires -t/-e See https://bugzilla.redhat.com/2266228 --- diff --git a/guidelines/modules/ROOT/pages/Python.adoc b/guidelines/modules/ROOT/pages/Python.adoc index fea839a..741d464 100644 --- a/guidelines/modules/ROOT/pages/Python.adoc +++ b/guidelines/modules/ROOT/pages/Python.adoc @@ -1049,7 +1049,7 @@ to test that installed modules are importable. A popular testing tool, and one which is well integrated in Fedora, is `+tox+`. Upstream, it is commonly used to test against multiple Python versions. -In a Fedora package, BuildRequire test dependencies +In a Fedora package, BuildRequire test dependencies via `+%pyproject_buildrequires -t+` or `+-e+` (see _Test dependencies_ below) and run `+tox+` with: @@ -1551,6 +1551,9 @@ Path of the file written by `+%pyproject_save_files+`, to be used as: + Run tests using `+tox+`. + +This macro needs BuildRequires generated by the `+-t+` or `+-e+` option of +<>. ++ Different environments may be specified with `+-e+`, for example: + [source,spec]