Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-sherpa for openSUSE:Factory checked in at 2021-08-06 22:44:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sherpa (Old) and /work/SRC/openSUSE:Factory/.python-sherpa.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sherpa" Fri Aug 6 22:44:50 2021 rev:10 rq:910430 version:4.13.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sherpa/python-sherpa.changes 2021-06-11 22:31:27.202211235 +0200 +++ /work/SRC/openSUSE:Factory/.python-sherpa.new.1899/python-sherpa.changes 2021-08-06 22:45:31.485991414 +0200 @@ -1,0 +2,6 @@ +Thu Aug 5 19:36:45 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Add sherpa-pr1227-astropy43.patch in order to fix test failure + gh#sherpa/sherpa#1227 + +------------------------------------------------------------------- New: ---- sherpa-pr1227-astropy43.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sherpa.spec ++++++ --- /var/tmp/diff_new_pack.SqnABb/_old 2021-08-06 22:45:31.977990542 +0200 +++ /var/tmp/diff_new_pack.SqnABb/_new 2021-08-06 22:45:31.977990542 +0200 @@ -27,6 +27,8 @@ URL: https://github.com/sherpa/sherpa/ Source: https://github.com/sherpa/sherpa/archive/%{version}.tar.gz#/sherpa-%{version}.tar.gz Patch1: reproducible.patch +# PATCH-FIX-UPSTREAM sherpa-pr1227-astropy43.patch -- gh#sherpa/sherpa#1227 +Patch2: https://github.com/sherpa/sherpa/pull/1227.patch#/sherpa-pr1227-astropy43.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module setuptools} ++++++ sherpa-pr1227-astropy43.patch ++++++ >From 630574022f538c86265ba01c283b8ebc39ce41a0 Mon Sep 17 00:00:00 2001 From: Douglas Burke <dburke...@gmail.com> Date: Mon, 26 Jul 2021 16:10:25 -0400 Subject: [PATCH] Support AstroPy 4.3 for tests The FITS checking meant that a test that created a test FITS file was no-longer valid for AstroPy, so tweak the output to appease both AstroPy 4.3 and fverify (at least for the header lines, it still claims the fil character is wrong but this is less important). --- sherpa/astro/io/tests/test_io.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sherpa/astro/io/tests/test_io.py b/sherpa/astro/io/tests/test_io.py index daa52d096d..a2bf6fdc93 100644 --- a/sherpa/astro/io/tests/test_io.py +++ b/sherpa/astro/io/tests/test_io.py @@ -150,8 +150,12 @@ def fake_rmf(outfile): def hdr(key, value): if isinstance(value, str): value = "'{}'".format(value) - elif isinstance(value, bool): - value = 'T' if value else 'F' + else: + if isinstance(value, bool): + value = 'T' if value else 'F' + + # add spacing to make FVERIFY happy + value = f"{str(value):>20s}" out = "{:8s}= {}".format(key, value) return out.ljust(80)