Package Details: python-click-option-group 0.5.9-1

Git Clone URL: https://aur.archlinux.org/python-click-option-group.git (read-only, click to copy)
Package Base: python-click-option-group
Description: Option groups missing in Click
Upstream URL: https://github.com/click-contrib/click-option-group
Keywords: click
Licenses: BSD-3-Clause
Submitter: dvzrv
Maintainer: getzze
Last Packager: getzze
Votes: 6
Popularity: 0.087321
First Submitted: 2024-10-17 07:34 (UTC)
Last Updated: 2025-10-23 16:32 (UTC)

Latest Comments

gileri commented on 2025-10-17 12:07 (UTC)

Hi, upgrade to 0.5.9 works fine:

diff --git a/.SRCINFO b/.SRCINFO
index 6c525e2..9d44d20 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = python-click-option-group
    pkgdesc = Option groups missing in Click
-   pkgver = 0.5.7
+   pkgver = 0.5.9
    pkgrel = 2
    url = https://github.com/click-contrib/click-option-group
    arch = any
@@ -13,8 +13,8 @@ pkgbase = python-click-option-group
    makedepends = python-wheel
    depends = python
    depends = python-click
-   source = https://files.pythonhosted.org/packages/source/c/click_option_group/click_option_group-0.5.7.tar.gz
-   sha512sums = 0e6c82b2b6a4a790c767ad775def93c3487e97990bbc172c95b6d90ccc366c8fb9dfe0fff4eecb64538218213c65642732eb1a0d421d2826e1f13689e6d5621a
-   b2sums = 31357084654dc1011eeab64b0298fd5f5a5b417a4621dff7442b6dea02ffbe304d267adccb2f7adef8b7a005ad6055d5982b9e7b7990242fdf3a417c7c817040
+   source = https://files.pythonhosted.org/packages/source/c/click_option_group/click_option_group-0.5.9.tar.gz
+   sha512sums = 7c83a2460c08a3dc2ac129901acda2b19d828d54e7765fe03452648059d27ac98ce68b6ce703fd5c7876f85c6650b943f3e1ebbbe96c44590ed888dccd943314
+   b2sums = 27c1547866ee696b8b822bc3de661c0d2209b2cc7febfdab7f8392616d46d2695b76d0cf4cbfb16482e1ac17c296ee4850d8f811bc721f8876b562afecbb62e3

 pkgname = python-click-option-group
diff --git a/PKGBUILD b/PKGBUILD
index d224918..5337c6d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@

 _name=click_option_group
 pkgname=python-click-option-group
-pkgver=0.5.7
+pkgver=0.5.9
 pkgrel=2
 pkgdesc="Option groups missing in Click"
 arch=(any)
@@ -23,8 +23,8 @@ makedepends=(
 )
 checkdepends=(python-pytest)
 source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-sha512sums=('0e6c82b2b6a4a790c767ad775def93c3487e97990bbc172c95b6d90ccc366c8fb9dfe0fff4eecb64538218213c65642732eb1a0d421d2826e1f13689e6d5621a')
-b2sums=('31357084654dc1011eeab64b0298fd5f5a5b417a4621dff7442b6dea02ffbe304d267adccb2f7adef8b7a005ad6055d5982b9e7b7990242fdf3a417c7c817040')
+sha512sums=('7c83a2460c08a3dc2ac129901acda2b19d828d54e7765fe03452648059d27ac98ce68b6ce703fd5c7876f85c6650b943f3e1ebbbe96c44590ed888dccd943314')
+b2sums=('27c1547866ee696b8b822bc3de661c0d2209b2cc7febfdab7f8392616d46d2695b76d0cf4cbfb16482e1ac17c296ee4850d8f811bc721f8876b562afecbb62e3')

 build() {
   cd $_name-$pkgver
@@ -39,7 +39,7 @@ check() {
   python -m installer --destdir=test_dir dist/*.whl
   export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"

-  pytest -vv
+  pytest
 }

 package() {

varqox commented on 2025-02-18 19:01 (UTC) (edited on 2025-02-18 19:02 (UTC) by varqox)

Hello, I have a problem with building the package. Could you help?

================================================================================================================== FAILURES ===================================================================================================================
______________________________________________________________________________________________________ test_missing_group_decl_first_api ______________________________________________________________________________________________________

runner = <click.testing.CliRunner object at 0x7008392560d0>

    def test_missing_group_decl_first_api(runner):
        @click.command()
        @click.option('--hello1')
        @optgroup.option('--foo')
        @optgroup.option('--bar')
        @click.option('--hello2')
        def cli(**params):
            pass

        result = runner.invoke(cli, ['--help'])

>       assert result.exception
E       assert None
E        +  where None = <Result okay>.exception

tests/test_click_option_group.py:111: AssertionError
=========================================================================================================== short test summary info ===========================================================================================================
FAILED tests/test_click_option_group.py::test_missing_group_decl_first_api - assert None
 +  where None = <Result okay>.exception
======================================================================================================== 1 failed, 30 passed in 0.12s =========================================================================================================
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'python-click-option-group-0.5.6-3':

Korialo commented on 2024-12-26 20:44 (UTC)

@Dominiquini, Thanks for the quick fix!

Dominiquini commented on 2024-12-26 15:21 (UTC)

@Korialo: Fixed! Thanks for the report!

Korialo commented on 2024-12-26 15:00 (UTC)

Why this package itself as check dependency?

==> Starting check()...
/usr/lib/python3.13/site-packages/pytest_loop/__init__.py:149: SyntaxWarning: invalid escape sequence '\['
  pattern = "\[ \d+ \]"
========================================================================================== test session starts ===========================================================================================
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python
cachedir: .pytest_cache
rootdir: /home/amro/Downloads/buildz/python-click-option-group/src/click-option-group-0.5.6
plugins: anyio-4.6.2.post1, loop-1.0.13
collected 0 items / 1 error                                                                                                                                                                              

================================================================================================= ERRORS =================================================================================================
___________________________________________________________________________ ERROR collecting tests/test_click_option_group.py ____________________________________________________________________________
ImportError while importing test module '/home/amro/Downloads/buildz/python-click-option-group/src/click-option-group-0.5.6/tests/test_click_option_group.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/site-packages/_pytest/python.py:493: in importtestmodule
    mod = import_path(
/usr/lib/python3.13/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1387: in _gcd_import
    ???
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:184: in exec_module
    exec(co, module.__dict__)
tests/test_click_option_group.py:8: in <module>
    from click_option_group import (
E   ModuleNotFoundError: No module named 'click_option_group'
======================================================================================== short test summary info =========================================================================================
ERROR tests/test_click_option_group.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================================ 1 error in 0.20s ============================================================================================
==> ERROR: A failure occurred in check().
    Aborting...