summaryrefslogtreecommitdiff
path: root/dev-python/python-fire
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-08-14 03:04:40 -0500
committerroot <root@alpha.trunkmasters.com>2026-08-14 03:04:40 -0500
commit44ac9950da93ffaa670439fbc31f0a3f95378bb3 (patch)
tree88c80e746a3195bb4d1869bcb64467fdabcc54c8 /dev-python/python-fire
parent00a5031b2e58fb36fc981fe226565880b4798a8b (diff)
downloadbaldeagleos-repo-44ac9950da93ffaa670439fbc31f0a3f95378bb3.tar.gz
baldeagleos-repo-44ac9950da93ffaa670439fbc31f0a3f95378bb3.tar.xz
baldeagleos-repo-44ac9950da93ffaa670439fbc31f0a3f95378bb3.zip
Adding metadata
Diffstat (limited to 'dev-python/python-fire')
-rw-r--r--dev-python/python-fire/Manifest1
-rw-r--r--dev-python/python-fire/files/python-fire-asyncio.patch22
-rw-r--r--dev-python/python-fire/files/python-fire-inspect.patch23
-rw-r--r--dev-python/python-fire/python-fire-0.7.0-r2.ebuild (renamed from dev-python/python-fire/python-fire-0.7.0-r1.ebuild)32
-rw-r--r--dev-python/python-fire/python-fire-0.7.1.ebuild53
5 files changed, 120 insertions, 11 deletions
diff --git a/dev-python/python-fire/Manifest b/dev-python/python-fire/Manifest
index 978471d2b02a..e6c9a19db451 100644
--- a/dev-python/python-fire/Manifest
+++ b/dev-python/python-fire/Manifest
@@ -1 +1,2 @@
DIST fire-0.7.0.tar.gz 87189 BLAKE2B a1cc759466ac78bae82b4ed50ce3915fe0e45308fb96e7b4c76fc0e04cc5ae950351fc736f8790d79d1cbd441240d41eebf9130fd57a1f7cc46f5b40404dbe5c SHA512 f451c19dde5359fc63298ef48f6cc9b2626f6693769d41031232eff024895b0f7f6679adc9ad5c5eb9036fad80b86fd787c2f4aaee4961c109904b8381c94119
+DIST fire-0.7.1.tar.gz 88720 BLAKE2B d11f11bf96fcbb17c20cf3830c81e29dedb8ba6b9fd06ab1562f87c3fd9203ddbb0fdd8c708aafee7fa898b5a82da443e75e4ef15f0f0a638372c3b8c792da52 SHA512 0cce927e14552fb9bdbfab73e32f7ef4665ff4bc9b134ee1b80f9c5b8752ab7db9f0353ebea92934288a273f7ab8be4188dc8b6e8922cb05e4b9d6997586e293
diff --git a/dev-python/python-fire/files/python-fire-asyncio.patch b/dev-python/python-fire/files/python-fire-asyncio.patch
new file mode 100644
index 000000000000..6c53b95dac17
--- /dev/null
+++ b/dev-python/python-fire/files/python-fire-asyncio.patch
@@ -0,0 +1,22 @@
+From: https://github.com/google/python-fire/commit/716bbc23d7eca949fdb682172283c8d18f742cb6
+From: David Bieber <david810@gmail.com>
+Subject: [PATCH] Add Python 3.13 and 3.14 checking in build workflow (#623)
+* Add Python 3.13 and 3.14 checking in build workflow
+
+--- a/fire/core.py 2024-09-22 18:14:50.000000000 +0200
++++ b/fire/core.py 2026-08-13 23:36:49.448259702 +0200
+@@ -678,8 +678,12 @@
+
+ # Call the function.
+ if inspectutils.IsCoroutineFunction(fn):
+- loop = asyncio.get_event_loop()
+- component = loop.run_until_complete(fn(*varargs, **kwargs))
++ try:
++ loop = asyncio.get_running_loop()
++ except RuntimeError:
++ component = asyncio.run(fn(*varargs, **kwargs))
++ else:
++ component = loop.run_until_complete(fn(*varargs, **kwargs))
+ else:
+ component = fn(*varargs, **kwargs)
+
diff --git a/dev-python/python-fire/files/python-fire-inspect.patch b/dev-python/python-fire/files/python-fire-inspect.patch
new file mode 100644
index 000000000000..2d72eb0d9ed9
--- /dev/null
+++ b/dev-python/python-fire/files/python-fire-inspect.patch
@@ -0,0 +1,23 @@
+From: https://github.com/google/python-fire/commit/716bbc23d7eca949fdb682172283c8d18f742cb6
+From: David Bieber <david810@gmail.com>
+Subject: [PATCH] Add Python 3.13 and 3.14 checking in build workflow (#623)
+* Add Python 3.13 and 3.14 checking in build workflow
+
+--- a/fire/inspectutils.py 2026-08-13 22:49:35.213681329 +0200
++++ b/fire/inspectutils.py 2026-08-13 22:51:08.232253224 +0200
+@@ -14,7 +14,6 @@
+
+ """Inspection utility functions for Python Fire."""
+
+-import asyncio
+ import inspect
+ import sys
+ import types
+@@ -343,6 +342,6 @@
+
+ def IsCoroutineFunction(fn):
+ try:
+- return asyncio.iscoroutinefunction(fn)
++ return inspect.iscoroutinefunction(fn)
+ except: # pylint: disable=bare-except
+ return False
diff --git a/dev-python/python-fire/python-fire-0.7.0-r1.ebuild b/dev-python/python-fire/python-fire-0.7.0-r2.ebuild
index b1cff5145c63..f60ef72eb258 100644
--- a/dev-python/python-fire/python-fire-0.7.0-r1.ebuild
+++ b/dev-python/python-fire/python-fire-0.7.0-r2.ebuild
@@ -9,29 +9,41 @@ PYPI_PN="fire"
inherit distutils-r1 pypi
DESCRIPTION="Library for automatically generating command line interfaces from Python objects"
-HOMEPAGE="https://pypi.org/project/python-fire/"
+HOMEPAGE="https://pypi.org/project/fire"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
RDEPEND="
- dev-python/six
- dev-python/termcolor
+ ${PYTHON_DEPS}
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/termcolor[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ ${PYTHON_DEPS}
"
DEPEND="
${RDEPEND}
test? (
- dev-python/hypothesis
- dev-python/mock
- dev-python/pytest-asyncio
- dev-python/termcolor
- dev-python/hypothesis
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/termcolor[${PYTHON_USEDEP}]
+ dev-python/hypothesis[${PYTHON_USEDEP}]
)
"
+PATCHES=(
+ "${FILESDIR}/python-fire-asyncio.patch"
+ "${FILESDIR}/python-fire-inspect.patch"
+)
+
EPYTEST_PLUGINS=( )
-EPYTEST_DESELECT=( "fire/fire_test.py::FireTest::testFireAsyncio" )
+
+distutils_enable_tests pytest
src_prepare() {
default
@@ -45,5 +57,3 @@ src_prepare() {
sed -ie "/tests_require/d" setup.py \
|| die "Failed to remove deprecated `tests_require`"
}
-
-distutils_enable_tests pytest
diff --git a/dev-python/python-fire/python-fire-0.7.1.ebuild b/dev-python/python-fire/python-fire-0.7.1.ebuild
new file mode 100644
index 000000000000..574b70d2b666
--- /dev/null
+++ b/dev-python/python-fire/python-fire-0.7.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 2022-2026 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="fire"
+inherit distutils-r1 pypi
+
+DESCRIPTION="Library for automatically generating command line interfaces from Python objects"
+HOMEPAGE="https://pypi.org/project/fire"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/termcolor[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/termcolor[${PYTHON_USEDEP}]
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/python-fire-asyncio.patch"
+ "${FILESDIR}/python-fire-inspect.patch"
+)
+
+EPYTEST_PLUGINS=( )
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ default
+ # Update / remove deprecated options
+ sed -ie "/license =/d" pyproject.toml \
+ || die "Failed to remove deprecated setuptools options"
+}