15
0

Accepting request 1116235 from home:mschreiner:branches:devel:languages:python

- Update to 0.3.0:
  * Drop Python 2 support, remove six.
  * Uses PromptSession() class from prompt_toolkit instead of prompt()
    function.
  * Added filter for hidden commands and options.
  * Added click's autocompletion support.
  * Added tab-completion for Path and BOOL type arguments.
  * Added 'expand environmental variables in path' feature.
  * Delegate command dispatching to the actual group command.
  * Updated completer class and tests based on new fix.
  * Python 3.11 support.
- Remove python-click-repl-remove-six.patch, as it is now obsolete.
- Remove dendency on python-six.
- Add build-time dependency on pytest-cov.

OBS-URL: https://build.opensuse.org/request/show/1116235
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-repl?expand=0&rev=9
This commit is contained in:
2023-10-07 20:10:09 +00:00
committed by Git OBS Bridge
parent 534c1dfbce
commit 3a16b8ac8b
5 changed files with 25 additions and 104 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-click-repl
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,25 +18,22 @@
%{?sle15_python_module_pythons}
Name: python-click-repl
Version: 0.2.0
Version: 0.3.0
Release: 0
Summary: REPL plugin for Click
License: MIT
URL: https://github.com/untitaker/click-repl
# No tests in PyPI archive
Source: https://github.com/click-contrib/click-repl/archive/%{version}.tar.gz#/click-repl-%{version}-gh.tar.gz
# https://github.com/click-contrib/click-repl/commit/1ad52b2ba601d5107b5457ffa8a885eff95ea031
Patch0: python-click-repl-remove-six.patch
BuildRequires: %{python_module click}
BuildRequires: %{python_module prompt_toolkit}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-click
Requires: python-prompt_toolkit
Requires: python-six
BuildArch: noarch
%python_subpackages
@@ -57,7 +54,7 @@ REPL plugin for Click
%pytest
%files %{python_files}
%doc README.rst
%doc README.md
%license LICENSE
%{python_sitelib}/click_repl
%{python_sitelib}/click_repl-%{version}*info