From 0e2fdb5f401a78cbb4a82506cbdbb5d438c65f37 Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Thu, 26 Mar 2026 02:23:57 +0100 Subject: [PATCH] dev-python/cyclopts: new package, add 4.10.1 Signed-off-by: Florian Albrechtskirchinger --- dev-python/cyclopts/Manifest | 1 + dev-python/cyclopts/cyclopts-4.10.1.ebuild | 60 ++++++++++++++++++++++ dev-python/cyclopts/metadata.xml | 12 +++++ 3 files changed, 73 insertions(+) create mode 100644 dev-python/cyclopts/Manifest create mode 100644 dev-python/cyclopts/cyclopts-4.10.1.ebuild create mode 100644 dev-python/cyclopts/metadata.xml diff --git a/dev-python/cyclopts/Manifest b/dev-python/cyclopts/Manifest new file mode 100644 index 0000000000..eb73515d18 --- /dev/null +++ b/dev-python/cyclopts/Manifest @@ -0,0 +1 @@ +DIST cyclopts-4.10.1.gh.tar.gz 2278757 BLAKE2B 04af4b675ede1313bcab80dd222c94c3bf9a0ca24cdb485e9320aa6074e399d8beb55b7ee9abd651140d52d10d3969606f861fcc15abd1ef7cfe7d28507ea4da SHA512 4674f79b1fa161f43468b4519a560241ecdc834c6bf26a60dad52755b22fa56e180db0fbcf03252872b61f70744da9754e0efa3fb0cff6a68201c468fabcd31e diff --git a/dev-python/cyclopts/cyclopts-4.10.1.ebuild b/dev-python/cyclopts/cyclopts-4.10.1.ebuild new file mode 100644 index 0000000000..b9afd139f1 --- /dev/null +++ b/dev-python/cyclopts/cyclopts-4.10.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{12..14} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="Intuitive, easy CLIs based on type hints" +HOMEPAGE=" + https://github.com/BrianPugh/cyclopts + https://pypi.org/project/cyclopts/ +" +SRC_URI="https://github.com/BrianPugh/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + >=dev-python/attrs-23.1.0[${PYTHON_USEDEP}] + >=dev-python/docstring-parser-0.15[${PYTHON_USEDEP}] + >=dev-python/rich-13.6.0[${PYTHON_USEDEP}] + >=dev-python/rich-rst-1.3.1[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + >=dev-python/pydantic-2.11.2[${PYTHON_USEDEP}] + >=dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + >=dev-python/tomli-2.0.0[${PYTHON_USEDEP}] + >=dev-python/trio-0.10.0[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( + pytest-mock + syrupy +) +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Requires dev-python/mkdocs + tests/test_docs_snapshots.py::TestMkDocsDirectiveSnapshots +) +EPYTEST_IGNORE=( + # Requires dev-python/mkdocs + tests/test_mkdocs_ext.py +) + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +pkg_postinst() { + optfeature "Trio async backend" dev-python/trio + optfeature "reading TOML configurations" dev-python/tomli + optfeature "reading YAML configurations" dev-python/pyyaml +} diff --git a/dev-python/cyclopts/metadata.xml b/dev-python/cyclopts/metadata.xml new file mode 100644 index 0000000000..1acbc3a241 --- /dev/null +++ b/dev-python/cyclopts/metadata.xml @@ -0,0 +1,12 @@ + + + + + falbrechtskirchinger@gmail.com + Florian Albrechtskirchinger + + + cyclopts + BrianPugh/cyclopts + +