1
0
forked from pool/python-geomet

Accepting request 846098 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/846098
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geomet?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-11-05 20:55:02 +00:00 committed by Git OBS Bridge
commit 9c996cf459
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 4 16:23:36 UTC 2020 - Johannes Grassler <johannes.grassler@suse.com>
- Fix executable name substitution for Python 3 tests
-------------------------------------------------------------------
Tue May 26 06:34:21 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@ -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