Hello community, here is the log from the commit of package python-sherpa for openSUSE:Factory checked in at 2020-03-12 23:09:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sherpa (Old) and /work/SRC/openSUSE:Factory/.python-sherpa.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sherpa" Thu Mar 12 23:09:24 2020 rev:3 rq:784359 version:4.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sherpa/python-sherpa.changes 2020-01-05 15:22:09.317591020 +0100 +++ /work/SRC/openSUSE:Factory/.python-sherpa.new.3160/python-sherpa.changes 2020-03-12 23:12:41.735333145 +0100 @@ -1,0 +2,8 @@ +Thu Mar 12 12:56:22 UTC 2020 - Atri Bhattacharya <[email protected]> + +- Add python-sherpa-python3.8.patch: Fix building with python3.8; + taken from upstream commit [gh#sherpa/sherpa#696]. +- Disbale bytecode generation when running tests. +- Remove hashbangs from non executable files. + +------------------------------------------------------------------- New: ---- python-sherpa-python3.8.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sherpa.spec ++++++ --- /var/tmp/diff_new_pack.zqLWTL/_old 2020-03-12 23:12:42.431333420 +0100 +++ /var/tmp/diff_new_pack.zqLWTL/_new 2020-03-12 23:12:42.431333420 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-sherpa # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,8 @@ # PATCH-FIX-UPSTREAM config_with_build.patch -- https://github.com/sherpa/sherpa/pull/714 Patch0: config_with_build.patch Patch1: reproducible.patch +# PATCH-FIX-UPSTREAM python-sherpa-python3.8.patch gh#sherpa/sherpa#696 [email protected] -- Fix building with python3.8; taken from upstream commit +Patch2: python-sherpa-python3.8.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module setuptools} @@ -74,7 +76,14 @@ } %python_expand %fdupes %{buildroot}%{$python_sitearch} +# REMOVE HASHBANGS FROM NON-EXEC FILES +%{python_expand sed -i "1{/\\/usr\\/bin\\/env python/d}" %{buildroot}%{$python_sitearch}/sherpa/optmethods/ncoresde.py +sed -i "1{/\\/usr\\/bin\\/env python/d}" %{buildroot}%{$python_sitearch}/sherpa/optmethods/ncoresnm.py +sed -i "1{/\\/usr\\/bin\\/env python/d}" %{buildroot}%{$python_sitearch}/sherpa/optmethods/opt.py +} + %check +export PYTHONDONTWRITEBYTECODE=x mv sherpa sherpa_temp %python_expand ls -l %{buildroot}%{$python_sitearch}/sherpa/utils/ ls -l *build*/*/*/ ++++++ python-sherpa-python3.8.patch ++++++ ++++ 1282 lines (skipped)
