forked from pool/python-typer-slim
Compare commits
33 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6ef79aeba2 | |||
|
|
15e9c36c6a | ||
| 1cd649ff0d | |||
|
|
835f3505e5 | ||
| 54d55349f1 | |||
|
|
f3d173b246 | ||
| ce7213b5c4 | |||
|
|
a704786a4e | ||
| ed4b19f85e | |||
|
|
29be574b33 | ||
| 267c4f26af | |||
|
|
5cbdd9f902 | ||
| f5c786e55a | |||
|
|
9d54c68cbe | ||
| cd6d333a71 | |||
|
|
dbb51866a1 | ||
| c9f4107302 | |||
| 08461fb675 | |||
| 7fcef652cb | |||
|
|
37fbeee123 | ||
| 15119ee71e | |||
| 6c1fbc01ba | |||
| b6ceec6896 | |||
|
|
ceddcd4043 | ||
| 22d4086725 | |||
|
|
283928c40f | ||
| 7cd52d7e0d | |||
|
|
1e008b3fc7 | ||
|
|
573912ba35 | ||
| 8400360c8c | |||
| 1671513bd2 | |||
| ea7fb214be | |||
|
|
cc98d7051d |
@@ -1,3 +1,156 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 6 17:11:25 UTC 2026 - Matthias Bach <marix@marix.org> - 0.21.1
|
||||
|
||||
- Update to 0.21.1
|
||||
* Fix escaping in help text when rich is installed but not used.
|
||||
- Refreshed set-proper-pythonpath-for-tutorial-script-tests.patch.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 20 13:14:39 UTC 2025 - Matthias Bach <marix@marix.org> - 0.20.1
|
||||
|
||||
- Update to 0.20.1
|
||||
* Add support for standard tracebacks via the environment
|
||||
variable TYPER_STANDARD_TRACEBACK.
|
||||
* Ensure that options_metavar is passed through correctly.
|
||||
* Ensure an optional argument is shown in brackets, even when
|
||||
metavar is set.
|
||||
* Ensure that the default rich_markup_mode is interpreted
|
||||
correctly.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 21 17:40:20 UTC 2025 - Matthias Bach <marix@marix.org> - 0.20.0
|
||||
|
||||
- Update to 0.20.0
|
||||
* Enable command suggestions on typo by default.
|
||||
* Add support for Python 3.14.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 24 18:55:20 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:24:01 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:51:43 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 08:48:36 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:18: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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#
|
||||
# spec file for package python-typer-slim
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2026 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.5
|
||||
Version: 0.21.1
|
||||
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
|
||||
|
||||
@@ -67,31 +67,31 @@ environment and that gets resolved by this commit:
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/test_tutorial/test_subcommands/test_tutorial001.py b/tests/test_tutorial/test_subcommands/test_tutorial001.py
|
||||
index 1280e22..6f86826 100644
|
||||
index 293b8ed..0ec7cdf 100644
|
||||
--- a/tests/test_tutorial/test_subcommands/test_tutorial001.py
|
||||
+++ b/tests/test_tutorial/test_subcommands/test_tutorial001.py
|
||||
@@ -87,7 +87,7 @@ def test_scripts(mod):
|
||||
from docs_src.subcommands.tutorial001 import items, users
|
||||
from docs_src.subcommands.tutorial001_py39 import items, users
|
||||
|
||||
env = os.environ.copy()
|
||||
- env["PYTHONPATH"] = ":".join(list(tutorial001.__path__))
|
||||
+ env["PYTHONPATH"] = ":".join(list(tutorial001.__path__) + [env["PYTHONPATH"]] if "PYTHONPATH" in env else [])
|
||||
- env["PYTHONPATH"] = ":".join(list(tutorial001_py39.__path__))
|
||||
+ env["PYTHONPATH"] = ":".join(list(tutorial001_py39.__path__) + [env["PYTHONPATH"]] if "PYTHONPATH" in env else [])
|
||||
|
||||
for module in [mod, items, users]:
|
||||
result = subprocess.run(
|
||||
diff --git a/tests/test_tutorial/test_subcommands/test_tutorial003.py b/tests/test_tutorial/test_subcommands/test_tutorial003.py
|
||||
index 2d6149c..0a05ae0 100644
|
||||
index a680d29..98f1e00 100644
|
||||
--- a/tests/test_tutorial/test_subcommands/test_tutorial003.py
|
||||
+++ b/tests/test_tutorial/test_subcommands/test_tutorial003.py
|
||||
@@ -160,7 +160,7 @@ def test_scripts(mod):
|
||||
from docs_src.subcommands.tutorial003 import items, lands, reigns, towns, users
|
||||
from docs_src.subcommands.tutorial003_py39 import items, lands, reigns, towns, users
|
||||
|
||||
env = os.environ.copy()
|
||||
- env["PYTHONPATH"] = ":".join(list(tutorial003.__path__))
|
||||
+ env["PYTHONPATH"] = ":".join(list(tutorial003.__path__) + [env["PYTHONPATH"]] if "PYTHONPATH" in env else [])
|
||||
- env["PYTHONPATH"] = ":".join(list(tutorial003_py39.__path__))
|
||||
+ env["PYTHONPATH"] = ":".join(list(tutorial003_py39.__path__) + [env["PYTHONPATH"]] if "PYTHONPATH" in env else [])
|
||||
|
||||
for module in [mod, items, lands, reigns, towns, users]:
|
||||
result = subprocess.run(
|
||||
--
|
||||
2.35.3
|
||||
2.51.0
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c8e3fcf93cc7dd584036df8755d2e2363f85f8a4dd028c7911eed3f00cf0ebb1
|
||||
size 99015
|
||||
3
typer_slim-0.21.1.tar.gz
Normal file
3
typer_slim-0.21.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:73495dd08c2d0940d611c5a8c04e91c2a0a98600cbd4ee19192255a233b6dbfd
|
||||
size 110478
|
||||
Reference in New Issue
Block a user