14
0

25 Commits

Author SHA256 Message Date
1142297158 Accepting request 1302028 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/1302028
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=15
2025-09-01 15:16:42 +00:00
Matthias Bach
b3436f6a37 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=31 2025-08-30 15:20:45 +00:00
ff9ec87354 Accepting request 1300455 from devel:languages:python
- Update to 0.16.1
  * Avoid printing additional output with no_args_is_help=True and
    Click 8.2.
- Drop patch handle-excess-whitespace-not-exists.patch.
  * This patch is no longer needed, as the issue it fixed has been
    resolved upstream.

OBS-URL: https://build.opensuse.org/request/show/1300455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=14
2025-08-21 14:53:11 +00:00
Matthias Bach
5db3dfef77 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=29 2025-08-20 07:02:43 +00:00
ce8cbdf539 Accepting request 1298267 from devel:languages:python
- Add patch handle-excess-whitespace-not-exists.patch:
  * Handle excess whitespace in one testcase.

OBS-URL: https://build.opensuse.org/request/show/1298267
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=13
2025-08-09 17:58:50 +00:00
efb2b3b40d - Add patch handle-excess-whitespace-not-exists.patch:
* Handle excess whitespace in one testcase.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=27
2025-08-08 05:36:17 +00:00
3f9988fad4 Accepting request 1280710 from devel:languages:python
- Update to 0.16.0
  * Add compatibility with Click 8.2.
- Remove support-click-8.2.patch as it is no longer needed.

OBS-URL: https://build.opensuse.org/request/show/1280710
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=12
2025-05-31 17:14:19 +00:00
Matthias Bach
575bee0f93 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=25 2025-05-27 21:30:48 +00:00
72a097d069 Accepting request 1277915 from devel:languages:python
- Add patch support-click-8.2.patch:
  * Support both click 8.1 and 8.2.
- Switch to autosetup macros.

OBS-URL: https://build.opensuse.org/request/show/1277915
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=11
2025-05-23 12:27:18 +00:00
7106d7dc88 - Add patch support-click-8.2.patch:
* Support both click 8.1 and 8.2.
- Switch to autosetup macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=23
2025-05-16 05:00:47 +00:00
a051714cbc Accepting request 1273508 from devel:languages:python
- Update to 0.15.3
  * Ensure that autocompletion works for Path arguments/options.
  * Fix newline after header in help text.

OBS-URL: https://build.opensuse.org/request/show/1273508
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=10
2025-04-30 17:02:54 +00:00
Matthias Bach
c8b6ded8d3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=21 2025-04-29 18:28:18 +00:00
5bca82ce54 Accepting request 1249293 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1249293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=9
2025-03-03 15:04:20 +00:00
Matthias Bach
c7d9e7964c Accepting request 1249292 from home:theMarix:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1249292
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=19
2025-02-28 17:47:08 +00:00
e6c9f79598 Accepting request 1228370 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1228370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=8
2024-12-05 16:05:24 +00:00
Matthias Bach
eb6ae553f8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=17 2024-12-04 21:10:54 +00:00
Matthias Bach
908da6c916 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=16 2024-12-03 21:35:11 +00:00
55939b6594 Accepting request 1225477 from devel:languages:python
- 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.
- update to 0.13.0:
  * Handle `KeyboardInterrupt` separately from other
    exceptions.
  * Update `launch` to not print anything when opening urls.
  * Fix equality check for custom classes. PR #979 by @AryazE.
  * Allow colon in zsh autocomplete values and descriptions. PR
  * Deprecate support for `is_flag` and `flag_value`
    parameters.
  * Remove unused functionality from `_typing.py` file.
  * Fix typo in function name `_make_rich_text`.
  * Only run completion installation tests when the env var
    `_TYPER_RUN_INSTALL_COMPLETION_TESTS` is set.

OBS-URL: https://build.opensuse.org/request/show/1225477
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=7
2024-11-21 14:13:34 +00:00
ea59da42b4 - 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.
- update to 0.13.0:
  * Handle `KeyboardInterrupt` separately from other
    exceptions.
  * Update `launch` to not print anything when opening urls.
  * Fix equality check for custom classes. PR #979 by @AryazE.
  * Allow colon in zsh autocomplete values and descriptions. PR
  * Deprecate support for `is_flag` and `flag_value`
    parameters.
  * Remove unused functionality from `_typing.py` file.
  * Fix typo in function name `_make_rich_text`.
  * Only run completion installation tests when the env var
    `_TYPER_RUN_INSTALL_COMPLETION_TESTS` is set.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=14
2024-11-21 08:47:36 +00:00
f7e1cfee77 Accepting request 1219172 from devel:languages:python
- Switch PDM dependency from python3-pdm to python3-pdm-backend to
  account for changes in that package's structure.

OBS-URL: https://build.opensuse.org/request/show/1219172
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=6
2024-10-30 16:36:16 +00:00
Matthias Bach
70e15c4072 - Switch PDM dependency from python3-pdm to python3-pdm-backend to
account for changes in that package's structure.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=12
2024-09-27 15:37:31 +00:00
e5b7b8870d Accepting request 1197520 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1197520
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=5
2024-08-30 11:32:28 +00:00
Matthias Bach
3c3e1776d4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=10 2024-08-29 18:53:05 +00:00
4dc9fd8cc5 Accepting request 1194455 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1194455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer-slim?expand=0&rev=4
2024-08-18 16:19:34 +00:00
Matthias Bach
10d1ae4723 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer-slim?expand=0&rev=8 2024-08-17 10:35:36 +00:00
4 changed files with 130 additions and 12 deletions

View File

@@ -1,3 +1,120 @@
-------------------------------------------------------------------
Sat Aug 30 14:18:00 UTC 2025 - Matthias Bach <marix@marix.org>
- 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.
-------------------------------------------------------------------
Tue Aug 19 19:33:07 UTC 2025 - Matthias Bach <marix@marix.org> - 0.16.1
- Update to 0.16.1
* Avoid printing additional output with no_args_is_help=True and
Click 8.2.
- Drop patch handle-excess-whitespace-not-exists.patch.
* This patch is no longer needed, as the issue it fixed has been
resolved upstream.
-------------------------------------------------------------------
Fri Aug 8 05:32:05 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch handle-excess-whitespace-not-exists.patch:
* Handle excess whitespace in one testcase.
-------------------------------------------------------------------
Tue May 27 19:13:12 UTC 2025 - Matthias Bach <marix@marix.org> - 0.16.0
- Update to 0.16.0
* Add compatibility with Click 8.2.
- Remove support-click-8.2.patch as it is no longer needed.
-------------------------------------------------------------------
Fri May 16 04:59:56 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-click-8.2.patch:
* Support both click 8.1 and 8.2.
- Switch to autosetup macros.
-------------------------------------------------------------------
Tue Apr 29 16:18:17 UTC 2025 - Matthias Bach <marix@marix.org> - 0.15.3
- Update to 0.15.3
* Ensure that autocompletion works for Path arguments/options.
* Fix newline after header in help text.
-------------------------------------------------------------------
Fri Feb 28 16:41:21 UTC 2025 - Matthias Bach <marix@marix.org> - 0.15.2
- 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.
-------------------------------------------------------------------
Wed Dec 4 20:30:49 UTC 2024 - Matthias Bach <marix@marix.org> - 0.15.1
- Update to 0.15.1
* Deprecate shell_complete and continue to use autocompletion for
CLI parameters.
-------------------------------------------------------------------
Tue Dec 3 20:17:46 UTC 2024 - Matthias Bach <marix@marix.org> - 0.15.0
- 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.
-------------------------------------------------------------------
Thu Nov 21 08:39:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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.
- update to 0.13.0:
* Handle `KeyboardInterrupt` separately from other
exceptions.
* Update `launch` to not print anything when opening urls.
* Fix equality check for custom classes. PR #979 by @AryazE.
* Allow colon in zsh autocomplete values and descriptions. PR
* Deprecate support for `is_flag` and `flag_value`
parameters.
* Remove unused functionality from `_typing.py` file.
* Fix typo in function name `_make_rich_text`.
* Only run completion installation tests when the env var
`_TYPER_RUN_INSTALL_COMPLETION_TESTS` is set.
-------------------------------------------------------------------
Fri Sep 27 15:23:23 UTC 2024 - Matthias Bach <marix@marix.org> - 0.12.5
- Switch PDM dependency from python3-pdm to python3-pdm-backend to
account for changes in that package's structure.
-------------------------------------------------------------------
Thu Aug 29 17:18:47 UTC 2024 - Matthias Bach <marix@marix.org> - 0.12.5
- 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.
-------------------------------------------------------------------
Sat Aug 17 08:51:10 UTC 2024 - Matthias Bach <marix@marix.org> - 0.12.4
- 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.
-------------------------------------------------------------------
Tue Apr 9 20:00:21 UTC 2024 - Matthias Bach <marix@marix.org> - 0.12.3

View File

@@ -1,7 +1,8 @@
#
# spec file for package python-typer-slim
#
# Copyright (c) 2024 SUSE LLC
# 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
@@ -19,18 +20,18 @@
%{?sle15_python_module_pythons}
Name: python-typer-slim
Version: 0.12.3
Version: 0.17.3
Release: 0
Summary: Typer, build great CLIs. Easy to code. Based on Python type hints
License: MIT
Group: Development/Languages/Python
URL: https://github.com/tiangolo/typer
Source: https://files.pythonhosted.org/packages/source/t/typer_slim/typer_slim-%{version}.tar.gz
Source2: %{name}-rpmlintrc
Patch1: set-proper-pythonpath-for-tutorial-script-tests.patch
# PATCH-FIX-OPENSUSE Include our own PYTHONPATH for scripted tests
Patch0: set-proper-pythonpath-for-tutorial-script-tests.patch
BuildRequires: %{python_module click}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module pdm}
BuildRequires: %{python_module pdm-backend}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rich}
@@ -55,8 +56,7 @@ With automatic help and completion, Typer makes CLIs easy to use for users.
This package provides the Typer Python package required to build and run Typer-based CLI applications.
%prep
%setup -q -n typer_slim-%{version}
%autopatch -p1
%autosetup -p1 -n typer_slim-%{version}
%build
%pyproject_wheel
@@ -71,12 +71,13 @@ This package provides the Typer Python package required to build and run Typer-b
%check
# the completion tests fail as build runs in sh which is not supported
%pytest -k 'not test_show_completion and not test_install_completion'
# test_invalid_score stumbles over linebreaks in the output
%pytest -k 'not (test_show_completion or test_install_completion or test_invalid_score)'
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/typer
%{python_sitelib}/typer_slim-%{version}*-info
%{python_sitelib}/typer_slim-%{version}.dist-info
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:633965eb413074aa6c47549d1820832f229709e9a59857a4f57ee82b655602af
size 94342

3
typer_slim-0.17.3.tar.gz Normal file
View File

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