import UBI python-configshell-1.1.30-9.el10

This commit is contained in:
AlmaLinux RelEng Bot 2026-05-19 18:40:47 -04:00
parent 7def422621
commit 735ac2cf7e
2 changed files with 50 additions and 1 deletions

View File

@ -6,9 +6,10 @@ License: Apache-2.0
Summary: A framework to implement simple but nice CLIs Summary: A framework to implement simple but nice CLIs
Epoch: 1 Epoch: 1
Version: 1.1.30 Version: 1.1.30
Release: 8%{?dist} Release: 9%{?dist}
URL: https://github.com/open-iscsi/configshell-fb URL: https://github.com/open-iscsi/configshell-fb
Source: %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz Source: %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz
Patch0: regex.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
@ -28,6 +29,7 @@ Requires: python3-pyparsing python3-urwid
%prep %prep
%setup -q -n %{oname}-%{version} %setup -q -n %{oname}-%{version}
%patch0 -p1
sed -r -i "s/'pyparsing.*'/'pyparsing'/" setup.py sed -r -i "s/'pyparsing.*'/'pyparsing'/" setup.py
@ -42,6 +44,9 @@ sed -r -i "s/'pyparsing.*'/'pyparsing'/" setup.py
%doc COPYING README.md %doc COPYING README.md
%changelog %changelog
* Fri Oct 24 2025 Maurizio Lombardi <mlombard@redhat.com> - 1:1.1.30-9
- Fix syntax warning when running in image mode (RHEL-123591)
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1:1.1.30-8 * Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1:1.1.30-8
- Bump release for October 2024 mass rebuild: - Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018 Resolves: RHEL-64018

44
regex.patch Normal file
View File

@ -0,0 +1,44 @@
diff --git a/configshell/console.py b/configshell/console.py
index 8f72fa0..e73a27a 100644
--- a/configshell/console.py
+++ b/configshell/console.py
@@ -36,7 +36,7 @@ class Console(object):
_escape = '\033['
_ansi_format = _escape + '%dm%s'
_ansi_reset = _escape + '0m'
- _re_ansi_seq = re.compile('(\033\[..?m)')
+ _re_ansi_seq = re.compile(r'(\033\[..?m)')
_ansi_styles = {'bold': 1,
'underline': 4,
diff --git a/configshell/shell.py b/configshell/shell.py
index 437186d..ec7a239 100644
--- a/configshell/shell.py
+++ b/configshell/shell.py
@@ -113,22 +113,22 @@ class ConfigShell(object):
# Grammar of the command line
command = locatedExpr(Word(alphanums + '_'))('command')
- var = Word(alphanums + '?;&*$!#,=_\+/.<>()~@:-%[]')
+ var = Word(alphanums + r'?;&*$!#,=_\+/.<>()~@:-%[]')
value = var
- keyword = Word(alphanums + '_\-')
+ keyword = Word(alphanums + r'_\-')
kparam = locatedExpr(keyword + Suppress('=') + Optional(value, default=''))('kparams*')
pparam = locatedExpr(var)('pparams*')
parameter = kparam | pparam
parameters = OneOrMore(parameter)
bookmark = Regex('@([A-Za-z0-9:_.]|-)+')
- pathstd = Regex('([A-Za-z0-9:_.\[\]]|-)*' + '/' + '([A-Za-z0-9:_.\[\]/]|-)*') \
+ pathstd = Regex(r'([A-Za-z0-9:_.\[\]]|-)*' + '/' + r'([A-Za-z0-9:_.\[\]/]|-)*') \
| '..' | '.'
path = locatedExpr(bookmark | pathstd | '*')('path')
parser = Optional(path) + Optional(command) + Optional(parameters)
self._parser = parser
if tty:
- readline.set_completer_delims('\t\n ~!#$^&(){}\|;\'",?')
+ readline.set_completer_delims('\t\n ~!#$^&(){}|;\'",?')
readline.set_completion_display_matches_hook(
self._display_completions)