14
0
forked from pool/python-typer

19 Commits

Author SHA256 Message Date
b0043c458a Accepting request 1280711 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/1280711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=22
2025-05-31 17:14:19 +00:00
Matthias Bach
ed2bade230 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=47 2025-05-27 21:30:44 +00:00
cdd4550598 Accepting request 1277916 from devel:languages:python
- Add patch support-click-8.2.patch:
  * Support both click 8.1 and 8.2.
- Switch to autosetup macro.

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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=45
2025-05-16 05:00:57 +00:00
955b501cc2 Accepting request 1273509 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/1273509
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=20
2025-04-30 17:02:56 +00:00
Matthias Bach
496ff6491a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=43 2025-04-29 18:28:18 +00:00
03eda4b434 Accepting request 1249294 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/1249294
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=19
2025-03-03 15:04:22 +00:00
Matthias Bach
9fbbaab384 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=41 2025-02-28 17:47:07 +00:00
e8f4fbe8d8 Accepting request 1228371 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/1228371
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=18
2024-12-05 16:05:25 +00:00
Matthias Bach
c58e50b21c OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=39 2024-12-04 21:10:53 +00:00
Matthias Bach
13c9e7157c OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=38 2024-12-03 21:35:10 +00:00
d1550f394e Accepting request 1225371 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. 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`.

OBS-URL: https://build.opensuse.org/request/show/1225371
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=17
2024-11-21 14:13:25 +00:00
01c487e9ca - 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`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=36
2024-11-20 17:26:51 +00:00
686a497720 Accepting request 1219467 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1219467
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=16
2024-10-30 18:26:00 +00:00
Matthias Bach
c94ae9006b - 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?expand=0&rev=34
2024-09-27 15:43:30 +00:00
c225b0a584 Accepting request 1197927 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/1197927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=15
2024-09-01 17:22:08 +00:00
Matthias Bach
8dbe0a8168 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=32 2024-08-29 18:53:05 +00:00
b95771e7a2 Accepting request 1194595 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/1194595
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typer?expand=0&rev=14
2024-08-19 21:44:38 +00:00
Matthias Bach
0fb562a7a8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=30 2024-08-17 10:35:36 +00:00
4 changed files with 108 additions and 11 deletions

View File

@@ -1,3 +1,94 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-typer
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2021 Matthias Bach <marix@marix.org>
#
# All modifications and additions to the file contributed by third parties
@@ -20,16 +20,19 @@
%define plainpython python
%{?sle15_python_module_pythons}
Name: python-typer
Version: 0.12.3
Version: 0.16.0
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 pytest}
BuildRequires: %{python_module rich}
BuildRequires: %{python_module shellingham}
BuildRequires: %{python_module typer-slim}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -59,8 +62,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 +78,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
@@ -88,6 +94,6 @@ as those that do.
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/typer
%{python_sitelib}/typer-%{version}*-info
%{python_sitelib}/typer-%{version}.dist-info
%changelog

View File

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

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

Binary file not shown.