Update to 3.2.0 (RHBZ#2175448)

- Drop patches (merged upstream)
This commit is contained in:
Sandro 2023-12-10 10:34:40 +01:00
parent 1c8ddc7419
commit 881f7e6a21
No known key found for this signature in database
GPG Key ID: 68D0FF74FE9F382A
5 changed files with 3 additions and 75 deletions

1
.gitignore vendored
View File

@ -25,3 +25,4 @@
/argcomplete-2.0.0.tar.gz
/argcomplete-3.1.4.tar.gz
/argcomplete-3.1.6.tar.gz
/argcomplete-3.2.0.tar.gz

View File

@ -1,48 +0,0 @@
From 77aac68d8b50df0d63e3670755afad5c3e5c7eec Mon Sep 17 00:00:00 2001
From: Evan <evanunderscore@gmail.com>
Date: Sat, 25 Nov 2023 21:23:16 +1100
Subject: [PATCH] Add sanity check to shell tests
---
test/test.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/test.py b/test/test.py
index c89912a6..d94e55ac 100755
--- a/test/test.py
+++ b/test/test.py
@@ -8,6 +8,7 @@
import subprocess
import sys
import unittest
+import unittest.util
from io import StringIO
from tempfile import NamedTemporaryFile, TemporaryFile, mkdtemp
@@ -33,6 +34,9 @@
from argcomplete.completers import DirectoriesCompleter, FilesCompleter, SuppressCompleter # noqa: E402
from argcomplete.lexers import split_line # noqa: E402
+# Default max length is insufficient for troubleshooting.
+unittest.util._MAX_LENGTH = 1000
+
IFS = "\013"
COMP_WORDBREAKS = " \t\n\"'><=;|&(:"
@@ -1239,12 +1243,16 @@ def test_comp_point(self):
class TestBashZshBase(TestShellBase):
+ maxDiff = None
+
# 'dummy' argument unused; checks multi-command registration works
# by passing 'prog' as the second argument.
install_cmd = 'eval "$(register-python-argcomplete dummy prog)"'
def setUp(self):
sh = self.repl_provider()
+ output = sh.run_command("echo ready")
+ self.assertEqual(output, "ready\r\n")
path = ":".join([os.path.join(BASE_DIR, "scripts"), TEST_DIR, "$PATH"])
sh.run_command("export PATH={0}".format(path))
sh.run_command("export PYTHONPATH={0}".format(BASE_DIR))

View File

@ -1,22 +0,0 @@
From 9c022cb2addcc3fb92fedc5ac10c9266bd816207 Mon Sep 17 00:00:00 2001
From: Evan <evanunderscore@gmail.com>
Date: Sun, 26 Nov 2023 03:06:56 +1100
Subject: [PATCH] Work around trailing null characters
---
test/test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/test.py b/test/test.py
index d94e55a..2acba32 100755
--- a/test/test.py
+++ b/test/test.py
@@ -54,7 +54,7 @@ def run_command(self, command, **kwargs):
raise Exception("Expected to see a newline in command response")
echo_cmd, actual_res = res.split("\n", 1)
res_without_ansi_seqs = re.sub(r"\x1b\[0m.+\x1b\[J", "", actual_res)
- return res_without_ansi_seqs
+ return res_without_ansi_seqs.rstrip('\x00')
else:
return res

View File

@ -10,14 +10,11 @@
Name: python-argcomplete
Summary: Bash tab completion for argparse
Version: 3.1.6
Version: 3.2.0
Release: %autorelease
License: Apache-2.0
URL: https://github.com/kislyuk/argcomplete
Source0: %pypi_source argcomplete
# https://github.com/kislyuk/argcomplete/issues/447
Patch: https://patch-diff.githubusercontent.com/raw/kislyuk/argcomplete/pull/464.patch
Patch: https://github.com/kislyuk/argcomplete/commit/9c022cb2addcc3fb92fedc5ac10c9266bd816207.patch
BuildRequires: python3-devel

View File

@ -1 +1 @@
SHA512 (argcomplete-3.1.6.tar.gz) = 7d625dfc49253281f692254a23e7fc4af155b97a7df55a0b33eba9655281702396a1119269cf80b5650885e00d75886fbdcbd85312e7ccac6d940edd6189d50e
SHA512 (argcomplete-3.2.0.tar.gz) = 4ec4b83f68080cf8710b7377ae377a8ae10bc54f46bdd2a825b4c04d80a8d42f63fbc04d6413e2c430d7f4024ecd42f944b102c70e3fa3b60afda10a33994ac7