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 2022-09-20 19:24:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-click-repl (Old)
and /work/SRC/openSUSE:Factory/.python-click-repl.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-click-repl"
Tue Sep 20 19:24:09 2022 rev:3 rq:1004952 version:0.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-click-repl/python-click-repl.changes
2021-07-10 22:53:49.920069033 +0200
+++
/work/SRC/openSUSE:Factory/.python-click-repl.new.2083/python-click-repl.changes
2022-09-20 19:24:11.594578943 +0200
@@ -1,0 +2,7 @@
+Tue Sep 20 11:27:30 UTC 2022 - [email protected]
+
+- added patches
+ fix
https://github.com/click-contrib/click-repl/commit/1ad52b2ba601d5107b5457ffa8a885eff95ea031
+ + python-click-repl-remove-six.patch
+
+-------------------------------------------------------------------
New:
----
python-click-repl-remove-six.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-click-repl.spec ++++++
--- /var/tmp/diff_new_pack.5C6eNC/_old 2022-09-20 19:24:12.174580607 +0200
+++ /var/tmp/diff_new_pack.5C6eNC/_new 2022-09-20 19:24:12.182580630 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-click-repl
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
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}
++++++ python-click-repl-remove-six.patch ++++++
>From 1ad52b2ba601d5107b5457ffa8a885eff95ea031 Mon Sep 17 00:00:00 2001
From: Stian Jensen <[email protected]>
Date: Sun, 23 Jan 2022 15:10:03 +0100
Subject: [PATCH] Drop Python 2 support, remove six
---
.travis.yml | 1 -
click_repl/__init__.py | 9 ++++-----
setup.py | 2 +-
tox.ini | 2 +-
4 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 40c6ad4..6089e52 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,5 @@
language: python
python:
- - "2.7"
- "pypy"
- "3.4"
- "3.5"
diff --git a/click_repl/__init__.py b/click_repl/__init__.py
index c1b950e..6fb656c 100644
--- a/click_repl/__init__.py
+++ b/click_repl/__init__.py
@@ -7,7 +7,6 @@
import os
import shlex
import sys
-import six
from .exceptions import InternalCommandException, ExitReplException # noqa
# Handle backwards compatibility between Click 7.0 and 8.0
@@ -42,7 +41,7 @@ def _register_internal_command(names, target,
description=None):
if not hasattr(target, "__call__"):
raise ValueError("Internal command must be a callable")
- if isinstance(names, six.string_types):
+ if isinstance(names, str):
names = [names]
elif not isinstance(names, (list, tuple)):
raise ValueError('"names" must be a string or a list / tuple')
@@ -71,14 +70,14 @@ def _help_internal():
with formatter.section("Internal Commands"):
formatter.write_text('prefix internal commands with ":"')
info_table = defaultdict(list)
- for mnemonic, target_info in six.iteritems(_internal_commands):
+ for mnemonic, target_info in _internal_commands.items():
info_table[target_info[1]].append(mnemonic)
formatter.write_dl(
(
", ".join((":{0}".format(mnemonic) for mnemonic in
sorted(mnemonics))),
description,
)
- for description, mnemonics in six.iteritems(info_table)
+ for description, mnemonics in info_table.items()
)
return formatter.getvalue()
@@ -242,7 +241,7 @@ def get_command():
if allow_internal_commands:
try:
result = handle_internal_commands(command)
- if isinstance(result, six.string_types):
+ if isinstance(result, str):
click.echo(result)
continue
except ExitReplException:
diff --git a/setup.py b/setup.py
index dbb23e1..9634c3a 100644
--- a/setup.py
+++ b/setup.py
@@ -23,5 +23,5 @@
url="https://github.com/untitaker/click-repl",
license="MIT",
packages=["click_repl"],
- install_requires=["click", "prompt_toolkit", "six"],
+ install_requires=["click", "prompt_toolkit"],
)
diff --git a/tox.ini b/tox.ini
index 49513a5..3d2a0e2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
envlist =
- py{27,py,34,35,36,37}
+ py{py,34,35,36,37}
linters
[testenv]