commit: 678363bc9f14a83e9fea7b2382f3f6bc290f6213 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Jun 1 06:59:56 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Jun 1 07:25:32 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=678363bc
dev-python/click-default-group: update EAPI 7 -> 8 Closes: https://bugs.gentoo.org/834585 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/click-default-group/Manifest | 1 + .../click-default-group-1.2.2-r1.ebuild | 24 ++++++++++++++++++++++ .../click-default-group-1.2.2-tests-click-8.patch | 21 +++++++++++++++++++ 3 files changed, 46 insertions(+) diff --git a/dev-python/click-default-group/Manifest b/dev-python/click-default-group/Manifest index 82a2fa1941d1..86387c75a24a 100644 --- a/dev-python/click-default-group/Manifest +++ b/dev-python/click-default-group/Manifest @@ -1 +1,2 @@ +DIST click-default-group-1.2.2.gh.tar.gz 4753 BLAKE2B 919e3921ef3c6723b92cab8433032237af4e5583084badb6cc53d82971d81aa910ae6553deefea2ac46067d2618bb8f6d2003f0b2c4ced04acc5b46588012614 SHA512 6f296d154813e0c3dbf8e435c4c1b4394f51a000320c5585aeb78b81f30fe15bd27a8aad0fdbb71fccb88dc3083682519f1dd06572c8d5c35639fb9c3acf73fa DIST click-default-group-1.2.2.tar.gz 4753 BLAKE2B 919e3921ef3c6723b92cab8433032237af4e5583084badb6cc53d82971d81aa910ae6553deefea2ac46067d2618bb8f6d2003f0b2c4ced04acc5b46588012614 SHA512 6f296d154813e0c3dbf8e435c4c1b4394f51a000320c5585aeb78b81f30fe15bd27a8aad0fdbb71fccb88dc3083682519f1dd06572c8d5c35639fb9c3acf73fa diff --git a/dev-python/click-default-group/click-default-group-1.2.2-r1.ebuild b/dev-python/click-default-group/click-default-group-1.2.2-r1.ebuild new file mode 100644 index 000000000000..4e3a62d54460 --- /dev/null +++ b/dev-python/click-default-group/click-default-group-1.2.2-r1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="Extends click. Group to invoke a command without explicit subcommand name" +HOMEPAGE="https://github.com/click-contrib/click-default-group" +SRC_URI="https://github.com/click-contrib/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND="dev-python/click[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.2-tests-click-8.patch +) + +distutils_enable_tests pytest diff --git a/dev-python/click-default-group/files/click-default-group-1.2.2-tests-click-8.patch b/dev-python/click-default-group/files/click-default-group-1.2.2-tests-click-8.patch new file mode 100644 index 000000000000..e2612704116d --- /dev/null +++ b/dev-python/click-default-group/files/click-default-group-1.2.2-tests-click-8.patch @@ -0,0 +1,21 @@ +https://github.com/click-contrib/click-default-group/pull/18 +https://github.com/click-contrib/click-default-group/issues/16 + +From 9415c77d05cf7d16876e7d70a49a41a6189983b4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= <d...@schuetz-co.de> +Date: Sun, 20 Jun 2021 16:11:42 +0200 +Subject: [PATCH] make tests compatible with click 8 + +It now outputs "No such option". +--- a/test.py ++++ b/test.py +@@ -30,7 +30,7 @@ def bar(): + + def test_default_command_with_arguments(): + assert r.invoke(cli, ['--foo', 'foooo']).output == 'foooo\n' +- assert 'no such option' in r.invoke(cli, ['-x']).output ++ assert 'no such option' in r.invoke(cli, ['-x']).output.lower() + + + def test_group_arguments(): +