From 4241e2d11b148ec5e384070a86c12f7ad7b1884d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 31 Oct 2023 09:47:15 +0000 Subject: gentoo auto-resync : 31:10:2023 - 09:47:15 --- dev-python/cleo/Manifest | 2 ++ dev-python/cleo/cleo-2.1.0.ebuild | 47 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 dev-python/cleo/cleo-2.1.0.ebuild (limited to 'dev-python/cleo') diff --git a/dev-python/cleo/Manifest b/dev-python/cleo/Manifest index 818dbf8155ad..f004ec8e0e29 100644 --- a/dev-python/cleo/Manifest +++ b/dev-python/cleo/Manifest @@ -1,3 +1,5 @@ DIST cleo-2.0.1.gh.tar.gz 154222 BLAKE2B dcaeff38c2dcb13b3c11200aa97cb2a1c16004558aabf9b44f1ba7ddd5d9c8c7784ea0ba1c50c19b015a6ff0659cb116b8ee926670091e39fd2b1cfd426cb72a SHA512 57a8e9cfc5486f73ade424199aaeb3def787a958031691aba2c6a230323d1c816316e3639dee7a07111aa0fc852d7088756f515cb24fdc84a40056ce969e5884 +DIST cleo-2.1.0.gh.tar.gz 165795 BLAKE2B 7c9d0cc869d1e185c2c5a092a8aa1d1b3cce5fc25246939c0ff94920ac7070000b110be9f6cd9d1f827ed951ff22b9ad62e3c17a941022967b7599e456cda837 SHA512 e73a4c02470052f0f602fae8b5bf7073f3342d0816074398b19f0fb25caddda51b6d2fcb9ef57026638d0dc8861a2b5142d87551b105cefa5e54426e4aa1225c EBUILD cleo-2.0.1-r1.ebuild 965 BLAKE2B 3e14db2c907640d8490cc071ffc8ebb0f2507dbe76783958499d5eb923f8a5fc1dbbc3e17c27277a5a6cd9eea7bc95220bf03a702ffd576c42ba3a8549e05c18 SHA512 b77f0dd4f8b87c2d9e7fb18034ff6ddd806b12948f351c257d1345ae4263dc870d28495ceaf5b795882b434823ea5a1bd45e782f73ff438f09838fe67065878a +EBUILD cleo-2.1.0.ebuild 970 BLAKE2B 1ad61d295f678393ef5eb505410ce5fbe1bdf34f284468f89a919b7195d18ba268d4b66e68484f1adbaba935a1d913a44ab1d19c6b4045564e88eea397d6d025 SHA512 ab91fd6f84b033e5e25883ec53a3778f20efb0612580728a97d65837637bc4bd6b825441ad18f60ea458db02c3ff4c605a258eec85325ad44cb4f9640e2aae4a MISC metadata.xml 517 BLAKE2B 57f7a68aac9ad122e22985a8c0653b1d2e0d558af70fb4c2647ff605bd38034513052e54bd30de61e8b3fed9deae3aa7f8b6ad656cc35c9d48b7c33024cc1496 SHA512 f36d1fcc2cd34ce638cae69f32e810e45873870e0b1711d747ef882b4463ed3b0da8881989539b00d2bfc7b39f9e5886b2b378575f8108bd0676ff28695cdcfe diff --git a/dev-python/cleo/cleo-2.1.0.ebuild b/dev-python/cleo/cleo-2.1.0.ebuild new file mode 100644 index 000000000000..eeb083c81bf9 --- /dev/null +++ b/dev-python/cleo/cleo-2.1.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="Python tool for building testable command-line interfaces" +HOMEPAGE=" + https://github.com/python-poetry/cleo/ + https://pypi.org/project/cleo/ +" +SRC_URI=" + https://github.com/python-poetry/cleo/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/crashtest[${PYTHON_USEDEP}] + dev-python/rapidfuzz[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # unpin rapidfuzz + sed -i -e '/rapidfuzz/s:\^:>=:' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_mock + epytest +} -- cgit v1.2.3