public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/files/, dev-python/argcomplete/
@ 2017-07-10 21:24 Patrice Clement
  0 siblings, 0 replies; 5+ messages in thread
From: Patrice Clement @ 2017-07-10 21:24 UTC (permalink / raw
  To: gentoo-commits

commit:     2c620207e94d676dcbe46930349db01d22240fb3
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 10 21:23:44 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Mon Jul 10 21:23:44 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c620207

dev-python/argcomplete: version bump.

Gentoo-Bug: https://bugs.gentoo.org/620280

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 dev-python/argcomplete/Manifest                    |  1 +
 dev-python/argcomplete/argcomplete-1.8.2.ebuild    | 32 ++++++++++++++++++++
 .../argcomplete-1.8.2-disable-tcsh-tests.patch     | 35 ++++++++++++++++++++++
 3 files changed, 68 insertions(+)

diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest
index a32633048ec..ecbd38a72f8 100644
--- a/dev-python/argcomplete/Manifest
+++ b/dev-python/argcomplete/Manifest
@@ -1,2 +1,3 @@
 DIST argcomplete-1.4.1.tar.gz 37219 SHA256 a7b5fa8d1acb69e49b3c6b3f6225bc709092e0c7f621311bac507a4f6efe609d SHA512 3e9fa64fca93baf14fddd653947ff0269004e8783de0567931dafb9e4d0dfff2e2450ef6df331a4d648f5ce1d817a422f52d8d30b94315cd54fd82102467ded5 WHIRLPOOL ee11a1f16f44b204502bc0a1246626305cbdddf8633608fbb5575270e3568b4995ae449ccf309f12225f29099dac117aa21c66cd14f53d0d90fd6abfc637d7e7
 DIST argcomplete-1.6.0.tar.gz 39685 SHA256 d37abde525436465a5126084a89630887bdafd03fddb1bd7b40efc01dbcff9f0 SHA512 6a2a6a4af3ddb5bea0022bf5e2acb123d4c0505d979887ebb82ed5c8a591d59d35b57084483428d030e0507f3cd149953146f49d4a7b0290bc88648cea3eb7a3 WHIRLPOOL 106a23798ebe624ed9548023f00d970bb119b7b35d763f57be694a032dddaba933622eee5c655b6ce321d7c7297604219ae2a0dd681e5ef836aac53db03713ad
+DIST argcomplete-1.8.2.tar.gz 53626 SHA256 7a2ccde074eb6631232b2f91f8d8d5985d5bebf0e36b091113096e3a0385546b SHA512 ed3ddfe402bd89b81da1935a105dcc1914e9c7b98590624ba1140647ce1322a71d790bf3d0e29fe745ca676aa22f99b9834b58a97c2b1c08ca4a32bab7f4c914 WHIRLPOOL 60f3aa3cb468ee34cbf0766628e927f85bb1693db4ce9d48db3e4610952e413197a794e096675879b4d0cc5b27f3c147f2db357ef03f04e2c7c40d2e259c0597

diff --git a/dev-python/argcomplete/argcomplete-1.8.2.ebuild b/dev-python/argcomplete/argcomplete-1.8.2.ebuild
new file mode 100644
index 00000000000..6ed17da9c81
--- /dev/null
+++ b/dev-python/argcomplete/argcomplete-1.8.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy pypy3 )
+
+inherit bash-completion-r1 distutils-r1
+
+DESCRIPTION="Bash tab completion for argparse"
+HOMEPAGE="https://pypi.python.org/pypi/argcomplete"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS="~amd64 ~x86 ~arm ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="test"
+
+DEPEND="
+	dev-python/setuptools[${PYTHON_USEDEP}]
+	test? ( dev-python/pexpect[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}/${P}-disable-tcsh-tests.patch" )
+
+python_test() {
+	"${EPYTHON}" test/test.py || die
+}
+
+python_install_all() {
+	distutils-r1_python_install_all
+	newbashcomp "${S}"/${PN}/bash_completion.d/python-argcomplete.sh python-${PN}
+}

diff --git a/dev-python/argcomplete/files/argcomplete-1.8.2-disable-tcsh-tests.patch b/dev-python/argcomplete/files/argcomplete-1.8.2-disable-tcsh-tests.patch
new file mode 100644
index 00000000000..ee866c39d11
--- /dev/null
+++ b/dev-python/argcomplete/files/argcomplete-1.8.2-disable-tcsh-tests.patch
@@ -0,0 +1,35 @@
+--- a/test/test.py	2017-07-10 21:18:13.701472836 +0000
++++ b/test/test.py	2017-07-10 21:18:44.021473430 +0000
+@@ -1041,32 +1041,6 @@
+             self.assertEqual(self.sh.run_command('python ./prog basic f\t'), 'foo\r\n')
+ 
+ 
+-class TestTcsh(_TestSh, unittest.TestCase):
+-    expected_failures = [
+-        'test_unquoted_space',
+-        'test_quoted_space',
+-        'test_continuation',
+-        'test_parse_special_characters',
+-        'test_parse_special_characters_dollar',
+-    ]
+-
+-    def setUp(self):
+-        sh = Shell('tcsh')
+-        path = ' '.join([os.path.join(BASE_DIR, 'scripts'), TEST_DIR, '$path'])
+-        sh.run_command('set path = ({0})'.format(path))
+-        sh.run_command('setenv PYTHONPATH {0}'.format(BASE_DIR))
+-        output = sh.run_command('eval `register-python-argcomplete --shell tcsh prog`')
+-        self.assertEqual(output, '')
+-        self.sh = sh
+-
+-    def tearDown(self):
+-        # The shell wrapper is fragile; exactly which exception is raised
+-        # differs depending on environment.
+-        with self.assertRaises((pexpect.EOF, OSError)):
+-            self.sh.run_command('exit')
+-            self.sh.run_command('')
+-
+-
+ class Shell(object):
+     def __init__(self, shell):
+         self.child = pexpect.spawn(shell, encoding='utf-8')


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/files/, dev-python/argcomplete/
@ 2019-11-21 13:03 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2019-11-21 13:03 UTC (permalink / raw
  To: gentoo-commits

commit:     a5f8ef84b915e94faa8157f0e411ed60aa74f4c0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 21 11:03:09 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 21 13:03:00 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5f8ef84

dev-python/argcomplete: Bump to 1.10.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/argcomplete/Manifest                    |  1 +
 dev-python/argcomplete/argcomplete-1.10.2.ebuild   | 36 ++++++++++++++++++++
 .../files/argcomplete-1.10.2-test-pythonpath.patch | 39 ++++++++++++++++++++++
 3 files changed, 76 insertions(+)

diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest
index fa173be3625..6e233b3ccb6 100644
--- a/dev-python/argcomplete/Manifest
+++ b/dev-python/argcomplete/Manifest
@@ -1,3 +1,4 @@
 DIST argcomplete-1.10.0.tar.gz 47271 BLAKE2B 78a67b56d4871120d7384459c8ee591f42dee195143712c5c70d144d4116041d36ba687d4425beba6258b58d5a0a3ef847d10d6267f372282f37e953c6f92d80 SHA512 59e9cb721ddffd85d9f6461a70d50f9ba0795e36044cd46fa5fe707fb1be28c12f4ef531d2844020efc156300861b2ca8b73f56a116dd54bda0e52cf68c0a411
+DIST argcomplete-1.10.2.tar.gz 50128 BLAKE2B 95a7f5a10b5d86e2b065b0d0563ff6281a5d6a0c9ea83b432492a00f67a1321c52cb9d5907868f36351f3057b21d215ab5a897a2ea7530d27925914a9e04eba8 SHA512 5e425f7ed042c429d8c01bdf11b6e721343229ec9fe0e3f9d4a6e49c40473a40286175a82f62530b822294e1fd8539e941c17673f2a0dd05216a243f1c2f4fce
 DIST argcomplete-1.4.1.tar.gz 37219 BLAKE2B eff9c8b8a2996d2d57ca99516071a1c831f9e64be4efd72bf930dfe7fb2404db2aa03546e761ae73b5d22f8ebe683728c433ab837eee5c073616e7d32fa32010 SHA512 3e9fa64fca93baf14fddd653947ff0269004e8783de0567931dafb9e4d0dfff2e2450ef6df331a4d648f5ce1d817a422f52d8d30b94315cd54fd82102467ded5
 DIST argcomplete-1.9.4.tar.gz 47471 BLAKE2B ba64acc1fb2ae336166504db3dd991227c4e2a04abc6909ecf6723c1d2ce82ea65453ca2dde97316da9eaaa5b60026a6c8e4f3d658f1ed8122ca4fd00723fca1 SHA512 831958dffc75c65e2a63918d1e6f5e1fa47ec753b913c978e8d1d30d430ab8fedf66c99d8df23b2abc547b42c27335ccf47811224322994316ca2225c85ce346

diff --git a/dev-python/argcomplete/argcomplete-1.10.2.ebuild b/dev-python/argcomplete/argcomplete-1.10.2.ebuild
new file mode 100644
index 00000000000..b4d81cae436
--- /dev/null
+++ b/dev-python/argcomplete/argcomplete-1.10.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7,3_8} pypy pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Bash tab completion for argparse"
+HOMEPAGE="https://pypi.org/project/argcomplete/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# pip is called as an external tool
+BDEPEND="
+	dev-python/setuptools[${PYTHON_USEDEP}]
+	test? (
+		app-shells/fish
+		app-shells/tcsh
+		dev-python/pexpect[${PYTHON_USEDEP}]
+		dev-python/pip
+	)"
+
+PATCHES=(
+	"${FILESDIR}"/argcomplete-1.10.2-test-pythonpath.patch
+)
+
+python_test() {
+	"${EPYTHON}" test/test.py -v || die
+}

diff --git a/dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch b/dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch
new file mode 100644
index 00000000000..18bd22cf189
--- /dev/null
+++ b/dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch
@@ -0,0 +1,39 @@
+From 003cc45b1fa45c766e38c3230423a5662a00d371 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Thu, 21 Nov 2019 11:29:41 +0100
+Subject: [PATCH] Prepend to PYTHONPATH in test_console_script* instead of
+ replacing
+
+Modify _test_console_script() to prepend to PYTHONPATH instead of
+overwriting its value.  This is necessary so that it is able to find
+just-built version of argcomplete that is provided via PYTHONPATH
+(vs requiring it to be installed in system-wide directory prior).
+
+Otherwise, the tests are failing:
+
+  Traceback (most recent call last):
+    File "./bin/test-package", line 5, in <module>
+      from test_package import main
+    File "/tmp/argcomplete/test_dir_pychyg9vqx/test_package/__init__.py", line 4, in <module>
+      import argcomplete
+  ModuleNotFoundError: No module named 'argcomplete'
+---
+ test/test.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/test.py b/test/test.py
+index 98da760..ddf5a03 100755
+--- a/test/test.py
++++ b/test/test.py
+@@ -1185,7 +1185,7 @@ class TestBashGlobal(TestBash):
+         with TempDir(prefix='test_dir_py', dir='.'):
+             self.sh.run_command('cd ' + os.getcwd())
+             self.sh.run_command('export PATH=$PATH:./bin')
+-            self.sh.run_command('export PYTHONPATH=.')
++            self.sh.run_command('export PYTHONPATH=.:$PYTHONPATH')
+             test_package = os.path.join(TEST_DIR, 'test_package')
+             command = 'pip install {} --target .'.format(test_package)
+             if not wheel:
+-- 
+2.24.0
+


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/files/, dev-python/argcomplete/
@ 2019-12-24 10:21 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2019-12-24 10:21 UTC (permalink / raw
  To: gentoo-commits

commit:     664a5c4d0e6c68ff0f270f5d3531df48ca663825
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 24 06:05:39 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Dec 24 10:20:51 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=664a5c4d

dev-python/argcomplete: Remove redundant versions

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/argcomplete/Manifest                    |  2 --
 dev-python/argcomplete/argcomplete-1.10.0.ebuild   | 30 -----------------
 dev-python/argcomplete/argcomplete-1.10.2.ebuild   | 36 --------------------
 .../files/argcomplete-1.10.2-test-pythonpath.patch | 39 ----------------------
 4 files changed, 107 deletions(-)

diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest
index 46b8846a81c..40279d6af88 100644
--- a/dev-python/argcomplete/Manifest
+++ b/dev-python/argcomplete/Manifest
@@ -1,4 +1,2 @@
-DIST argcomplete-1.10.0.tar.gz 47271 BLAKE2B 78a67b56d4871120d7384459c8ee591f42dee195143712c5c70d144d4116041d36ba687d4425beba6258b58d5a0a3ef847d10d6267f372282f37e953c6f92d80 SHA512 59e9cb721ddffd85d9f6461a70d50f9ba0795e36044cd46fa5fe707fb1be28c12f4ef531d2844020efc156300861b2ca8b73f56a116dd54bda0e52cf68c0a411
-DIST argcomplete-1.10.2.tar.gz 50128 BLAKE2B 95a7f5a10b5d86e2b065b0d0563ff6281a5d6a0c9ea83b432492a00f67a1321c52cb9d5907868f36351f3057b21d215ab5a897a2ea7530d27925914a9e04eba8 SHA512 5e425f7ed042c429d8c01bdf11b6e721343229ec9fe0e3f9d4a6e49c40473a40286175a82f62530b822294e1fd8539e941c17673f2a0dd05216a243f1c2f4fce
 DIST argcomplete-1.10.3.tar.gz 50173 BLAKE2B 371baf55b65d49885398d3b2cbc2fa8abda30345643fd3f5700f92b76d4426a5f790835a83c158e47f9ee0f5fb6de8f8696528dc0701a1c8431f205bf2033703 SHA512 ea0fa18c161b395448fc09f5fad1190040ac05bb8c763c1ab775a95a10fcc88342f1b8594edcb07d56728014487f6ac54899b7e4cd16788cdc40cf14a4d60731
 DIST argcomplete-1.9.4.tar.gz 47471 BLAKE2B ba64acc1fb2ae336166504db3dd991227c4e2a04abc6909ecf6723c1d2ce82ea65453ca2dde97316da9eaaa5b60026a6c8e4f3d658f1ed8122ca4fd00723fca1 SHA512 831958dffc75c65e2a63918d1e6f5e1fa47ec753b913c978e8d1d30d430ab8fedf66c99d8df23b2abc547b42c27335ccf47811224322994316ca2225c85ce346

diff --git a/dev-python/argcomplete/argcomplete-1.10.0.ebuild b/dev-python/argcomplete/argcomplete-1.10.0.ebuild
deleted file mode 100644
index bcf6b4e4748..00000000000
--- a/dev-python/argcomplete/argcomplete-1.10.0.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7,3_8} pypy pypy3 )
-
-inherit distutils-r1
-
-DESCRIPTION="Bash tab completion for argparse"
-HOMEPAGE="https://pypi.org/project/argcomplete/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-DEPEND="
-	dev-python/setuptools[${PYTHON_USEDEP}]
-	test? (
-		dev-python/pexpect[${PYTHON_USEDEP}]
-		app-shells/fish
-		app-shells/tcsh
-	)"
-
-python_test() {
-	"${EPYTHON}" test/test.py -v || die
-}

diff --git a/dev-python/argcomplete/argcomplete-1.10.2.ebuild b/dev-python/argcomplete/argcomplete-1.10.2.ebuild
deleted file mode 100644
index b4d81cae436..00000000000
--- a/dev-python/argcomplete/argcomplete-1.10.2.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7,3_8} pypy pypy3 )
-
-inherit distutils-r1
-
-DESCRIPTION="Bash tab completion for argparse"
-HOMEPAGE="https://pypi.org/project/argcomplete/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-# pip is called as an external tool
-BDEPEND="
-	dev-python/setuptools[${PYTHON_USEDEP}]
-	test? (
-		app-shells/fish
-		app-shells/tcsh
-		dev-python/pexpect[${PYTHON_USEDEP}]
-		dev-python/pip
-	)"
-
-PATCHES=(
-	"${FILESDIR}"/argcomplete-1.10.2-test-pythonpath.patch
-)
-
-python_test() {
-	"${EPYTHON}" test/test.py -v || die
-}

diff --git a/dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch b/dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch
deleted file mode 100644
index 18bd22cf189..00000000000
--- a/dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 003cc45b1fa45c766e38c3230423a5662a00d371 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Thu, 21 Nov 2019 11:29:41 +0100
-Subject: [PATCH] Prepend to PYTHONPATH in test_console_script* instead of
- replacing
-
-Modify _test_console_script() to prepend to PYTHONPATH instead of
-overwriting its value.  This is necessary so that it is able to find
-just-built version of argcomplete that is provided via PYTHONPATH
-(vs requiring it to be installed in system-wide directory prior).
-
-Otherwise, the tests are failing:
-
-  Traceback (most recent call last):
-    File "./bin/test-package", line 5, in <module>
-      from test_package import main
-    File "/tmp/argcomplete/test_dir_pychyg9vqx/test_package/__init__.py", line 4, in <module>
-      import argcomplete
-  ModuleNotFoundError: No module named 'argcomplete'
----
- test/test.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/test/test.py b/test/test.py
-index 98da760..ddf5a03 100755
---- a/test/test.py
-+++ b/test/test.py
-@@ -1185,7 +1185,7 @@ class TestBashGlobal(TestBash):
-         with TempDir(prefix='test_dir_py', dir='.'):
-             self.sh.run_command('cd ' + os.getcwd())
-             self.sh.run_command('export PATH=$PATH:./bin')
--            self.sh.run_command('export PYTHONPATH=.')
-+            self.sh.run_command('export PYTHONPATH=.:$PYTHONPATH')
-             test_package = os.path.join(TEST_DIR, 'test_package')
-             command = 'pip install {} --target .'.format(test_package)
-             if not wheel:
--- 
-2.24.0
-


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/files/, dev-python/argcomplete/
@ 2020-05-01 13:36 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2020-05-01 13:36 UTC (permalink / raw
  To: gentoo-commits

commit:     f861e691e1488fdff3cc14a1958711289e076c76
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May  1 13:19:16 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May  1 13:36:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f861e691

dev-python/argcomplete: Fix XPASS with fish 3.1.0

Closes: https://bugs.gentoo.org/720216
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../argcomplete/argcomplete-1.11.1-r1.ebuild       |  4 +++
 .../files/argcomplete-1.11.1-fish-xpass.patch      | 35 ++++++++++++++++++++++
 2 files changed, 39 insertions(+)

diff --git a/dev-python/argcomplete/argcomplete-1.11.1-r1.ebuild b/dev-python/argcomplete/argcomplete-1.11.1-r1.ebuild
index 47957f564ad..b8764d725fa 100644
--- a/dev-python/argcomplete/argcomplete-1.11.1-r1.ebuild
+++ b/dev-python/argcomplete/argcomplete-1.11.1-r1.ebuild
@@ -31,6 +31,10 @@ BDEPEND="
 		>=dev-python/pip-19
 	)"
 
+PATCHES=(
+	"${FILESDIR}"/argcomplete-1.11.1-fish-xpass.patch
+)
+
 python_test() {
 	"${EPYTHON}" test/test.py -v || die
 }

diff --git a/dev-python/argcomplete/files/argcomplete-1.11.1-fish-xpass.patch b/dev-python/argcomplete/files/argcomplete-1.11.1-fish-xpass.patch
new file mode 100644
index 00000000000..575c8abbb74
--- /dev/null
+++ b/dev-python/argcomplete/files/argcomplete-1.11.1-fish-xpass.patch
@@ -0,0 +1,35 @@
+From 08bfc8a788e8081515d733e67be026d051c726f7 Mon Sep 17 00:00:00 2001
+From: Evan <evanunderscore@gmail.com>
+Date: Thu, 19 Mar 2020 14:55:07 +1100
+Subject: [PATCH] Remove expected test failure for new versions of fish (#292)
+
+---
+ test/test.py | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+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',


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/files/, dev-python/argcomplete/
@ 2023-11-13 13:49 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2023-11-13 13:49 UTC (permalink / raw
  To: gentoo-commits

commit:     f4b6ddbccf86bd734f4533be7b80e7eaa716a03b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 13 13:33:52 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 13 13:49:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4b6ddbc

dev-python/argcomplete: Bump to 3.1.6

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/argcomplete/Manifest                    |  1 +
 dev-python/argcomplete/argcomplete-3.1.6.ebuild    | 43 ++++++++++++++++++++++
 .../files/argcomplete-3.1.6-timeout.patch          | 24 ++++++++++++
 3 files changed, 68 insertions(+)

diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest
index 041c6f943101..8d055ca8cedf 100644
--- a/dev-python/argcomplete/Manifest
+++ b/dev-python/argcomplete/Manifest
@@ -1,2 +1,3 @@
 DIST argcomplete-3.1.2.tar.gz 89541 BLAKE2B ca00006d423244096bc2589b26a06826a4ba5541ab73176425a022a35635df3d575a9d6afe99579d7978e20d6b990f0338af6d4525337b135b27084df6352610 SHA512 661b48548e83e2e7a056f8f1151a81eee72c922951e5d3b7194fa0a08ff77c51eb5043237b9f460e5cb56751d9d159a0b43173b951e5f24094b53fd345cb8e85
 DIST argcomplete-3.1.4.tar.gz 79529 BLAKE2B 6b2291ab5d8608de6acf760ec00e3ca7edcf2118a09145eb84faa0805e16fe71165513ce9eec875664191869b279bca0e0a8fae540040a5a6b1c9d178e4272b9 SHA512 d5108273fb570ec42667acefd1cf397e2fbedb3d4fbc31bb2b3206cdbb3275fde88b4d40e9dc65045b6a94334e6b5b9136054c6291edc21dcd0542f1369fe4b1
+DIST argcomplete-3.1.6.tar.gz 79685 BLAKE2B df21d5a68a173a3c09b76d866adf949910ad775eb6c7d09d797308e87c128a6eebe173d89fc95aaa42bb87bf08e9c84aa217e8844c9fab5c680c83e07d0c7854 SHA512 7d625dfc49253281f692254a23e7fc4af155b97a7df55a0b33eba9655281702396a1119269cf80b5650885e00d75886fbdcbd85312e7ccac6d940edd6189d50e

diff --git a/dev-python/argcomplete/argcomplete-3.1.6.ebuild b/dev-python/argcomplete/argcomplete-3.1.6.ebuild
new file mode 100644
index 000000000000..691d9d9b7d84
--- /dev/null
+++ b/dev-python/argcomplete/argcomplete-3.1.6.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Bash tab completion for argparse"
+HOMEPAGE="
+	https://github.com/kislyuk/argcomplete/
+	https://pypi.org/project/argcomplete/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# pip is called as an external tool
+BDEPEND="
+	test? (
+		app-shells/fish
+		app-shells/tcsh
+		app-shells/zsh
+		dev-python/pexpect[${PYTHON_USEDEP}]
+		>=dev-python/pip-19
+	)
+"
+
+PATCHES=(
+	# increase test timeouts -- this is particularly necessary
+	# for entry point tests because they read metadata of all installed
+	# packages which can take real long on systems with lots of packages
+	"${FILESDIR}/argcomplete-3.1.6-timeout.patch"
+)
+
+python_test() {
+	"${EPYTHON}" test/test.py -v || die
+}

diff --git a/dev-python/argcomplete/files/argcomplete-3.1.6-timeout.patch b/dev-python/argcomplete/files/argcomplete-3.1.6-timeout.patch
new file mode 100644
index 000000000000..d8348818164d
--- /dev/null
+++ b/dev-python/argcomplete/files/argcomplete-3.1.6-timeout.patch
@@ -0,0 +1,24 @@
+diff --git a/test/test.py b/test/test.py
+index c89912a..eedfe36 100755
+--- a/test/test.py
++++ b/test/test.py
+@@ -1359,7 +1359,7 @@ class TestBashGlobal(TestBash):
+                 if sys.platform == "darwin":
+                     # Work around https://stackoverflow.com/questions/24257803
+                     command += ' --install-option="--prefix="'
+-            install_output = self.sh.run_command(command)
++            install_output = self.sh.run_command(command, timeout=300)
+             self.assertEqual(self.sh.run_command("echo $?"), "0\r\n", install_output)
+             command = "test-module"
+             if package:
+@@ -1395,8 +1395,8 @@ class Shell:
+     def run_command(self, command):
+         try:
+             self.child.sendline(r"echo -n \#\#\#; {0}; echo -n \#\#\#".format(command))
+-            self.child.expect_exact("###", timeout=5)
+-            self.child.expect_exact("###", timeout=5)
++            self.child.expect_exact("###", timeout=30)
++            self.child.expect_exact("###", timeout=30)
+             return self.child.before
+         finally:
+             # Send Ctrl+C in case we get stuck.


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-13 13:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-10 21:24 [gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/files/, dev-python/argcomplete/ Patrice Clement
  -- strict thread matches above, loose matches on Subject: below --
2019-11-21 13:03 Michał Górny
2019-12-24 10:21 Michał Górny
2020-05-01 13:36 Michał Górny
2023-11-13 13:49 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox