14
0
forked from pool/python-typer

12 Commits

Author SHA256 Message Date
7d628dc0fe Accepting request 1307199 from devel:languages:python
- Update to 0.19.2
  * Fix list convertor with an empty list default factory.

OBS-URL: https://build.opensuse.org/request/show/1307199
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=28
2025-09-26 20:24:19 +00:00
Matthias Bach
3e4eb16408 Accepting request 1307002 from home:theMarix:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1307002
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=59
2025-09-24 20:24:10 +00:00
672282b783 Accepting request 1306168 from devel:languages:python
- Update to 0.19.1
  * Ensure that Optional[list] values work correctly with callbacks.
  * Support typing.Literal to define a set of predefined choices.
  * Allow setting an environment variable to None in CliRunner.invoke.
- Update to 0.18.0
  * Ensure compatibility with Click 8.3.0 by restoring the original
    value_is_missing function.

OBS-URL: https://build.opensuse.org/request/show/1306168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=27
2025-09-22 14:38:29 +00:00
Matthias Bach
4ac9e1d893 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=57 2025-09-20 19:34:38 +00:00
7136bd4660 Accepting request 1303004 from devel:languages:python
- Update to 0.17.4
  * Make sure rich.markup is imported when rendering help text.
- Update to 0.17.3
  * Allow annotated parsing with a subclass of Path.
  * Avoid printing default: None in the help section when using
    Rich.
  * Fix markdown formatting in --help output.
  * Lazy-load rich_utils to reduce startup time.
- Convert to libalternatives on SLE-16-based and newer systems
- Update to 0.16.1
  * Avoid printing additional output with no_args_is_help=True and
    Click 8.2.
- Update to 0.16.0
  * Add compatibility with Click 8.2.
- Remove support-click-8.2.patch as it is no longer needed.
- Add patch support-click-8.2.patch:
  * Support both click 8.1 and 8.2.
- Switch to autosetup macro.
- Update to 0.15.3
  * Ensure that autocompletion works for Path arguments/options.
  * Fix newline after header in help text.
- Update to 0.15.2
  * Allow custom styles for commands in help output.
  * Avoid the unnecessary import of typing_extensions in newer
    Python versions.
  * Fix shell completions for the fish shell.
- Update to 0.15.1
  * Deprecate shell_complete and continue to use autocompletion for
    CLI parameters.
- Update to 0.15.0
  * Add support for extending typer apps without passing a name,
    add commands to the top level.
  * Breaking change:  Remove auto naming of groups added via
    add_typer based on the group's callback function name.
- update to 0.13.1:
  * Remove Rich tags when showing completion text.
  * Render Rich markup as HTML in Markdown docs.
  * Support cp850 encoding for auto-completion in PowerShell.
  * Allow gettext translation of help message.
  * Fix printing HTML from Rich output. PR #1055 by @tiangolo.
  * Update markdown includes to use the new simpler format. PR
- update to 0.13.0:
  * Handle `KeyboardInterrupt` separately from other
    exceptions.
  * Update `launch` to not print anything when opening urls.
  * Show help items in order of definition.
  * Fix equality check for custom classes.
  * Allow colon in zsh autocomplete values and descriptions.
  * Deprecate support for `is_flag` and `flag_value`
    parameters.
  * Remove unused functionality from `_typing.py` file.
  * Fix typo in function name `_make_rich_text`.
- Switch PDM dependency from python3-pdm to python3-pdm-backend to
  account for changes in that package's structure.
- Update to upstream version 0.12.5
  * Unify the width of the Rich console for help and errors.
  * Improve assertion error message if a group is not a valid subclass.
  * Ensure rich_markup_mode=None disables Rich formatting.
- Update to upstream version 0.12.4
  * Fix support for UnionType (e.g. str | None) with Python 3.11.
  * Fix zsh autocompletion installation.
  * Fix usage of Annotated with future annotations in Python 3.7+.
  * Fix shell_complete not working for Arguments.
- Add conflict declaration with Erlang as both packages provide
  /usr/bin/typer
- Update to upstream version 0.12.3
  * Fix Rich formatting with no commands.
  * Improve column help display, ensure commands column width is
    the same on all panels.
  * Add support for an argument of type Optional[Tuple] and default
- Update to upstream version 0.12.1
  * The core functionality has been extracted into
    python-typer-slim.
  * The typer command is now provided as part of the main typer
    package.
  * Formerly optional dependencies required for full
    functionality are now automatically installed. If they are not
    required, the slim package can be used.
- Drop set-proper-pythonpath-for-tutorial-script-tests.patch as it
  is now applied in python-typer-slim.
- Update to upstream version 0.10.1
  * Internal and dependency changes
- Fix missing requirement specification on
  python-typing_extensions.
- Update to upstream version 0.10.0
  * Fix default value of None for CLI Parameters when the type is
    list | None and the default value is None.
  * Improve support for CLI translations using gettext.
  * Fix evaluating stringified annotations in Python 3.10.
  * Fix display of default value for Enum parameters inside of a
    list, include docs and tests.
  * Update type annotations for show_default parameter and update
    docs for setting a "Custom default string".
  * Add missing default_factory in Argument overloads.
  * Fix preserving case in enum values.
- Fix sle15_python_module_python being on wrong line post spec
  auto-format.
- add sle15_python_module_python
- Update to upstream version 0.9.0
  * Add support for PEP-593 Annotated for specifying options and
    arguments.
  * Add support for custom types and parsers.
- Drop patch run-subprocesses-with-correct-python.patch that got
  included upstream.
- Adapt set-proper-pythonpath-for-tutorial-script-tests.patch to
  also work for Python 3.11.
- Update to upstream version 0.7.0
  * Make typer.run() not add completion scripts by default, it only
    makes sense in installed apps.
  * Add support for Python 3.11.
- Update to upstream version 0.6.1
  * Adds deep integrations with Rich. If Rich is available, it will
    be used to show the content from --help options, validation
    errors, and even errors in apps.
  * Support for Rich Markup and Markdown in docstrings, CLI
    parameters, help, and epilog.
  * Fix type conversion for List and Tuple.
  * Fix context_settings for a Typer apps with a single command.
  * Fix setting FORCE_TERMINAL with colors.
- Refreshed patches
- Add run-subprocesses-with-correct-python.patch to ensure tests
  aren't accidentally running subprocesses using the wrong Python
  version.
- Add set-proper-pythonpath-for-tutorial-script-tests.patch to fix
  issue with build failing due to import failures.
- Update to upstream version 0.4.1
  * Fix import of get_terminal_size for Click 8.1.0 support.
- Switch from traditional setup.py installation to pyproject macros
  as upstream no longer ships its setup.py compability wrapper.
- Update to upstream version 0.4.0
  * Add support for Click 8 while keeping compatibility with
    Click 7.
- Remove basic-click8-compat.patch as Click 8 compatibility is now
  provided upstream.
- Resolve Typer no longer working since Click got bumped to version
  8.
  * This removes support for autocompletion.
- Add basic-click8-compat.patch
- Properly specify package group.
- Suppress false-positive detection of empty file in rpmlint.
- Properly declare minimum version requirement vs. python-click to
  avoid broken installation on Leap.
- Initial package release

OBS-URL: https://build.opensuse.org/request/show/1303004
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=26
2025-09-08 07:56:26 +00:00
Matthias Bach
8e9517e224 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=55 2025-09-06 09:43:07 +00:00
c39c28caf5 Accepting request 1302029 from devel:languages:python
- Update to 0.17.3
  * Allow annotated parsing with a subclass of Path.
  * Avoid printing default: None in the help section when using
    Rich.
  * Fix markdown formatting in --help output.
  * Lazy-load rich_utils to reduce startup time.

OBS-URL: https://build.opensuse.org/request/show/1302029
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=25
2025-09-01 15:16:43 +00:00
Matthias Bach
a79b099fde OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=53 2025-08-30 15:20:44 +00:00
896e46f621 Accepting request 1301303 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems

OBS-URL: https://build.opensuse.org/request/show/1301303
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=24
2025-08-26 12:56:23 +00:00
930e3958bd - Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=51
2025-08-25 14:26:09 +00:00
b4fde94740 Accepting request 1300456 from devel:languages:python
- Update to 0.16.1
  * Avoid printing additional output with no_args_is_help=True and
    Click 8.2.

OBS-URL: https://build.opensuse.org/request/show/1300456
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=23
2025-08-21 14:53:37 +00:00
Matthias Bach
8ddcf3703f OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=49 2025-08-20 07:02:42 +00:00
4 changed files with 71 additions and 8 deletions

View File

@@ -1,3 +1,52 @@
-------------------------------------------------------------------
Wed Sep 24 19:25:40 UTC 2025 - Matthias Bach <marix@marix.org> - 0.19.2
- Update to 0.19.2
* Fix list convertor with an empty list default factory.
-------------------------------------------------------------------
Sat Sep 20 18:42:14 UTC 2025 - Matthias Bach <marix@marix.org> - 0.19.1
- Update to 0.19.1
* Ensure that Optional[list] values work correctly with callbacks.
* Support typing.Literal to define a set of predefined choices.
* Allow setting an environment variable to None in CliRunner.invoke.
-------------------------------------------------------------------
Fri Sep 19 22:53:12 UTC 2025 - Matthias Bach <marix@marix.org> - 0.18.0
- Update to 0.18.0
* Ensure compatibility with Click 8.3.0 by restoring the original
value_is_missing function.
-------------------------------------------------------------------
Sat Sep 6 09:01:49 UTC 2025 - Matthias Bach <marix@marix.org> - 0.17.4
- Update to 0.17.4
* Make sure rich.markup is imported when rendering help text.
-------------------------------------------------------------------
Sat Aug 30 14:32:00 UTC 2025 - Matthias Bach <marix@marix.org> - 0.17.3
- Update to 0.17.3
* Allow annotated parsing with a subclass of Path.
* Avoid printing default: None in the help section when using
Rich.
* Fix markdown formatting in --help output.
* Lazy-load rich_utils to reduce startup time.
-------------------------------------------------------------------
Mon Aug 25 14:25:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Tue Aug 19 20:15:13 UTC 2025 - Matthias Bach <marix@marix.org>
- Update to 0.16.1
* Avoid printing additional output with no_args_is_help=True and
Click 8.2.
-------------------------------------------------------------------
Tue May 27 20:52:25 UTC 2025 - Matthias Bach <marix@marix.org> - 0.16.0

View File

@@ -2,6 +2,7 @@
# spec file for package python-typer
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2021 Matthias Bach <marix@marix.org>
#
# All modifications and additions to the file contributed by third parties
@@ -18,9 +19,14 @@
%define plainpython python
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-typer
Version: 0.16.0
Version: 0.19.2
Release: 0
Summary: Typer, build great CLIs. Easy to code. Based on Python type hints
License: MIT
@@ -33,7 +39,7 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rich}
BuildRequires: %{python_module shellingham}
BuildRequires: %{python_module typer-slim}
BuildRequires: %{python_module typer-slim >= %{version}}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# Work around Python dependency not being auto-added as there are no modules provided
@@ -41,13 +47,18 @@ Requires: %{plainpython}(abi) = %{python_version}
Requires: python-click
Requires: python-rich
Requires: python-shellingham
Requires: python-typer-slim >= %version
Requires: python-typer-slim >= %{version}
Requires: python-typing_extensions
Requires(post): update-alternatives
Requires(postun): update-alternatives
# both packages provide /usr/bin/typer
Conflicts: erlang
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
@@ -90,6 +101,9 @@ as those that do.
%postun
%python_uninstall_alternative typer
%pre
%python_libalternatives_reset_alternative typer
%files %{python_files}
%doc README.md
%license LICENSE

BIN
typer-0.16.0.tar.gz (Stored with Git LFS)

Binary file not shown.

3
typer-0.19.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ad824308ded0ad06cc716434705f691d4ee0bfd0fb081839d2e426860e7fdca
size 104755