Compare commits
25 Commits
Author | SHA256 | Date | |
---|---|---|---|
46555397f8 | |||
|
ce6ae4fe5b | ||
1dba8ed9d2 | |||
71f4d194d1 | |||
12dc107b09 | |||
|
0c01f86b0b | ||
1acef94b2c | |||
|
d197b6185d | ||
540b2f09d9 | |||
f691f573c1 | |||
0262d519d2 | |||
|
928121c173 | ||
c96c771573 | |||
|
39d71e2f36 | ||
dd3dfb7cbc | |||
|
e238162b87 | ||
|
a6982ac76b | ||
5c3b09808c | |||
2bafd6cede | |||
9fa0a81e88 | |||
|
1aed1d17aa | ||
b329ffc8c1 | |||
|
ae06a90305 | ||
5a093cdf10 | |||
|
2c61f1ba30 |
@@ -1,3 +1,116 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 30 14:32: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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
- 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 05:00:12 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 macro.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 29 17:58:31 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:20 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:49:15 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:36:00 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 20 17:25:27 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. 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`.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 27 15:41:42 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:42:57 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:05:30 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 12 15:28:57 UTC 2024 - Matthias Bach <marix@marix.org>
|
||||
|
||||
|
@@ -1,7 +1,8 @@
|
||||
#
|
||||
# spec file for package python-typer
|
||||
#
|
||||
# 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
|
||||
@@ -18,19 +19,27 @@
|
||||
|
||||
|
||||
%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.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/typer-%{version}.tar.gz
|
||||
Source2: %{name}-rpmlintrc
|
||||
BuildRequires: %{python_module pdm}
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module pdm-backend}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module typer-slim}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module rich}
|
||||
BuildRequires: %{python_module shellingham}
|
||||
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
|
||||
@@ -38,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
|
||||
@@ -59,8 +73,7 @@ which allows users to run scripts not using typer with the same command line com
|
||||
as those that do.
|
||||
|
||||
%prep
|
||||
%setup -q -n typer-%{version}
|
||||
%autopatch -p1
|
||||
%autosetup -p1 -n typer-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
@@ -76,7 +89,11 @@ as those that do.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# There are no tests in the python package as it only pulls dependencies
|
||||
# Broken with click 8.2.0:
|
||||
# - test_enum/test_tutorial003
|
||||
# - test_script_completion_run and test_completion_show_invalid_shell
|
||||
# - test_invalid_score stumbles over linebreaks in the output
|
||||
%pytest -k 'not ((test_enum and test_tutorial003) or test_script_completion_run or test_completion_show_invalid_shell or test_invalid_score)'
|
||||
|
||||
%post
|
||||
%python_install_alternative typer
|
||||
@@ -84,10 +101,13 @@ as those that do.
|
||||
%postun
|
||||
%python_uninstall_alternative typer
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative typer
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/typer
|
||||
%{python_sitelib}/typer-%{version}*-info
|
||||
%{python_sitelib}/typer-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:49e73131481d804288ef62598d97a1ceef3058905aa536a1134f90891ba35482
|
||||
size 94276
|
3
typer-0.17.3.tar.gz
Normal file
3
typer-0.17.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0c600503d472bcf98d29914d4dcd67f80c24cc245395e2e00ba3603c9332e8ba
|
||||
size 103517
|
Reference in New Issue
Block a user