summaryrefslogtreecommitdiff
path: root/dev-python/pymeeus
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pymeeus')
-rw-r--r--dev-python/pymeeus/Manifest1
-rw-r--r--dev-python/pymeeus/files/pymeeus-0.5.12-pytest8.patch88
-rw-r--r--dev-python/pymeeus/metadata.xml12
-rw-r--r--dev-python/pymeeus/pymeeus-0.5.12.ebuild30
4 files changed, 0 insertions, 131 deletions
diff --git a/dev-python/pymeeus/Manifest b/dev-python/pymeeus/Manifest
deleted file mode 100644
index bcec1ec7bb94..000000000000
--- a/dev-python/pymeeus/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST PyMeeus-0.5.12.tar.gz 5752712 BLAKE2B f7c80c79d72c071a57a19373ce818892f2e56e5339c4b8f2e2e2ff32e7363d8607046962f4289b7802a3219d03fafbd6ad233a271dba1f0d46ee29052d0125c1 SHA512 33f68f352cb6737aeec9782727c5ded921cf6f5561cfd7ecb237f7cf4b431e1010f7dff49d779ea368c8298a3012da84f6fa3afc7efc08579b798bb17558c423
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?= <anarcat@debian.org>
-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
deleted file mode 100644
index 977daa513a80..000000000000
--- a/dev-python/pymeeus/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>pastalian46@gmail.com</email>
- <name>Takuya Wakazono</name>
- </maintainer>
- <upstream>
- <remote-id type="github">architest/pymeeus</remote-id>
- <remote-id type="pypi">PyMeeus</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-python/pymeeus/pymeeus-0.5.12.ebuild b/dev-python/pymeeus/pymeeus-0.5.12.ebuild
deleted file mode 100644
index 4e3184e5ba8e..000000000000
--- a/dev-python/pymeeus/pymeeus-0.5.12.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-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"
-HOMEPAGE="
- https://pypi.org/project/PyMeeus/
- https://github.com/architest/pymeeus
-"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-
-PATCHES=(
- # bug #928258
- "${FILESDIR}/${P}-pytest8.patch"
-)
-
-distutils_enable_tests pytest
-
-distutils_enable_sphinx docs/source \
- dev-python/sphinx-rtd-theme