rpm-software-management / spec-cleaner

spec-cleaner
BSD 3-Clause "New" or "Revised" License
28 stars 34 forks source link

Replace various pytest calls with %pytest or %pytest_arch macros #242

Closed scarabeusiv closed 5 years ago

scarabeusiv commented 5 years ago

These are new macros [1] that are replacing all various forms of calls that are present currently in dlpy:

%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python %{_bindir}/py.test %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %python_exec %{_bindir}/py.test -v %python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} py.test-%{$python_bin_suffix} %python_exec -m pytest -v

[1] https://github.com/openSUSE/python-rpm-macros/pull/20

scarabeusiv commented 5 years ago

%python_exec -m pytest -o addopts=-v