Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-click-repl for 
openSUSE:Factory checked in at 2021-07-10 22:53:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-click-repl (Old)
 and      /work/SRC/openSUSE:Factory/.python-click-repl.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-click-repl"

Sat Jul 10 22:53:44 2021 rev:2 rq:901111 version:0.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-click-repl/python-click-repl.changes      
2020-10-14 15:41:09.762403690 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-click-repl.new.2625/python-click-repl.changes
    2021-07-10 22:53:49.920069033 +0200
@@ -1,0 +2,9 @@
+Mon Jun 21 08:51:19 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Update to 0.2.0:
+  * Update tests to expect hyphens
+  * Support for click 8 changes
+  * Backwards compatibility between click 7 & 8 
+- Drop included patch click-repl-pr53-hyphens.patch
+
+-------------------------------------------------------------------

Old:
----
  click-repl-0.1.6-gh.tar.gz
  click-repl-pr53-hyphens.patch

New:
----
  click-repl-0.2.0-gh.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-click-repl.spec ++++++
--- /var/tmp/diff_new_pack.tABbza/_old  2021-07-10 22:53:50.592063847 +0200
+++ /var/tmp/diff_new_pack.tABbza/_new  2021-07-10 22:53:50.592063847 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-click-repl
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-click-repl
-Version:        0.1.6
+Version:        0.2.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
-# PATCH-FIX-UPSTREAM click-repl-pr53-hyphens.patch -- Update tests to expect 
hyphens
-Patch0:         
https://github.com/click-contrib/click-repl/pull/53.patch#/click-repl-pr53-hyphens.patch
 BuildRequires:  %{python_module click}
 BuildRequires:  %{python_module prompt_toolkit}
 BuildRequires:  %{python_module pytest}

++++++ click-repl-0.1.6-gh.tar.gz -> click-repl-0.2.0-gh.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-repl-0.1.6/.travis.yml 
new/click-repl-0.2.0/.travis.yml
--- old/click-repl-0.1.6/.travis.yml    2018-10-15 18:53:34.000000000 +0200
+++ new/click-repl-0.2.0/.travis.yml    2021-05-30 22:19:55.000000000 +0200
@@ -12,5 +12,5 @@
     - python: "3.6"
       script: tox -e linters
 
-install: pip install tox
-script: sh scripts/runtox.sh
+install: pip install tox-travis
+script: tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-repl-0.1.6/README.rst 
new/click-repl-0.2.0/README.rst
--- old/click-repl-0.1.6/README.rst     2018-10-15 18:53:34.000000000 +0200
+++ new/click-repl-0.2.0/README.rst     2021-05-30 22:19:55.000000000 +0200
@@ -47,6 +47,16 @@
 
 .. _click: http://click.pocoo.org/
 
+
+
+How to install
+==============
+
+Installation is done with pip:
+
+    $ pip install click-repl
+
+
 Advanced Usage
 ==============
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-repl-0.1.6/click_repl/__init__.py 
new/click-repl-0.2.0/click_repl/__init__.py
--- old/click-repl-0.1.6/click_repl/__init__.py 2018-10-15 18:53:34.000000000 
+0200
+++ new/click-repl-0.2.0/click_repl/__init__.py 2021-05-30 22:19:55.000000000 
+0200
@@ -3,7 +3,6 @@
 from prompt_toolkit.history import InMemoryHistory
 from prompt_toolkit.shortcuts import prompt
 import click
-import click._bashcomplete
 import click.parser
 import os
 import shlex
@@ -11,6 +10,14 @@
 import six
 from .exceptions import InternalCommandException, ExitReplException  # noqa
 
+# Handle backwards compatibility between Click 7.0 and 8.0
+try: 
+    import click.shell_completion
+    HAS_C8 = True
+except ImportError:
+    import click._bashcomplete
+    HAS_C8 = False
+
 # Handle click.exceptions.Exit introduced in Click 7.0
 try:
     from click.exceptions import Exit as ClickExit
@@ -26,7 +33,7 @@
     text_type = str  # noqa
 
 
-__version__ = "0.1.6"
+__version__ = "0.2.0"
 
 _internal_commands = dict()
 
@@ -107,8 +114,12 @@
             # We've not entered anything, either at all or for the current
             # command, so give all relevant completions for this context.
             incomplete = ""
-
-        ctx = click._bashcomplete.resolve_ctx(self.cli, "", args)
+        # Resolve context based on click version
+        if HAS_C8:
+            ctx = click.shell_completion._resolve_context(self.cli, {}, "", 
args)
+        else: 
+            ctx = click._bashcomplete.resolve_ctx(self.cli, "", args)
+            
         if ctx is None:
             return
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-repl-0.1.6/scripts/runtox.sh 
new/click-repl-0.2.0/scripts/runtox.sh
--- old/click-repl-0.1.6/scripts/runtox.sh      2018-10-15 18:53:34.000000000 
+0200
+++ new/click-repl-0.2.0/scripts/runtox.sh      1970-01-01 01:00:00.000000000 
+0100
@@ -1,8 +0,0 @@
-#!/bin/sh
-if [ -z "$1" ]; then
-    searchstring="$(echo py$TRAVIS_PYTHON_VERSION | sed -e 's/pypypy/pypy/g' 
-e 's/-dev//g')"
-else
-    searchstring="$1"
-fi
-
-exec tox -e $(tox -l | grep $searchstring | tr '\n' ',')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-repl-0.1.6/tests/test_argument.py 
new/click-repl-0.2.0/tests/test_argument.py
--- old/click-repl-0.1.6/tests/test_argument.py 2018-10-15 18:53:34.000000000 
+0200
+++ new/click-repl-0.2.0/tests/test_argument.py 2021-05-30 22:19:55.000000000 
+0200
@@ -14,6 +14,6 @@
         pass
 
     c = ClickCompleter(root_command)
-    completions = list(c.get_completions(Document(u"arg_cmd ")))
+    completions = list(c.get_completions(Document(u"arg-cmd ")))
 
     assert set(x.text for x in completions) == set([u"foo", u"bar"])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-repl-0.1.6/tests/test_basic.py 
new/click-repl-0.2.0/tests/test_basic.py
--- old/click-repl-0.1.6/tests/test_basic.py    2018-10-15 18:53:34.000000000 
+0200
+++ new/click-repl-0.2.0/tests/test_basic.py    2021-05-30 22:19:55.000000000 
+0200
@@ -21,8 +21,8 @@
         pass
 
     c = ClickCompleter(root_command)
-    completions = list(c.get_completions(Document(u"first_level_command ")))
+    completions = list(c.get_completions(Document(u"first-level-command ")))
 
     assert set(x.text for x in completions) == set(
-        [u"second_level_command_one", u"second_level_command_two"]
+        [u"second-level-command-one", u"second-level-command-two"]
     )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-repl-0.1.6/tests/test_command_collection.py 
new/click-repl-0.2.0/tests/test_command_collection.py
--- old/click-repl-0.1.6/tests/test_command_collection.py       2018-10-15 
18:53:34.000000000 +0200
+++ new/click-repl-0.2.0/tests/test_command_collection.py       2021-05-30 
22:19:55.000000000 +0200
@@ -24,4 +24,4 @@
     c = ClickCompleter(click.CommandCollection(sources=[foo_group, 
foobar_group]))
     completions = list(c.get_completions(Document(u"foo")))
 
-    assert set(x.text for x in completions) == set([u"foo_cmd", u"foobar_cmd"])
+    assert set(x.text for x in completions) == set([u"foo-cmd", u"foobar-cmd"])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-repl-0.1.6/tox.ini new/click-repl-0.2.0/tox.ini
--- old/click-repl-0.1.6/tox.ini        2018-10-15 18:53:34.000000000 +0200
+++ new/click-repl-0.2.0/tox.ini        2021-05-30 22:19:55.000000000 +0200
@@ -1,6 +1,6 @@
 [tox]
 envlist =
-    py{2.7,py,3.4,3.5,3.6,3.7}
+    py{27,py,34,35,36,37}
     linters
 
 [testenv]
@@ -12,11 +12,8 @@
     style: black --check .
     test: py.test []
 
-basepython=
-    py2.7: python2.7
-    py3.4: python3.4
-    py3.5: python3.5
-    py3.6: python3.6
-    py3.7: python3.7
-    pypy: pypy
-    linters: python3
+[travis]
+; This section is used by tox-travis
+; https://pypi.python.org/pypi/tox-travis
+python=
+    3.6: py36,linters

Reply via email to