From a46f0ec88e6c7ea84ed2f67a40bbf89ef44bc6af Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Jun 2026 10:59:35 -0500 Subject: Adding metadata --- dev-python/pymeeus/Manifest | 3 + .../pymeeus/files/pymeeus-0.5.12-pytest8.patch | 88 ---------------------- dev-python/pymeeus/files/pytest-7.2.patch | 86 +++++++++++++++++++++ dev-python/pymeeus/metadata.xml | 7 +- dev-python/pymeeus/pymeeus-0.5.12.ebuild | 9 ++- 5 files changed, 99 insertions(+), 94 deletions(-) delete mode 100644 dev-python/pymeeus/files/pymeeus-0.5.12-pytest8.patch create mode 100644 dev-python/pymeeus/files/pytest-7.2.patch (limited to 'dev-python/pymeeus') diff --git a/dev-python/pymeeus/Manifest b/dev-python/pymeeus/Manifest index bcec1ec7bb94..204a1e5e6069 100644 --- a/dev-python/pymeeus/Manifest +++ b/dev-python/pymeeus/Manifest @@ -1 +1,4 @@ +AUX pytest-7.2.patch 2407 BLAKE2B 9b5952cf928ba0b7b9d7fb65f67f793c06103d1932cdff8fe70f6ca6baa4f547eb221230a7ab25e8aebdf6a71fb5d68f7e5bfeec22db31391680496d93acfe32 SHA512 a615d94c2a9f4e30c7320af1ded090352bbc215b01e5415b3f6ff61fece9347b8ff3174166d3833e756ab2621f0a30c4e185a50f20c5f08e9c0b6420c966eb3c DIST PyMeeus-0.5.12.tar.gz 5752712 BLAKE2B f7c80c79d72c071a57a19373ce818892f2e56e5339c4b8f2e2e2ff32e7363d8607046962f4289b7802a3219d03fafbd6ad233a271dba1f0d46ee29052d0125c1 SHA512 33f68f352cb6737aeec9782727c5ded921cf6f5561cfd7ecb237f7cf4b431e1010f7dff49d779ea368c8298a3012da84f6fa3afc7efc08579b798bb17558c423 +EBUILD pymeeus-0.5.12.ebuild 619 BLAKE2B 20abfb9741165327ae23126edccf24a646ff394925660f90b3a8a21134f14c047aac9649399e2637722444673aa4efa2dff519397ebd2ebc960ab8425474b83f SHA512 bd0184cd594c1079cb03275f7501ae66116b6dbcadb9694ada2a34c24bb20d6c333763f4604a786c940df87fc22db634c74ab37da20f64b601de91866f3c1d3a +MISC metadata.xml 448 BLAKE2B 00d5e32d6b053c5f7a36775f41abdcc3aca7554ee61b6517998c6334784e3d98ec280c142157aaafd9730b412bdafbeee2381ba215b90bf9126a6690f6d66407 SHA512 9c48c40db82968e5aadbec79b619c54161c13e87401ccaab6bd9f32316be5a66397c6ea8b877754a119f2d14fe6d373cca45f1eb880d223c33f7c1a079734226 diff --git a/dev-python/pymeeus/files/pymeeus-0.5.12-pytest8.patch b/dev-python/pymeeus/files/pymeeus-0.5.12-pytest8.patch deleted file mode 100644 index 90fbf79211b3..000000000000 --- a/dev-python/pymeeus/files/pymeeus-0.5.12-pytest8.patch +++ /dev/null @@ -1,88 +0,0 @@ -https://bugs.gentoo.org/928258 -https://github.com/architest/pymeeus/issues/24 -From f064abfda6b3cb48cb42a6827cd250413056f227 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= -Date: Sat, 6 Apr 2024 22:22:52 -0400 -Subject: [PATCH] fix pytest 7.2 compatibility - -Pytest 7.2 deprecated plain top-level `setup()` and `teardown()` -functions in favor of their own decorators: - -https://docs.pytest.org/en/latest/changelog.html#pytest-7-2-0-2022-10-23 -https://docs.pytest.org/en/latest/deprecations.html#setup-teardown - -Now we need to use module-level setup/teardown, which is extremely -similar, just named differently: - -https://docs.pytest.org/en/latest/how-to/xunit_setup.html#module-level-setup-teardown - -We keep compatibility shims for older pytest releases. - -Closes: #24 ---- - tests/test_curvefitting.py | 10 +++++++--- - tests/test_interpolation.py | 9 +++++++-- - 2 files changed, 14 insertions(+), 5 deletions(-) - -diff --git a/tests/test_curvefitting.py b/tests/test_curvefitting.py -index 9398327..0d20cca 100644 ---- a/tests/test_curvefitting.py -+++ b/tests/test_curvefitting.py -@@ -31,9 +31,8 @@ - cf4 = CurveFitting() - - --def setup(): -+def setup_module(): - """This function is used to set up the environment for the tests""" -- - # Set up a few CurveFitting objects - cf1.set([73.0, 38.0, 35.0, 42.0, 78.0, 68.0, 74.0, 42.0, 52.0, 54.0, 39.0, - 61.0, 42.0, 49.0, 50.0, 62.0, 44.0, 39.0, 43.0, 54.0, 44.0, 37.0], -@@ -58,10 +57,15 @@ def setup(): - -0.8372, -0.4377, -0.3640, -0.3508, -0.2126]) - - --def teardown(): -+def teardown_module(): - pass - - -+# pre pytest 7.2 compatibility -+setup = setup_module -+teardown = teardown_module -+ -+ - # CurveFitting class - - def test_curvefitting_constructor(): -diff --git a/tests/test_interpolation.py b/tests/test_interpolation.py -index e853c37..08f7b6e 100644 ---- a/tests/test_interpolation.py -+++ b/tests/test_interpolation.py -@@ -32,7 +32,7 @@ - i_sine = Interpolation() - - --def setup(): -+def setup_module(): - """This function is used to set up the environment for the tests""" - # Set up a interpolation object which uses Right Ascension - y0 = Angle(10, 18, 48.732, ra=True) -@@ -64,10 +64,15 @@ def setup(): - 0.5236885653, 0.5453707057]) - - --def teardown(): -+def teardown_module(): - pass - - -+# pre pytest 7.2 ompatibility -+setup = setup_module -+teardown = teardown_module -+ -+ - # Interpolation class - - def test_interpolation_constructor(): diff --git a/dev-python/pymeeus/files/pytest-7.2.patch b/dev-python/pymeeus/files/pytest-7.2.patch new file mode 100644 index 000000000000..51534a8bd277 --- /dev/null +++ b/dev-python/pymeeus/files/pytest-7.2.patch @@ -0,0 +1,86 @@ +From f064abfda6b3cb48cb42a6827cd250413056f227 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= +Date: Sat, 6 Apr 2024 22:22:52 -0400 +Subject: [PATCH] fix pytest 7.2 compatibility + +Pytest 7.2 deprecated plain top-level `setup()` and `teardown()` +functions in favor of their own decorators: + +https://docs.pytest.org/en/latest/changelog.html#pytest-7-2-0-2022-10-23 +https://docs.pytest.org/en/latest/deprecations.html#setup-teardown + +Now we need to use module-level setup/teardown, which is extremely +similar, just named differently: + +https://docs.pytest.org/en/latest/how-to/xunit_setup.html#module-level-setup-teardown + +We keep compatibility shims for older pytest releases. + +Closes: #24 +--- + tests/test_curvefitting.py | 10 +++++++--- + tests/test_interpolation.py | 9 +++++++-- + 2 files changed, 14 insertions(+), 5 deletions(-) + +diff --git a/tests/test_curvefitting.py b/tests/test_curvefitting.py +index 9398327..0d20cca 100644 +--- a/tests/test_curvefitting.py ++++ b/tests/test_curvefitting.py +@@ -31,9 +31,8 @@ + cf4 = CurveFitting() + + +-def setup(): ++def setup_module(): + """This function is used to set up the environment for the tests""" +- + # Set up a few CurveFitting objects + cf1.set([73.0, 38.0, 35.0, 42.0, 78.0, 68.0, 74.0, 42.0, 52.0, 54.0, 39.0, + 61.0, 42.0, 49.0, 50.0, 62.0, 44.0, 39.0, 43.0, 54.0, 44.0, 37.0], +@@ -58,10 +57,15 @@ def setup(): + -0.8372, -0.4377, -0.3640, -0.3508, -0.2126]) + + +-def teardown(): ++def teardown_module(): + pass + + ++# pre pytest 7.2 compatibility ++setup = setup_module ++teardown = teardown_module ++ ++ + # CurveFitting class + + def test_curvefitting_constructor(): +diff --git a/tests/test_interpolation.py b/tests/test_interpolation.py +index e853c37..08f7b6e 100644 +--- a/tests/test_interpolation.py ++++ b/tests/test_interpolation.py +@@ -32,7 +32,7 @@ + i_sine = Interpolation() + + +-def setup(): ++def setup_module(): + """This function is used to set up the environment for the tests""" + # Set up a interpolation object which uses Right Ascension + y0 = Angle(10, 18, 48.732, ra=True) +@@ -64,10 +64,15 @@ def setup(): + 0.5236885653, 0.5453707057]) + + +-def teardown(): ++def teardown_module(): + pass + + ++# pre pytest 7.2 ompatibility ++setup = setup_module ++teardown = teardown_module ++ ++ + # Interpolation class + + def test_interpolation_constructor(): diff --git a/dev-python/pymeeus/metadata.xml b/dev-python/pymeeus/metadata.xml index a83a6b5beb53..ccdc8e6dc829 100644 --- a/dev-python/pymeeus/metadata.xml +++ b/dev-python/pymeeus/metadata.xml @@ -2,8 +2,11 @@ - pastalian46@gmail.com - Takuya Wakazono + marcin.deranek@slonko.net + Marcin Deranek + + https://github.com/architest/pymeeus/issues + baldeagleos-repo diff --git a/dev-python/pymeeus/pymeeus-0.5.12.ebuild b/dev-python/pymeeus/pymeeus-0.5.12.ebuild index 4e3184e5ba8e..c6569fef3995 100644 --- a/dev-python/pymeeus/pymeeus-0.5.12.ebuild +++ b/dev-python/pymeeus/pymeeus-0.5.12.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -7,6 +7,7 @@ PYTHON_COMPAT=( python3_{13..14} ) DISTUTILS_USE_PEP517=setuptools PYPI_PN="PyMeeus" PYPI_NO_NORMALIZE=1 + inherit distutils-r1 pypi DESCRIPTION="Python implementation of Jean Meeus astronomical routines" @@ -20,11 +21,11 @@ SLOT="0" KEYWORDS="~amd64" PATCHES=( - # bug #928258 - "${FILESDIR}/${P}-pytest8.patch" + "${FILESDIR}/pytest-7.2.patch" ) -distutils_enable_tests pytest +DOCS=( README.rst ) +distutils_enable_tests pytest distutils_enable_sphinx docs/source \ dev-python/sphinx-rtd-theme -- cgit v1.3.1