X-Git-Url: https://git.pld-linux.org/?p=projects%2Ftemplate-specs.git;a=blobdiff_plain;f=python.spec;fp=python.spec;h=894f4858abf6944e5b8f49122312ec07ddb1551f;hp=a9994cc12b6b55c4e1fe355733faac3ab8a6992f;hb=7302396e1168692fa9c276582f0e73d23b8a775b;hpb=106d060c6a675280ee3a304f0182abeb6219ecd1 diff --git a/python.spec b/python.spec index a9994cc..894f485 100644 --- a/python.spec +++ b/python.spec @@ -93,6 +93,9 @@ Dokumentacja API modułu Pythona %{module}. # deprecated target, but sometimes still used: %{?with_tests:test} %if %{with tests} +# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty) +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ +PYTEST_PLUGINS= \ %{__python} -m pytest ... %endif %endif @@ -102,6 +105,9 @@ Dokumentacja API modułu Pythona %{module}. # deprecated target, but sometimes still used: %{?with_tests:test} %if %{with tests} +# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty) +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ +PYTEST_PLUGINS= \ %{__python3} -m pytest ... %endif %endif