From c026c56fe79ae60356e7ea9fedef796a98098b33449e43c1555f59d16c01eb77 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 2 Jan 2023 19:59:13 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=204.1.4:=20=20=20*=20A=20memory?= =?UTF-8?q?=20leak=20has=20been=20resolved,=20that=20was=20failing=20to=20?= =?UTF-8?q?free=20the=20storage=20=20=20for=20the=20satellite=20name=20(a?= =?UTF-8?q?=20Python=20string)=20and=20catalog=20number=20(a=20Python=20?= =?UTF-8?q?=20=20integer)=20when=20the=20satellite=20object=20itself=20was?= =?UTF-8?q?=20freed.=20=20=20*=20In=20previous=20versions,=20if=20you=20as?= =?UTF-8?q?ked=20for=20the=20position=20of=20a=20body=20=20=20(a)=C2=A0who?= =?UTF-8?q?se=20elliptical=20or=20hyperbolic=20orbit=20has=20an=20eccentri?= =?UTF-8?q?city=20very=20=20=20close=20to=201.0=20and=20(b)=C2=A0which=20i?= =?UTF-8?q?s=20very=20far=20from=20perihelion,=20then=20the=20=20=20underl?= =?UTF-8?q?ying=20C=20library=20would=20print=20a=20warning=20``Near-parab?= =?UTF-8?q?olic=20orbit:=20=20=20inaccurate=20result``=20but=20let=20your?= =?UTF-8?q?=20Python=20script=20continue=20on=20unawares.=20=20=20Now,=20n?= =?UTF-8?q?o=20message=20is=20printed=20directly=20to=20the=20screen,=20an?= =?UTF-8?q?d=20instead=20a=20=20=20``RuntimeError``=20will=20tell=20you=20?= =?UTF-8?q?why=20PyEphem=20can=E2=80=99t=20compute=20the=20body=E2=80=99s?= =?UTF-8?q?=20=20=20position.=20=20=20*=20The=20underlying=20C=20library?= =?UTF-8?q?=20should=20no=20longer=20produce=20a=20segmentation=20fault=20?= =?UTF-8?q?=20=20if=20given=20the=20floating=20point=20number=20``NaN``=20?= =?UTF-8?q?as=20a=20date.=20=20The=20Python=20=20=20rising=20and=20setting?= =?UTF-8?q?=20logic=20now=20also=20watches=20out=20for=20``NaN``=20dates,?= =?UTF-8?q?=20and=20=20=20raises=20a=20``ValueError``=20when=20one=20is=20?= =?UTF-8?q?detected.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ephem?expand=0&rev=9 --- ephem-4.1.3.tar.gz | 3 --- ephem-4.1.4.tar.gz | 3 +++ python-ephem.changes | 20 ++++++++++++++++++++ python-ephem.spec | 4 ++-- 4 files changed, 25 insertions(+), 5 deletions(-) delete mode 100644 ephem-4.1.3.tar.gz create mode 100644 ephem-4.1.4.tar.gz diff --git a/ephem-4.1.3.tar.gz b/ephem-4.1.3.tar.gz deleted file mode 100644 index d100792..0000000 --- a/ephem-4.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7fa18685981ba528edd504052a9d5212a09aa5bf15c11a734edc6a86e8a8b56a -size 1255144 diff --git a/ephem-4.1.4.tar.gz b/ephem-4.1.4.tar.gz new file mode 100644 index 0000000..8f0794c --- /dev/null +++ b/ephem-4.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73a59f0d2162d1624535c3c3b75f956556bdbb2055eaf554a7bef147d3f9c760 +size 1256106 diff --git a/python-ephem.changes b/python-ephem.changes index db956e4..6c44e01 100644 --- a/python-ephem.changes +++ b/python-ephem.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Mon Jan 2 19:57:05 UTC 2023 - Dirk Müller + +- update to 4.1.4: + * A memory leak has been resolved, that was failing to free the storage + for the satellite name (a Python string) and catalog number (a Python + integer) when the satellite object itself was freed. + * In previous versions, if you asked for the position of a body + (a) whose elliptical or hyperbolic orbit has an eccentricity very + close to 1.0 and (b) which is very far from perihelion, then the + underlying C library would print a warning ``Near-parabolic orbit: + inaccurate result`` but let your Python script continue on unawares. + Now, no message is printed directly to the screen, and instead a + ``RuntimeError`` will tell you why PyEphem can’t compute the body’s + position. + * The underlying C library should no longer produce a segmentation fault + if given the floating point number ``NaN`` as a date. The Python + rising and setting logic now also watches out for ``NaN`` dates, and + raises a ``ValueError`` when one is detected. + ------------------------------------------------------------------- Mon Jan 17 20:46:45 UTC 2022 - Ben Greiner diff --git a/python-ephem.spec b/python-ephem.spec index fc93bab..082ecaa 100644 --- a/python-ephem.spec +++ b/python-ephem.spec @@ -1,7 +1,7 @@ # # spec file for package python-ephem # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ephem -Version: 4.1.3 +Version: 4.1.4 Release: 0 Summary: Scientific-grade astronomy routines for Python License: MIT