- Add %pyunittest shim for platforms where it is missing.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=99
This commit is contained in:
Matej Cepl 2021-07-08 17:35:28 +00:00 committed by Git OBS Bridge
parent e029153846
commit 927d53e2bd
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 8 17:16:15 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Add %pyunittest shim for platforms where it is missing.
-------------------------------------------------------------------
Thu Jun 24 21:46:08 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@ -21,6 +21,13 @@
%define tzdata_version 2021a
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!pyunittest:%define pyunittest(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-=) \\\
%{lua: local args = rpm.expand("%**");
local broot = rpm.expand("%buildroot");
local intro = "%{python_expand PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}" .. broot .. "%{$python_sitelib} PYTHONDONTWRITEBYTECODE=1 $python -m unittest ";
print(rpm.expand(intro .. args .. "}"))
} }
Name: python-pytz
Version: 2021.1
Release: 0