Hello community, here is the log from the commit of package python-sgp4 for openSUSE:Factory checked in at 2020-10-24 15:18:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sgp4 (Old) and /work/SRC/openSUSE:Factory/.python-sgp4.new.3463 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sgp4" Sat Oct 24 15:18:28 2020 rev:3 rq:843664 version:2.13 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sgp4/python-sgp4.changes 2020-10-16 16:17:05.864742556 +0200 +++ /work/SRC/openSUSE:Factory/.python-sgp4.new.3463/python-sgp4.changes 2020-10-24 15:18:49.108307611 +0200 @@ -1,0 +2,6 @@ +Fri Oct 16 17:49:47 UTC 2020 - Benjamin Greiner <c...@bnavigator.de> + +- Apply upstreams sgp4-fix69-precision.patch instead of own fix + gh#brandon-rhodes/python-sgp4#69 + +------------------------------------------------------------------- New: ---- sgp4-fix69-precision.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sgp4.spec ++++++ --- /var/tmp/diff_new_pack.9eD36I/_old 2020-10-24 15:18:50.216308885 +0200 +++ /var/tmp/diff_new_pack.9eD36I/_new 2020-10-24 15:18:50.220308889 +0200 @@ -26,6 +26,8 @@ URL: https://github.com/brandon-rhodes/python-sgp4 Source: https://files.pythonhosted.org/packages/source/s/sgp4/sgp4-%{version}.tar.gz Source99: https://github.com/brandon-rhodes/python-sgp4/raw/master/LICENSE +# PATCH-FIX-UPSTREAM sgp4-fix69-precision.patch -- relax precision on platforms gh#brandon-rhodes/python-sgp4#69 +Patch1: https://github.com/brandon-rhodes/python-sgp4/commit/8d6da331aace3b9c78e9973273911bc269d21d7e.patch#/sgp4-fix69-precision.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} @@ -50,10 +52,8 @@ over arrays of satellites and arrays of times with machine code instead of Python. %prep -%setup -q -n sgp4-%{version} +%autosetup -p1 -n sgp4-%{version} cp %{SOURCE99} . -# ease precision tolerances https://github.com/brandon-rhodes/python-sgp4/issues/69 -sed -i 's/GRAVITY_DIGITS = (/GRAVITY_DIGITS = 10\nGRAVITY_DIGITS_UPSTREAM =(/' sgp4/tests.py sed -i 's/error = 2e-7/error = 2e-5/' sgp4/tests.py %build ++++++ sgp4-fix69-precision.patch ++++++ >From 8d6da331aace3b9c78e9973273911bc269d21d7e Mon Sep 17 00:00:00 2001 From: Brandon Rhodes <bran...@rhodesmill.org> Date: Fri, 16 Oct 2020 09:33:11 -0400 Subject: [PATCH] For #69, lower test precision on other platforms --- sgp4/tests.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/sgp4/tests.py b/sgp4/tests.py index 954036a..a7a737d 100644 --- a/sgp4/tests.py +++ b/sgp4/tests.py @@ -239,10 +239,17 @@ def test_all_three_gravity_models_with_sgp4init(): GRAVITY_DIGITS = ( # Why don't Python and C agree more closely? 4 if not accelerated - # See https://github.com/conda-forge/sgp4-feedstock/pull/19 for details. - else 11 if platform.system() != 'Linux' - # Insist on very high precision on my Linux laptop. - else 12 + + # Insist on very high precision on my Linux laptop, to signal me if + # some future adjustment subtlely changes the library's results. + else 12 if platform.system() == 'Linux' and platform.machine() == 'x86_64' + + # Otherwise, reduce our expectations. Note that at least 6 digits + # past the decimal point are necessary to let the test distinguish + # between WSG72OLD and WGS72. See: + # https://github.com/conda-forge/sgp4-feedstock/pull/19 + # https://github.com/brandon-rhodes/python-sgp4/issues/69 + else 10 ) def assert_wgs72old(sat):