From 6726c5bae4ac018e2d8da2cf2a9f615c6fa46b362a19e18a4177f877a51e1c2e Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Tue, 23 Jun 2020 16:31:52 +0000 Subject: [PATCH] Accepting request 816610 from home:bnavigator:branches:devel:languages:python - Add source dir to PYTHONPATH just as upstream does. Necessary due change in pytest macro gh#openSUSE/python-rpm-macros#48 - don't benchmark, just run the tests once OBS-URL: https://build.opensuse.org/request/show/816610 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=35 --- python-construct.changes | 7 +++++++ python-construct.spec | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-construct.changes b/python-construct.changes index 37f702b..2ec0b7f 100644 --- a/python-construct.changes +++ b/python-construct.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jun 23 14:27:05 UTC 2020 - Benjamin Greiner + +- Add source dir to PYTHONPATH just as upstream does. + Necessary due change in pytest macro gh#openSUSE/python-rpm-macros#48 +- don't benchmark, just run the tests once + ------------------------------------------------------------------- Wed Feb 12 11:59:37 UTC 2020 - Tomáš Chvátal diff --git a/python-construct.spec b/python-construct.spec index 258f72e..5e45172 100644 --- a/python-construct.spec +++ b/python-construct.spec @@ -78,7 +78,9 @@ rm -rf tests/deprecated_gallery %check %if %{with test} -%pytest +# local source dir is needed for tests +export PYTHONPATH=$(pwd) +%pytest --benchmark-disable %endif %if %{without test}