Sync from SUSE:SLFO:Main python-typer revision 1c7e70e63c17d1fd0d2f9a4be8d164c3
This commit is contained in:
@@ -1,3 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@@ -20,16 +20,19 @@
|
||||
%define plainpython python
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-typer
|
||||
Version: 0.15.2
|
||||
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 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
|
||||
|
BIN
typer-0.15.2.tar.gz
(Stored with Git LFS)
BIN
typer-0.15.2.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
typer-0.16.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
typer-0.16.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user