Accepting request 784359 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/784359
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sherpa?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-03-12 22:09:24 +00:00 committed by Git OBS Bridge
commit bf66c7bfcb
3 changed files with 1300 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Mar 12 12:56:22 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
- 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.
-------------------------------------------------------------------
Sat Jan 4 20:12:21 UTC 2020 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

@ -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 @@ Source: https://github.com/sherpa/sherpa/archive/%{version}.tar.gz#/sher
# 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 badshah400@gmail.com -- 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 @@ sed -i 's|group-location=.*|group-location=build/%{_lib}/python%{$python_version
}
%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*/*/*/