diff --git a/python-setuptools.changes b/python-setuptools.changes index 852ba76..016f427 100644 --- a/python-setuptools.changes +++ b/python-setuptools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 23 15:41:14 UTC 2020 - Benjamin Greiner + +- use local source dir for pytest imports + gh#openSUSE/python-rpm-macros#48 + ------------------------------------------------------------------- Mon Apr 6 17:14:11 UTC 2020 - Matej Cepl diff --git a/python-setuptools.spec b/python-setuptools.spec index f52f61c..d41f6eb 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -135,6 +135,8 @@ find ./ -type f -name \*.py -exec sed -i \ # the 4 skipped test rely on the bundled packages but they are # not available on virtualenv; this is expected behaviour export LANG=en_US.UTF-8 +# tests need imports local source dir +export PYTHONPATH=$(pwd) %pytest -k 'not (test_clean_env_install or test_pip_upgrade_from_source or test_test_command_install_requirements or test_no_missing_dependencies)' %endif