17
0

Accepting request 1297564 from home:ojkastl_buildservice:Branch_devel_languages_python

update to 5.1.0, needs a newer version of cloup

OBS-URL: https://build.opensuse.org/request/show/1297564
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-extra?expand=0&rev=23
This commit is contained in:
2025-08-05 18:44:04 +00:00
committed by Git OBS Bridge
commit bba4e8252d
5 changed files with 275 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.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
*.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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
click-extra-5.1.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4e65e3676fcb3bf65f284e5fc60ca7aaa21fa6d5c675e26fdf75f36dce8da185
size 522006

147
python-click-extra.changes Normal file
View File

@@ -0,0 +1,147 @@
-------------------------------------------------------------------
Sun Aug 3 11:36:24 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- 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 <opensuse_buildservice@ojkastl.de>
- update to 5.0.2:
* Set ExtraCommand default prog_name to CLI's name to avoid it to be
named python -m <module_name> if invoked out of a module.
* Tweak exit code rendering of CLI runs.
-------------------------------------------------------------------
Thu May 29 05:55:06 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- 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 <daniel.garcia@suse.com>
- Skip failing tests with python-click 8.2.1
gh#kdeldycke/click-extra#1264
-------------------------------------------------------------------
Fri May 16 04:56:18 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- 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 <opensuse_buildservice@ojkastl.de>
- 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 <opensuse_buildservice@ojkastl.de>
- 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 <opensuse_buildservice@ojkastl.de>
- 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 <opensuse_buildservice@ojkastl.de>
- 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 <opensuse_buildservice@ojkastl.de>
- 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á <mmachova@suse.com>
- Add click818.patch to fix tests with new click
-------------------------------------------------------------------
Thu Nov 14 09:06:16 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package python-click-extra: Drop-in replacement for Click to
make user-friendly and colorful CLI

101
python-click-extra.spec Normal file
View File

@@ -0,0 +1,101 @@
#
# spec file for package python-click-extra
#
# Copyright (c) 2025 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
%{?sle15_python_module_pythons}
Name: python-click-extra
Version: 5.1.0
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 wheel}
# SECTION Build dependencies
# https://github.com/kdeldycke/click-extra/blob/v4.8.3/pyproject.toml#L67
BuildRequires: %{python_module PyYAML >= 6.0.0}
BuildRequires: %{python_module boltons >= 25.0.0}
BuildRequires: %{python_module click >= 8.2.2}
BuildRequires: %{python_module cloup >= 3.0.7}
BuildRequires: %{python_module extra-platforms >= 3.1.0}
BuildRequires: %{python_module mergedeep >= 1.3.4}
BuildRequires: %{python_module requests >= 2.32.3}
BuildRequires: %{python_module tabulate >= 0.9}
BuildRequires: %{python_module tomli >= 2.0.1 if %python-base < 3.11}
BuildRequires: %{python_module wcmatch >= 10.0}
BuildRequires: %{python_module xmltodict >= 0.14.2}
# /SECTION
# SECTION test requirements
BuildRequires: %{python_module pygments >= 2.14}
BuildRequires: %{python_module pygments-ansi-color >= 0.3.0}
# https://github.com/kdeldycke/click-extra/blob/v4.8.3/pyproject.toml#L117
BuildRequires: %{python_module pytest >= 8.3.0}
BuildRequires: %{python_module pytest-httpserver >= 1.0.6}
BuildRequires: %{python_module pytest-randomly >= 3.16.0}
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# https://github.com/kdeldycke/click-extra/blob/v4.8.3/pyproject.toml#L67
Requires: python-PyYAML >= 6.0.0
Requires: python-boltons >= 25.0.0
Requires: python-click >= 8.2.2
Requires: python-cloup >= 3.0.7
Requires: python-extra-platforms >= 3.1.0
Requires: python-mergedeep >= 1.3.4
Requires: python-requests >= 2.32.3
Requires: python-tabulate >= 0.9
Requires: python-wcmatch >= 10.0
Requires: python-xmltodict >= 0.14.2
Requires: (python-tomli >= 2.0.1 if python-base < 3.11)
# https://github.com/kdeldycke/click-extra/blob/v4.8.3/pyproject.toml#L94
Suggests: python-pygments >= 2.14
Suggests: python-pygments-ansi-color >= 0.3.0
BuildArch: noarch
%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}
%check
# remove coverage configuration
sed -i '/--cov.*",/d' pyproject.toml
# ignore test that requires network connectivity
IGNORED_CHECKS="test_ansi_lexers_candidates"
IGNORED_CHECKS="${IGNORED_CHECKS} or test_keyword_collection"
# Failing test with click 8.2.1 gh#kdeldycke/click-extra#1264
IGNORED_CHECKS="${IGNORED_CHECKS} or test_auto_envvar_parsing"
%pytest -k "not (${IGNORED_CHECKS})"
%files %{python_files}
%{python_sitelib}/click_extra
%{python_sitelib}/click_extra-%{version}.dist-info
%changelog