From 4259c41cc40a8f7ffa4a6d8b2f4b8155ee230acb Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Fri, 30 Dec 2022 12:56:49 +0800 Subject: python3-pyephem: upgrade 4.1.3 -> 4.1.4 0001-Don-t-set-tp_print-on-Python-3.patch removed since it's included in 4.1.4 Changelog: ========== 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. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../0001-Don-t-set-tp_print-on-Python-3.patch | 44 ---------------------- .../python-pyephem/python3-pyephem_4.1.3.bb | 17 --------- .../python-pyephem/python3-pyephem_4.1.4.bb | 16 ++++++++ 3 files changed, 16 insertions(+), 61 deletions(-) delete mode 100644 meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch delete mode 100644 meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.3.bb create mode 100644 meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.4.bb (limited to 'meta-python/recipes-extended') diff --git a/meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch b/meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch deleted file mode 100644 index a84d852fb0..0000000000 --- a/meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 866f7560034e8b7a604432611b3cb2c92e76def9 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Sun, 28 Aug 2022 11:03:39 -0700 -Subject: [PATCH] Don't set tp_print on Python 3. - -In 3.8 it produces a compilation warning, in earlier versions it is ignored. - -Upstream-Status: Submitted [https://github.com/brandon-rhodes/pyephem/pull/245] -Signed-off-by: Khem Raj ---- - extensions/_libastro.c | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/extensions/_libastro.c b/extensions/_libastro.c -index ce07d93..c9ef1e6 100644 ---- a/extensions/_libastro.c -+++ b/extensions/_libastro.c -@@ -372,7 +372,11 @@ static PyTypeObject AngleType = { - sizeof(AngleObject), - 0, - 0, /* tp_dealloc */ -+#if PY_MAJOR_VERSION < 3 - Angle_print, /* tp_print */ -+#else -+ 0, /* reserved in 3.x */ -+#endif - 0, /* tp_getattr */ - 0, /* tp_setattr */ - 0, /* tp_compare */ -@@ -669,7 +673,11 @@ static PyTypeObject DateType = { - sizeof(PyFloatObject), - 0, - 0, /* tp_dealloc */ -+#if PY_MAJOR_VERSION < 3 - Date_print, /* tp_print */ -+#else -+ 0, /* tp_print slot is reserved and unused in Python 3 */ -+#endif - 0, /* tp_getattr */ - 0, /* tp_setattr */ - 0, /* tp_compare */ --- -2.37.2 - diff --git a/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.3.bb b/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.3.bb deleted file mode 100644 index 8c4f0eb405..0000000000 --- a/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.3.bb +++ /dev/null @@ -1,17 +0,0 @@ -SUMMARY = "PyEphem astronomical calculations" -HOMEPAGE = "http://rhodesmill.org/pyephem/" - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=9c930b395b435b00bb13ec83b0c99f40" - -SRC_URI += "file://0001-Don-t-set-tp_print-on-Python-3.patch" -SRC_URI[sha256sum] = "7fa18685981ba528edd504052a9d5212a09aa5bf15c11a734edc6a86e8a8b56a" - -PYPI_PACKAGE = "ephem" - -inherit pypi setuptools3 - -RDEPENDS:${PN} += "\ - ${PYTHON_PN}-datetime \ - ${PYTHON_PN}-math \ - " diff --git a/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.4.bb b/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.4.bb new file mode 100644 index 0000000000..8850b79e8c --- /dev/null +++ b/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.4.bb @@ -0,0 +1,16 @@ +SUMMARY = "PyEphem astronomical calculations" +HOMEPAGE = "http://rhodesmill.org/pyephem/" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=9c930b395b435b00bb13ec83b0c99f40" + +SRC_URI[sha256sum] = "73a59f0d2162d1624535c3c3b75f956556bdbb2055eaf554a7bef147d3f9c760" + +PYPI_PACKAGE = "ephem" + +inherit pypi setuptools3 + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-math \ + " -- cgit v1.2.3-54-g00ecf