summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-01 07:59:56 +0100
committerSam James <sam@gentoo.org>2022-06-01 08:25:32 +0100
commit678363bc9f14a83e9fea7b2382f3f6bc290f6213 (patch)
tree31cb93d9bd709ea3886fce49b5721e350461fb4a /dev-python/click-default-group
parentdev-python/pip: Bump to 22.1.2 (diff)
downloadgentoo-678363bc9f14a83e9fea7b2382f3f6bc290f6213.tar.gz
gentoo-678363bc9f14a83e9fea7b2382f3f6bc290f6213.tar.bz2
gentoo-678363bc9f14a83e9fea7b2382f3f6bc290f6213.zip
dev-python/click-default-group: update EAPI 7 -> 8
Closes: https://bugs.gentoo.org/834585 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/click-default-group')
-rw-r--r--dev-python/click-default-group/Manifest1
-rw-r--r--dev-python/click-default-group/click-default-group-1.2.2-r1.ebuild24
-rw-r--r--dev-python/click-default-group/files/click-default-group-1.2.2-tests-click-8.patch21
3 files changed, 46 insertions, 0 deletions
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?= <dev@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():
+