Hello community, here is the log from the commit of package python-rpm-macros for openSUSE:Factory checked in at 2019-05-09 10:00:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rpm-macros (Old) and /work/SRC/openSUSE:Factory/.python-rpm-macros.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-rpm-macros" Thu May 9 10:00:32 2019 rev:20 rq:700011 version:20190430.5260267 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rpm-macros/python-rpm-macros.changes 2019-04-10 23:08:44.959807172 +0200 +++ /work/SRC/openSUSE:Factory/.python-rpm-macros.new.5148/python-rpm-macros.changes 2019-05-09 10:00:53.967565984 +0200 @@ -1,0 +2,8 @@ +Thu May 02 06:10:17 UTC 2019 - mcepl@cepl.eu + +- Update to version 20190430.5260267: + * Yet another attempt to preserve $PYTHONPATH set in the environment. + * Document also %pytest_arch + * Document %pytest in README.md + +------------------------------------------------------------------- Old: ---- python-rpm-macros-20190408.32abece.tar.bz2 New: ---- python-rpm-macros-20190430.5260267.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rpm-macros.spec ++++++ --- /var/tmp/diff_new_pack.1Z0tVe/_old 2019-05-09 10:00:57.771576876 +0200 +++ /var/tmp/diff_new_pack.1Z0tVe/_new 2019-05-09 10:00:57.783576910 +0200 @@ -17,7 +17,7 @@ Name: python-rpm-macros -Version: 20190408.32abece +Version: 20190430.5260267 Release: 0 Summary: RPM macros for building of Python modules License: WTFPL ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.1Z0tVe/_old 2019-05-09 10:00:57.903577254 +0200 +++ /var/tmp/diff_new_pack.1Z0tVe/_new 2019-05-09 10:00:57.903577254 +0200 @@ -1,4 +1,4 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/openSUSE/python-rpm-macros.git</param> - <param name="changesrevision">32abece840d9845803d519996ecf2e87c41ed317</param></service></servicedata> \ No newline at end of file + <param name="changesrevision">f2e1b2e7014bc5a99725a4a97384141c640b9321</param></service></servicedata> \ No newline at end of file ++++++ python-rpm-macros-20190408.32abece.tar.bz2 -> python-rpm-macros-20190430.5260267.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rpm-macros-20190408.32abece/README.md new/python-rpm-macros-20190430.5260267/README.md --- old/python-rpm-macros-20190408.32abece/README.md 2019-04-08 14:39:33.000000000 +0200 +++ new/python-rpm-macros-20190430.5260267/README.md 2019-04-30 18:23:17.000000000 +0200 @@ -111,6 +111,13 @@ `python3 generatefile.py %python3_bin_suffix` etc. +* __`%pytest`__ runs `pytest` in all flavors with appropriate environmental variables +(namely, it sets `$PYTHONPATH` to ``%{python_sitelib}``). All paramteres to this macro are +passed without change to the pytest command. Explicit `BuildRequires` on `%{python_module pytest}` +is still required. + +* __`%pytest_arch`__ the same as the above, except it sets ``$PYTHONPATH`` to ``%{$python_sitearch}`` + * __`%python_clone filename`__ creates a copy of `filename` under a flavor-specific name for every flavor. This is useful for packages that install unversioned executables: `/usr/bin/foo` is copied to `/usr/bin/foo-%{python_bin_suffix}` for all flavors, and the shebang is modified accordingly. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rpm-macros-20190408.32abece/macros/010-common-defs new/python-rpm-macros-20190430.5260267/macros/010-common-defs --- old/python-rpm-macros-20190408.32abece/macros/010-common-defs 2019-04-08 14:39:33.000000000 +0200 +++ new/python-rpm-macros-20190430.5260267/macros/010-common-defs 2019-04-30 18:23:17.000000000 +0200 @@ -51,5 +51,5 @@ ##### testing commands ##### -%pytest_arch(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=) %{lua: local args = rpm.expand("%**") print(rpm.expand("%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} py.test-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v " .. args .. "}")) } -%pytest(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=) %{lua: local args = rpm.expand("%**") print(rpm.expand("%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v " .. args .. "}")) } +%pytest_arch(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=) %{lua: local args = rpm.expand("%**") print(rpm.expand("%{python_expand PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitearch} py.test-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v " .. args .. "}")) } +%pytest(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=) %{lua: local args = rpm.expand("%**") print(rpm.expand("%{python_expand PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v " .. args .. "}")) }