mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
dev-python/click-plugins: Bump to 1.1.1.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
parent
bc4528e54f
commit
d8c5b329d2
@ -1 +1,2 @@
|
||||
DIST click-plugins-1.1.1.tar.gz 8164 BLAKE2B 48d75b9445b72dca41516fe81d02c6fad8089630c0d49963f559a847b90c7897c8db64773c4ec5f4c162d0f2f4fdd14fe212d485765d38977145fd32acdd0dcb SHA512 bbd838f50603ac4e76daf3535fd5d27a17e17549addbc8b582df6d6193b4f07d743101ce52f0b71f326995fdfeac159805025770350ca2e7697f212dce0c4b1a
|
||||
DIST click_plugins-1.1.1.2.tar.gz 8343 BLAKE2B 53ce30531bb541bd7a92e8ebc49c711d13b4a2124f7336b41216c6c41156d2053a0666c1f6f5e1f987f074e1937706baf61a941dae1f0bddc00c9587da8a1ad1 SHA512 cdf5fd2cbe878ecd6c580a502904eec7ab4ee545e83af7599995572d0455324339bdbe316a03c20f90800ed62084c8778c5ceea375c031382169a49996279619
|
||||
|
||||
32
dev-python/click-plugins/click-plugins-1.1.1.2.ebuild
Normal file
32
dev-python/click-plugins/click-plugins-1.1.1.2.ebuild
Normal file
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Module for click to enable registering CLI commands via entry points"
|
||||
HOMEPAGE="
|
||||
https://github.com/click-contrib/click-plugins/
|
||||
https://pypi.org/project/click-plugins/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
# backport based on
|
||||
# https://github.com/click-contrib/click-plugins/commit/29e66eb05a5911e333501bd21466f02e6b697892
|
||||
"${FILESDIR}/${P}-click82.patch"
|
||||
)
|
||||
@ -0,0 +1,58 @@
|
||||
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
|
||||
index 935f37a..26549ef 100644
|
||||
--- a/tests/test_plugins.py
|
||||
+++ b/tests/test_plugins.py
|
||||
@@ -78,7 +78,7 @@ def test_registered():
|
||||
def test_register_and_run(runner):
|
||||
|
||||
result = runner.invoke(good_cli)
|
||||
- assert result.exit_code == 0
|
||||
+ assert result.exit_code == 2
|
||||
|
||||
for ep in iter_entry_points('_test_click_plugins.test_plugins'):
|
||||
cmd_result = runner.invoke(good_cli, [ep.name, 'something'])
|
||||
@@ -89,7 +89,7 @@ def test_register_and_run(runner):
|
||||
def test_broken_register_and_run(runner):
|
||||
|
||||
result = runner.invoke(broken_cli)
|
||||
- assert result.exit_code == 0
|
||||
+ assert result.exit_code == 2
|
||||
assert u'\U0001F4A9' in result.output or u'\u2020' in result.output
|
||||
|
||||
for ep in iter_entry_points('_test_click_plugins.broken_plugins'):
|
||||
@@ -108,7 +108,7 @@ def test_group_chain(runner):
|
||||
pass
|
||||
|
||||
result = runner.invoke(good_cli)
|
||||
- assert result.exit_code == 0
|
||||
+ assert result.exit_code == 2
|
||||
assert sub_cli.name in result.output
|
||||
for ep in iter_entry_points('_test_click_plugins.test_plugins'):
|
||||
assert ep.name in result.output
|
||||
@@ -121,7 +121,7 @@ def test_group_chain(runner):
|
||||
pass
|
||||
|
||||
result = runner.invoke(good_cli, ['sub-cli-plugins'])
|
||||
- assert result.exit_code == 0
|
||||
+ assert result.exit_code == 2
|
||||
for ep in iter_entry_points('_test_click_plugins.test_plugins'):
|
||||
assert ep.name in result.output
|
||||
|
||||
@@ -142,7 +142,7 @@ def test_exception():
|
||||
|
||||
def test_broken_register_and_run_with_help(runner):
|
||||
result = runner.invoke(broken_cli)
|
||||
- assert result.exit_code == 0
|
||||
+ assert result.exit_code == 2
|
||||
assert u'\U0001F4A9' in result.output or u'\u2020' in result.output
|
||||
|
||||
for ep in iter_entry_points('_test_click_plugins.broken_plugins'):
|
||||
@@ -153,7 +153,7 @@ def test_broken_register_and_run_with_help(runner):
|
||||
|
||||
def test_broken_register_and_run_with_args(runner):
|
||||
result = runner.invoke(broken_cli)
|
||||
- assert result.exit_code == 0
|
||||
+ assert result.exit_code == 2
|
||||
assert u'\U0001F4A9' in result.output or u'\u2020' in result.output
|
||||
|
||||
for ep in iter_entry_points('_test_click_plugins.broken_plugins'):
|
||||
Loading…
x
Reference in New Issue
Block a user