forked from pool/python-typer-slim
Compare commits
25 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 1142297158 | |||
|
|
b3436f6a37 | ||
| ff9ec87354 | |||
|
|
5db3dfef77 | ||
| ce8cbdf539 | |||
| efb2b3b40d | |||
| 3f9988fad4 | |||
|
|
575bee0f93 | ||
| 72a097d069 | |||
| 7106d7dc88 | |||
| a051714cbc | |||
|
|
c8b6ded8d3 | ||
| 5bca82ce54 | |||
|
|
c7d9e7964c | ||
| e6c9f79598 | |||
|
|
eb6ae553f8 | ||
|
|
908da6c916 | ||
| 55939b6594 | |||
| ea59da42b4 | |||
| f7e1cfee77 | |||
|
|
70e15c4072 | ||
| e5b7b8870d | |||
|
|
3c3e1776d4 | ||
| 4dc9fd8cc5 | |||
|
|
10d1ae4723 |
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
3
typer_slim-0.17.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aee6d704e23f45898e83551546aa89d9d9c9a5c22b47f43106fff3ea36f029fd
|
||||
size 103613
|
||||
Reference in New Issue
Block a user