[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/05: gnu: python-argcomplete: Update to 3.2.2.
From: |
guix-commits |
Subject: |
02/05: gnu: python-argcomplete: Update to 3.2.2. |
Date: |
Tue, 27 Feb 2024 10:33:51 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit 7c293e3f92b5617e57367d4c18677c79b396b806
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Feb 27 15:56:31 2024 +0100
gnu: python-argcomplete: Update to 3.2.2.
* gnu/packages/patches/python-argcomplete-1.11.1-fish31.patch: Remove patch.
* gnu/local.mk (dist_patch_DATA): Remove it.
* gnu/packages/python-xyz.scm (python-argcomplete): Update to 3.2.2.
[source]: Delete obsolete patch.
[build-system]: Use pyproject-build-system.
[arguments]: Override check phase.
[native-inputs]: Remove python-flake8; add python-mypy, python-setuptools,
and
zsh.
Change-Id: Ia7e37db2b535177eb2caeeab9d7e075af3f273a3
---
gnu/local.mk | 1 -
.../patches/python-argcomplete-1.11.1-fish31.patch | 29 -------------------
gnu/packages/python-xyz.scm | 33 +++++++++++++++-------
3 files changed, 23 insertions(+), 40 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 15352f68d4..68fa8f7028 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1901,7 +1901,6 @@ dist_patch_DATA =
\
%D%/packages/patches/python-3-fix-tests.patch \
%D%/packages/patches/python-3-hurd-configure.patch \
%D%/packages/patches/python-aionotify-0.2.0-py3.8.patch \
- %D%/packages/patches/python-argcomplete-1.11.1-fish31.patch \
%D%/packages/patches/python-cross-compile.patch \
%D%/packages/patches/python-configobj-setuptools.patch \
%D%/packages/patches/python-dateutil-pytest-compat.patch \
diff --git a/gnu/packages/patches/python-argcomplete-1.11.1-fish31.patch
b/gnu/packages/patches/python-argcomplete-1.11.1-fish31.patch
deleted file mode 100644
index 98f0ca1473..0000000000
--- a/gnu/packages/patches/python-argcomplete-1.11.1-fish31.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-Upstream commit fixing testcases for fish>=3.1, see
-https://github.com/kislyuk/argcomplete/commit/08bfc8a788e8081515d733e67be026d051c726f7
-
-diff --git a/test/test.py b/test/test.py
-index e91352b..2c34806 100755
---- a/test/test.py
-+++ b/test/test.py
-@@ -28,6 +28,8 @@
-
- BASH_VERSION = subprocess.check_output(['bash', '-c', 'echo
$BASH_VERSION']).decode()
- BASH_MAJOR_VERSION = int(BASH_VERSION.split('.')[0])
-+FISH_VERSION_STR = subprocess.check_output(['fish', '-c', 'echo -n
$FISH_VERSION']).decode()
-+FISH_VERSION_TUPLE = tuple(int(x) for x in FISH_VERSION_STR.split('.'))
-
-
- class TempDir(object):
-@@ -1258,8 +1260,11 @@ class TestFish(_TestSh, unittest.TestCase):
- expected_failures = [
- 'test_parse_special_characters',
- 'test_comp_point',
-- 'test_special_characters_double_quoted'
- ]
-+ if FISH_VERSION_TUPLE < (3, 1):
-+ expected_failures.extend([
-+ 'test_special_characters_double_quoted'
-+ ])
-
- skipped = [
- 'test_single_quotes_in_single_quotes',
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index de21f1cc54..c16c425477 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22279,31 +22279,44 @@ JPEG2000 and GIF files in pure Python.")
(define-public python-argcomplete
(package
(name "python-argcomplete")
- (version "1.11.1")
+ (version "3.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "argcomplete" version))
(sha256
(base32
- "0h1przxffrhqvi46k40pzjsvdrq4zc3sl1pc96kkigqppq0vdrss"))
- (patches (search-patches "python-argcomplete-1.11.1-fish31.patch"))))
- (build-system python-build-system)
+ "18h023ma2m2gw8w8dm2pvv4k0vpli94293jl57p2ch4vln79xr7k"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; pip: command not found
+ (substitute* "test/test.py"
+ (("def test_console_script")
+ "def __disable_test_console_script"))
+ (invoke "python3" "./test/test.py" "-v")))))))
(native-inputs
(list python-coverage
- python-flake8
+ python-mypy
python-pexpect
+ python-setuptools
python-wheel
tcsh
fish
- bash)) ;full Bash for 'test_file_completion'
+ bash ;full Bash for 'test_file_completion'
+ zsh))
(home-page "https://github.com/kislyuk/argcomplete")
(synopsis "Shell tab completion for Python argparse")
(description "argcomplete provides extensible command line tab completion
- of arguments and options for Python scripts using @code{argparse}. It's
- particularly useful for programs with many options or sub-parsers that can
- dynamically suggest completions ; for example, when browsing resources
over the
- network.")
+of arguments and options for Python scripts using @code{argparse}. It's
+particularly useful for programs with many options or sub-parsers that can
+dynamically suggest completions ; for example, when browsing resources over
+the network.")
(license license:asl2.0)))
(define-public python-csscompressor