Package Details: python-click-option-group 0.5.6-3

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
Submitter: dvzrv
Maintainer: None
Last Packager: Dominiquini
Votes: 3
Popularity: 0.77
First Submitted: 2024-10-17 07:34 (UTC)
Last Updated: 2024-12-26 15:20 (UTC)

Latest Comments

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...