From f5f329761f053738bcdbf81dce42cb40b92fbc236dc75f8a422feaf1cf48d80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Mar 2026 12:44:06 +0000 Subject: [PATCH] update to 7.6.3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-extra?expand=0&rev=40 --- .gitattributes | 24 +++ .gitignore | 4 + click-extra-7.1.0.tar.gz | 3 + click-extra-7.6.0.tar.gz | 3 + click-extra-7.6.3.tar.gz | 3 + python-click-extra.changes | 379 +++++++++++++++++++++++++++++++++++++ python-click-extra.spec | 151 +++++++++++++++ 7 files changed, 567 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 click-extra-7.1.0.tar.gz create mode 100644 click-extra-7.6.0.tar.gz create mode 100644 click-extra-7.6.3.tar.gz create mode 100644 python-click-extra.changes create mode 100644 python-click-extra.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/click-extra-7.1.0.tar.gz b/click-extra-7.1.0.tar.gz new file mode 100644 index 0000000..adfd184 --- /dev/null +++ b/click-extra-7.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1d76902b1b6c6e43d77df8d2a2e36006cbaf1a106dace2be1f52a0f199747b2 +size 397627 diff --git a/click-extra-7.6.0.tar.gz b/click-extra-7.6.0.tar.gz new file mode 100644 index 0000000..3180415 --- /dev/null +++ b/click-extra-7.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fecaf0d3f40a92cd695d62fe555c8c503555d732fd9b8b77321a877bffb04568 +size 451417 diff --git a/click-extra-7.6.3.tar.gz b/click-extra-7.6.3.tar.gz new file mode 100644 index 0000000..b99ac1a --- /dev/null +++ b/click-extra-7.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2507f1af6a855fb271bf6d00fa30afdc9dcd8b9c3f111811290124052379f2f +size 453408 diff --git a/python-click-extra.changes b/python-click-extra.changes new file mode 100644 index 0000000..6835a63 --- /dev/null +++ b/python-click-extra.changes @@ -0,0 +1,379 @@ +------------------------------------------------------------------- +Mon Mar 2 12:10:37 UTC 2026 - Johannes Kastl + +- update to 7.6.3: + * Fix test_default_pattern_roaming_force_posix test failures when + XDG_CONFIG_HOME is set. Closes {issue}1541. + +------------------------------------------------------------------- +Mon Mar 2 06:40:13 UTC 2026 - Johannes Kastl + +- update to 7.6.2: + * Add ExtraVersionOption.prebake_version() static method to pre-bake + __version__ strings with Git hashes at compile time, complementing + the runtime version property for Nuitka/PyInstaller binaries. + +------------------------------------------------------------------- +Fri Feb 27 12:34:49 UTC 2026 - Johannes Kastl + +- update to 7.6.1: + * Fix test failures when optional config format dependencies are not + installed. Closes {issue}1538. + +------------------------------------------------------------------- +Fri Feb 27 06:27:23 UTC 2026 - Johannes Kastl + +- update to 7.6.0: + * Add '_default_subcommands' reserved configuration key to + auto-invoke subcommands when none are provided on the CLI. + Closes {issue}1405. + * Add '_prepend_subcommands' reserved configuration key to always + prepend subcommands to every invocation (requires chain=True). + Closes {issue}1405. + * Add --validate-config option to validate configuration files. + * Add ConfigFormat.PYPROJECT_TOML format for [tool.*] section + support in pyproject.toml. Closes {issue}1524. + * Stop parent directory walk on inaccessible directories. + * Add stop_at parameter to @config_option to limit parent + directory walking. Defaults to VCS. Closes {issue}651. + * Add VCS sentinel and VCS_DIRS constant for VCS root detection. + * Resolve relative paths to absolute in parent_patterns before + yielding. + * Add included_params allowlist to ConfigOption and + @config_option, the inverse of excluded_params. Closes + {issue}1362. + * Add human-friendly display labels to ConfigFormat. + * Switch back from SPLIT to BRACE flag for multi-format config + file patterns. Fixes a bug where only the first format received + the directory prefix with SPLIT. + * Hard code icon workaround for Sphinx index entries. + * Automatically append Git short hash as a PEP 440 local version + identifier to .dev versions (e.g., 1.2.3.dev0+abc1234). + * Skip Git hash suffix for versions that already contain + + (pre-baked local identifiers) to avoid invalid double-suffixed + versions. + * Recognize LLM environment variable to strip ANSI codes when + running under an AI agent. + +------------------------------------------------------------------- +Thu Feb 26 06:56:58 UTC 2026 - Johannes Kastl + +- update to 7.5.3: + * Allow disabling of autodiscovery of configuration files by + setting default=NO_CONFIG on @config_option. Closes + {issue}1495. + * Implement resolve_any_xref in ClickDomain to prevent + MyST-Parser warning. Closes {issue}1502. + * Fix subcommand conflict detection checking against root-level + params instead of parent params. Closes {pr}1286. +- update to 7.5.2: + * Fix GitHub alerts converter mangling list-table directive + content. Closes {issue}1490. + * Replace Dependabot by Renovate. + * Move click_extra/docs_update.py to docs/docs_update.py. + * Add pygments-ansi-color to docs dependency group for lexer + table generation. + +------------------------------------------------------------------- +Fri Feb 6 06:12:35 UTC 2026 - Johannes Kastl + +- update to 7.5.1: + * Add new aligned table format with single-space column separators + and no borders. + * Fix parallel mode support in Sphinx extension. Closes {issue}1482. + +------------------------------------------------------------------- +Tue Feb 3 11:57:41 UTC 2026 - Johannes Kastl + +- update to 7.5.0: + * Fix TableFormat.GITHUB to render proper alignment hints in the + separator row (:---, :---:, ---:). + * Move auto-lock time from 8:43 to 4:43. + * Set cooldown period via the pyproject.toml. + * Add Download link to project metadata. + * Include license file in package. + * Replace deprecated codecov/test-results-action by + codecov/codecov-action. + * Remove utilization workaround for macos-15-intel. + * Bump requirement of extra-platforms to 8.0.0. + +------------------------------------------------------------------- +Fri Dec 12 08:18:04 UTC 2025 - Johannes Kastl + +- update to 7.4.0: + - Add cooldown period for dependabot and uv.lock updates. + - Uncap all dependencies. + - Replace tool.uv section by build-system. + - Merge all label jobs into a single one. + - Unlock a CPU core stuck at 100% utilization on + macos-15-intel. +- update to 7.3.0: + - Add click:source directive as an alias to click:example + directive in Sphinx extension. + - Flag click:example directive as deprecated in favor of + click:source. + - Add support for nested GitHub alerts. + - Fix fetching version when the CLI is implemented as a + standalone script and not as a package module. +- update to 7.2.0: + - Add support for auto-conversion of GitHub alerts into MyST + admonitions in Sphinx extension. + - Rename click-extra demo CLI to click-extra-demo to avoid + confusion with the package name. + - Run tests on ubuntu-slim GitHub Actions runner. + - Run docs update job on ubuntu-slim runner. + +------------------------------------------------------------------- +Sat Nov 22 14:06:51 UTC 2025 - Johannes Kastl + +- update to 7.1.0: + * Add support for aliases in EnumChoice type. + * Register pre-configured render_table() utility in the context when + table_format is set, in the same spirit as print_table(). + +------------------------------------------------------------------- +Wed Nov 19 12:03:06 UTC 2025 - Johannes Kastl + +- update to 7.0.1: + * Restore support for @extra_command, @extra_group and + @extra_version_option, but mark them as deprecated. +- update to 7.0.0: + * Allow parent directories search for configuration files. Adds + search_parents argument on @config_file. Closes {issue}651. + * Allow fine-tuning of configuration file format pattern + matching. Replaces formats argument on @config_file by + file_format_patterns. + * Adds search_pattern_flags and file_pattern_flags arguments on + @config_file to allow user to tweak pattern matching behavior. + * Use | as separator for multiple file patterns instead of {,} + syntax. Replace glob.BRACE by glob.SPLIT for search pattern + flags. Force glob.SPLIT for file pattern flags. + * Remove glob.IGNORECASE flag to make case-sensitivity determined + by the underlying platform at runtime. + * Force glob.NODIR for search pattern flags to speed up search. + * Rename click_extra.config.Formats enum to + click_extra.config.ConfigFormat. Expose it at the root + click_extra module. + * Eat our own dog food: add a click-extra CLI to run self-tests. + * Override base decorators and classes with Click Extra's own + variants: + - @command now points to what was @extra_command. + - @group now points to what was @extra_group. + - Option class now points to click_extra.Option, which is a + subclass of cloup.Option. + - Argument class now points to click_extra.Argument, which is a + subclass of cloup.Argument. + - @option now instantiates click_extra.Option by default. + - @argument now instantiates click_extra.Argument by default. + - @version_option now points to what was @extra_version_option. + - Now if you want to use the previous aliases to Click's and + Cloup's originals, import them directly from click or cloup + instead of click_extra, which makes origination clearer. + * Remove @extra_command, @extra_group and @extra_version_option. + * Remove no_redefined argument in + click_extra.pytest.command_decorators() method. + * Validates that classes passed to the cls parameter of + decorators are subclasses of the expected base classes. + * Normalize the default value of EnumChoice parameters to their + string choice representation in help screens. + * Run tests on Python 3.14t and 3.15t free-threaded variants. + +------------------------------------------------------------------- +Wed Nov 5 05:39:57 UTC 2025 - Johannes Kastl + +- update to 6.2.0: + * Add new EnumChoice type for fine-tunable Enum-based + choices. Expose EnumChoice and ChoiceSource at the root + click_extra module. + * Relax dependencies to support Python 3.10. Closes {issue}1385. + * Re-introduce tomli dependency for Python 3.10 users. + * Skip tests on intermediate Python versions (3.11, 3.12 and 3.13) + to reduce CI load. + +------------------------------------------------------------------- +Sun Nov 2 10:57:00 UTC 2025 - Johannes Kastl + +- update to 6.1.0: + * Add support for JSON5, JSONC and HJSON configuration files. + * YAML and XML configuration support is now optional. You need to + install the click_extra[yaml] and click_extra[xml] extra + dependency groups to enable it. + * Add new @lazy_group decorator and LazyGroup class to create + groups that only load their subcommands when invoked. Closes + {issue}1332. + * Move all custom types to click_extra._types module. + * Avoid importing all types at runtime to reduce startup time. + * Upgrade tests runs from macos-13 to macos-15-intel, and from + macos-15 to macos-26. + * Use astral-sh/setup-uv action to install uv. + +------------------------------------------------------------------- +Wed Oct 22 03:11:57 UTC 2025 - Steve Kowalik + +- Update to 6.0.3: + * Fix @config_option to accept Path objects as default value. + * Add official support of Python 3.14. + * Add --table-format option by default on @extra_command and @extra_group. + * Let --table-format and --no-color affect the rendering of --show-params + table. + * Swap Class and Spec. columns in --show-params output. + * Classify table formats into two categories: markup formats and + plain-text formats. + * Fix display in --show-params for parameters sharing the same name. + * Fix detection in the --version option of the module in which the user's + CLI is implemented. + * Rename click_extra.tabulate namespace to click_extra.table. + * Expose click._utils.UNSET and click.logging.LogLevel at the root + click_extra module. + * Replace unmaintained mergedeep dependency by deepmerge. +- Ship the license and readme in the binary packages. + +------------------------------------------------------------------- +Fri Aug 8 18:42:28 UTC 2025 - Matej Cepl + +- Currently broken, waiting on the resolution of the upstream + click 8.2.2 drama (gh#pallets/click#3024). +- update to 5.1.0: + * Add support for MyST Markdown syntax for click:example and + click:run Sphinx directives. + * Add support for all code-block options to click:example and + click:run: :linenos:, :lineno-start:, :emphasize-lines:, + :force:, :caption:, :name:, :class: and :dedent:. + * Add new :show-source:/:hide-source:, + :show-results:/:hide-results: and :language: options to + click:example and click:run. Closes {issue}719. + * Support non-string choices in colored help screens. Closes + {issue}1284. + * Replace LOG_LEVELS mapping with LogLevel enum. + * Remove DEFAULT_LEVEL_NAME constants. + * Fix rendering of default values in --show-params output. + * Fix reconciliation of flags' environment variables. + * Force requirement on cloup >= 3.0.7. + * Be more informative when error is found in click:example and + click:run Sphinx directives by displaying the path of the + original document and the line number of the error. + +------------------------------------------------------------------- +Sat May 31 13:26:50 UTC 2025 - Johannes Kastl + +- update to 5.0.2: + * Set ExtraCommand default prog_name to CLI's name to avoid it to be + named python -m if invoked out of a module. + * Tweak exit code rendering of CLI runs. + +------------------------------------------------------------------- +Thu May 29 05:55:06 UTC 2025 - Johannes Kastl + +- update to 5.0.1: + * Fix highlighting of deprecated messages. + * Use ASCII characters instead of unicode for prompt rendering in + messages. + +------------------------------------------------------------------- +Tue May 27 12:36:44 UTC 2025 - Daniel Garcia + +- Skip failing tests with python-click 8.2.1 + gh#kdeldycke/click-extra#1264 + +------------------------------------------------------------------- +Fri May 16 04:56:18 UTC 2025 - Johannes Kastl + +- update to 5.0.0: + * Upgrade to Click 8.2.0. + * Add support for custom deprecated messages on commands and + parameters. + * Remove ExtraOption.get_help_default() and rely on new + Option.get_help_extra(). + * Remove dependency on pallets-sphinx-themes. + * Drop supports for Python 3.10. + * Add windows-11-arm to the test matrix. + * Remove tests on ubuntu-22.04-arm, ubuntu-22.04 and windows-2022 to + keep matrix small. + +------------------------------------------------------------------- +Wed Mar 5 13:05:44 UTC 2025 - Johannes Kastl + +- update to 4.15.0: + * Regroup all envronment variables-related code. + * Rename extend_envvars() to merge_envvar_ids() and allow it to + merge arbitrary-nested structures. Normalize names to uppercase + on Windows. + * Rename normalize_envvar() to clean_envvar_id(). + * Rename all_envvars() to param_envvar_ids(). + * Rename auto_envvar() to param_auto_envvar_id(). + * Remove unused normalize parameter on all_envvars(). + * Add missing line returns in render_cli_run(). + * Prefix all types with capital-T. + +------------------------------------------------------------------- +Sun Feb 23 16:35:41 UTC 2025 - Johannes Kastl + +- update to 4.14.2: + * Extract rendering part of the print_cli_run() helper to + render_cli_run(). + * Remove unused click_extra.testing.run_cmd. + * Relax requirement on extra-platforms. + * Add tests on windows-2025. Remove tests on windows-2019. + +------------------------------------------------------------------- +Sat Feb 8 09:42:12 UTC 2025 - Johannes Kastl + +- update to 4.14.1: + - Fix upload of Python package to GitHub release on tagging. +- update to 4.14.0: + - Add a new --verbose option on @extra_command and @extra_group + to increase the verbosity level for each additional repetition. + - Add new @verbose_option pre-configured decorator. + - Reassign the short -v option from --verbosity to --verbose. + - Improve logging documentation. + - Align ExtraStreamHandler behavior to logging.StreamHandler. + - Move stream_handler_class and formatter_class arguments from + new_extra_logger to extraBasicConfig. + - Add new file_handler_class argument to extraBasicConfig. + - Fix upload of Python package to GitHub release on tagging. + - Remove dependency on pytest-cases. + +------------------------------------------------------------------- +Tue Jan 28 18:48:22 UTC 2025 - Johannes Kastl + +- update to 4.13.2: + - Re-release to fix Github publishing. + - Reactivates some color tests on Windows. +- update to 4.13.1: + - [changelog] Release v4.13.1 +- update to 4.13.0: + - Revamps logging helpers and aligns them with Python's logging + module. + - Remove extra_basic_config. + - Adds new extraBasicConfig, and aligns it with Python's + basicConfig. + - Replace ExtraLogFormatter with ExtraFormatter. + - Replace ExtraLogHandler with ExtraStreamHandler. + - Add new new_extra_logger helper. + - Rewrite the logging documentation with all use-cases and custom + configuration examples. Closes {issue}989. + - Removes old platforms page from documentation. + +------------------------------------------------------------------- +Mon Jan 20 06:03:47 UTC 2025 - Johannes Kastl + +- update to 4.12.0: + - Remove Click Extra's own implementation of HelpOption class now + that fixes have reached Click's upstream. + - Redefine @help_option decorator to default to --help/-h + options. + - Add more logging examples in documentation. + - Add tests on ubuntu-24.04-arm and ubuntu-22.04-arm. + - Use uv to install specific versions of Python. +- remove patch click818.patch + +------------------------------------------------------------------- +Thu Jan 16 11:19:15 UTC 2025 - Markéta Machová + +- Add click818.patch to fix tests with new click + +------------------------------------------------------------------- +Thu Nov 14 09:06:16 UTC 2024 - Johannes Kastl + +- new package python-click-extra: Drop-in replacement for Click to + make user-friendly and colorful CLI diff --git a/python-click-extra.spec b/python-click-extra.spec new file mode 100644 index 0000000..a513539 --- /dev/null +++ b/python-click-extra.spec @@ -0,0 +1,151 @@ +# +# spec file for package python-click-extra +# +# Copyright (c) 2026 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define module_name click-extra +%define executable_name click-extra-demo + +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + +%{?sle15_python_module_pythons} +Name: python-click-extra +Version: 7.6.3 +Release: 0 +Summary: Drop-in replacement for Click to make user-friendly and colorful CLI +License: GPL-2.0-or-later +URL: https://github.com/kdeldycke/click-extra +Source: https://github.com/kdeldycke/click-extra/archive/v%{version}.tar.gz#/%{module_name}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core >= 1.0.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module uv-build} +BuildRequires: %{python_module wheel} +# SECTION Build dependencies +# https://github.com/kdeldycke/click-extra/blob/v6.0.3/pyproject.toml#L73 +BuildRequires: %{python_module boltons >= 25.0.0} +BuildRequires: %{python_module click >= 8.3.1} +BuildRequires: %{python_module cloup >= 3.0.7} +BuildRequires: %{python_module deepmerge >= 2.0} +BuildRequires: %{python_module extra-platforms >= 8.0.0} +BuildRequires: %{python_module requests >= 2.32.5} +BuildRequires: %{python_module tabulate >= 0.9} +BuildRequires: %{python_module tomli >= 2.3.0 if %python-base < 3.11} +BuildRequires: %{python_module wcmatch >= 10.0} +# optional dependencies +BuildRequires: %{python_module PyYAML >= 6.0.3} +BuildRequires: %{python_module hjson >= 3.1} +BuildRequires: %{python_module json5 >= 0.12.1} +BuildRequires: %{python_module pygments >= 2.14} +BuildRequires: %{python_module pygments-ansi-color >= 0.3} +BuildRequires: %{python_module xmltodict >= 1.0.0} +BuildRequires: git-core +# /SECTION +# SECTION test requirements +BuildRequires: %{python_module pygments >= 2.14} +BuildRequires: %{python_module Sphinx >= 8.0} +BuildRequires: %{python_module myst-parser >= 4.0.0} +BuildRequires: %{python_module pygments-ansi-color >= 0.3.0} +BuildRequires: %{python_module pytest >= 9.0.0} +BuildRequires: %{python_module pytest-httpserver >= 1.1.0} +BuildRequires: %{python_module pytest-randomly >= 4.0.0} +BuildRequires: %{python_module wcwidth} +# /SECTION +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-PyYAML >= 6.0.3 +Requires: python-boltons >= 25.0.0 +Requires: python-click >= 8.3.1 +Requires: python-cloup >= 3.0.7 +Requires: python-deepmerge >= 2.0 +Requires: python-extra-platforms >= 8.0.0 +Requires: python-requests >= 2.32.5 +Requires: python-tabulate >= 0.9 +Requires: python-wcmatch >= 10.0 +Requires: python-xmltodict >= 1.0.0 +Requires: (python-tomli >= 2.3.0 if python-base < 3.11) +Suggests: python-pygments >= 2.14 +Suggests: python-pygments-ansi-color >= 0.3.0 +BuildArch: noarch +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif +%python_subpackages + +%description +🌈 Drop-in replacement for Click to make user-friendly and colorful CLI + +%prep +%autosetup -p1 -n %{module_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/%{executable_name} + +%check +# remove coverage configuration +sed -i '/--cov.*",/d' pyproject.toml +# ignore test that requires network connectivity +IGNORED_CHECKS="test_ansi_lexers_candidates" +# assumes that the testsuite is running in a git checkout +IGNORED_CHECKS+=" or test_debug_output or (test_integrated_verbosity_options and DEBUG)" +IGNORED_CHECKS+=" or test_integrated_color_option or test_conf_file_overrides_defaults" +IGNORED_CHECKS+=" or test_context_meta or test_required_command" +IGNORED_CHECKS+=" or test_no_option_leaks_between_subcommands or test_unset_conf_debug_message" +# table rendering with emojis involves extra spaces +IGNORED_CHECKS+=" or test_all_table_rendering" +IGNORED_CHECKS+=" or test_conf_default_path" +IGNORED_CHECKS+=" or test_integrated_show_params_option" +# +IGNORED_CHECKS+=" or test_enum_choice_show_aliases[Status-ChoiceSource.STR-False-result0]" +IGNORED_CHECKS+=" or test_enum_choice_show_aliases[Status-ChoiceSource.NAME-True-result2]" +IGNORED_CHECKS+=" or test_enum_choice_show_aliases[Status-ChoiceSource.VALUE-True-result3]" +IGNORED_CHECKS+=" or test_enum_choice_show_aliases[Color-ChoiceSource.NAME-True-result4]" + +%pytest -k "not (${IGNORED_CHECKS})" + +%if %{with libalternatives} +%pre +%python_libalternatives_reset_alternative %{executable_name} +%else + +%post +%python_install_alternative %{executable_name} + +%postun +%python_uninstall_alternative %{executable_name} +%endif + +%files %{python_files} +%license license +%doc readme.md +%python_alternative %{_bindir}/%{executable_name} +%{python_sitelib}/click_extra +%{python_sitelib}/click_extra-%{version}.dist-info + +%changelog