diff --git a/dev-python/cyclopts/Manifest b/dev-python/cyclopts/Manifest index 94a73e2aa5..4fa2430226 100644 --- a/dev-python/cyclopts/Manifest +++ b/dev-python/cyclopts/Manifest @@ -1,2 +1,3 @@ DIST cyclopts-4.16.1.gh.tar.gz 2336475 BLAKE2B ac5bc123d9b4286be687c86b77c8203a6933ff3ab3bd7575c06c4570cc44d485bdfc6adb59a6bda3ed5b98bc17677652bb0ac2eba8287d828e70a53bd02a1d3a SHA512 a4d1ca02ad59eee0b262500a587f3040482c7be1d17067a8b0e67a25744224d46a50b174ccb6c0dfabeb9bb94906eec25532bbba3b2b1136887290fc729b9986 DIST cyclopts-4.20.0.gh.tar.gz 2357430 BLAKE2B 003086abcc021de87d9ecca7b02cb1a4cd1ba860d492e01601b52672150c2ae50505613594e8d772668293749ca3d12d9ba09fe0aec8c286e13fa45f67a08522 SHA512 86d78fda4e54d26ccda74b9e87f5a0904e18eb40d2312f889b21f4aa9355da3b8e25798f2f4c12ee440d51c4e2fa90b8a023031b1d66ef895af9292b99232a74 +DIST cyclopts-4.21.0.gh.tar.gz 2360305 BLAKE2B 28ee3d5ccb0fe951ea5d96eeb6e220d945582f210bf1fe5649ff80cf5dea279bd865d64148d7737f028807ad4cee08f2046baad7cf0576b9db1dca004c6018a5 SHA512 bd0e699343519ff32a23b2e8031f52190672fc43b38c8a5a56cb72a0f15956059d07e73de453764db9534180fe947890e638bec2d2145985aa9420b2e30b84b8 diff --git a/dev-python/cyclopts/cyclopts-4.21.0.ebuild b/dev-python/cyclopts/cyclopts-4.21.0.ebuild new file mode 100644 index 0000000000..3150f9d88d --- /dev/null +++ b/dev-python/cyclopts/cyclopts-4.21.0.ebuild @@ -0,0 +1,58 @@ +# 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/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 YAML configurations" dev-python/pyyaml +}