Hello community, here is the log from the commit of package python-logreduce for openSUSE:Factory checked in at 2020-08-19 18:57:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-logreduce (Old) and /work/SRC/openSUSE:Factory/.python-logreduce.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-logreduce" Wed Aug 19 18:57:01 2020 rev:11 rq:827756 version:0.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-logreduce/python-logreduce.changes 2020-04-15 19:56:05.957645467 +0200 +++ /work/SRC/openSUSE:Factory/.python-logreduce.new.3399/python-logreduce.changes 2020-08-19 18:58:14.279892273 +0200 @@ -1,0 +2,8 @@ +Sun Aug 16 14:26:28 UTC 2020 - John Vandenberg <jay...@gmail.com> + +- Remove unnecessary build dependency nose, deselecting two tests + when testing against CherryPy 10.1 or lower +- Remove tests from runtime library +- Remove installed .keep files and remove hashbangs in library + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-logreduce.spec ++++++ --- /var/tmp/diff_new_pack.G9lfe8/_old 2020-08-19 18:58:17.423893944 +0200 +++ /var/tmp/diff_new_pack.G9lfe8/_new 2020-08-19 18:58:17.427893947 +0200 @@ -50,7 +50,6 @@ BuildRequires: %{python_module alembic} BuildRequires: %{python_module gear} BuildRequires: %{python_module mock} -BuildRequires: %{python_module nose} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} @@ -80,13 +79,24 @@ %prep %setup -q -n logreduce-%{version} sed -i -e 's,flake8.*,,' test-requirements.txt +rm logreduce/server/web/.keep +sed -i '1{/^#!/d}' logreduce/cmd.py logreduce/mqtt/cmd.py + +# CherryPy 10.1 and lower requires nose in cherrypy/test/helper.py needed by test_api.py +# As of logreduce 0.5.2, upstream doesnt restrict the cherrypy version, +# so remove test_api.py (which has only two tests) if any python has older CherryPy +%{python_expand if $python -c 'import cherrypy,sys,distutils.version; sys.exit(distutils.version.LooseVersion(cherrypy.__version__) < distutils.version.LooseVersion("10.2"))' ; then + rm -f logreduce/tests/test_api.py +fi} %build %python_build %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%{python_expand rm -r %{buildroot}%{$python_sitelib}/logreduce/tests/ +%fdupes %{buildroot}%{$python_sitelib} +} %check %pytest