From c37a1c5d963767f3a4e82b310cb844677dcf0869778893010f2e82db8eecc624 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 5 Nov 2020 01:01:08 +0000 Subject: [PATCH] Accepting request 846038 from home:jgrassler:branches:devel:languages:python - Fix executable name substitution for Python 3 tests OBS-URL: https://build.opensuse.org/request/show/846038 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geomet?expand=0&rev=6 --- python-geomet.changes | 5 +++++ python-geomet.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/python-geomet.changes b/python-geomet.changes index 125ba8f..4cfd7ff 100644 --- a/python-geomet.changes +++ b/python-geomet.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 4 16:23:36 UTC 2020 - Johannes Grassler + +- Fix executable name substitution for Python 3 tests + ------------------------------------------------------------------- Tue May 26 06:34:21 UTC 2020 - Petr Gajdos diff --git a/python-geomet.spec b/python-geomet.spec index 40d8999..a6d3059 100644 --- a/python-geomet.spec +++ b/python-geomet.spec @@ -58,7 +58,9 @@ rm %{buildroot}%{_prefix}/LICENSE %check export PATH=$PATH:%{buildroot}%{_bindir} export PYTHONDONTWRITEBYTECODE=1 +cp geomet/tests/test_cli.py geomet/tests/test_cli.py.orig %{python_expand \ +cp geomet/tests/test_cli.py.orig geomet/tests/test_cli.py sed -i 's:geomet:geomet-%{$python_version}:' geomet/tests/test_cli.py export PYTHONPATH=:%{buildroot}%{$python_sitelib} $python -m pytest