Accepting request 905114 from devel:languages:python
- Add %pyunittest shim for platforms where it is missing. OBS-URL: https://build.opensuse.org/request/show/905114 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytz?expand=0&rev=43
This commit is contained in:
commit
3c8efd0172
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user