[gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/, dev-python/argcomplete/files/
commit: dc414511a5b92b27cd3d890f62c6cd504b78e8db Author: Michał Górny gentoo org> AuthorDate: Sun May 12 16:35:03 2024 + Commit: Michał Górny gentoo org> CommitDate: Sun May 12 17:13:06 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc414511 dev-python/argcomplete: Fix test flakiness Signed-off-by: Michał Górny gentoo.org> dev-python/argcomplete/argcomplete-3.3.0.ebuild | 2 ++ .../argcomplete/files/argcomplete-3.3.0-test-bashrc.patch | 13 + 2 files changed, 15 insertions(+) diff --git a/dev-python/argcomplete/argcomplete-3.3.0.ebuild b/dev-python/argcomplete/argcomplete-3.3.0.ebuild index cdda946da90b..ab7a1bf05da6 100644 --- a/dev-python/argcomplete/argcomplete-3.3.0.ebuild +++ b/dev-python/argcomplete/argcomplete-3.3.0.ebuild @@ -36,6 +36,8 @@ PATCHES=( # 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" + # https://github.com/kislyuk/argcomplete/pull/485 + "${FILESDIR}/${P}-test-bashrc.patch" ) python_test() { diff --git a/dev-python/argcomplete/files/argcomplete-3.3.0-test-bashrc.patch b/dev-python/argcomplete/files/argcomplete-3.3.0-test-bashrc.patch new file mode 100644 index ..0e9f2fa1cea6 --- /dev/null +++ b/dev-python/argcomplete/files/argcomplete-3.3.0-test-bashrc.patch @@ -0,0 +1,13 @@ +diff --git a/test/test.py b/test/test.py +index c8f9419..ca38be6 100755 +--- a/test/test.py b/test/test.py +@@ -73,7 +73,7 @@ def _repl_sh(command, args, non_printable_insert): + + + def bash_repl(command="bash"): +-bashrc = os.path.join(os.path.dirname(pexpect.__file__), "replwrap", "bashrc.sh") ++bashrc = os.path.join(os.path.dirname(pexpect.__file__), "bashrc.sh") + sh = _repl_sh(command, ["--rcfile", bashrc], non_printable_insert="\\[\\]") + return sh +
[gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/, dev-python/argcomplete/files/
commit: ffa4095f2f124cdfdaa553d644f5bbfc5c40f3cd Author: Michał Górny gentoo org> AuthorDate: Sun Dec 10 06:13:47 2023 + Commit: Michał Górny gentoo org> CommitDate: Sun Dec 10 06:25:08 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffa4095f dev-python/argcomplete: Bump to 3.2.0 Signed-off-by: Michał Górny gentoo.org> dev-python/argcomplete/Manifest| 1 + dev-python/argcomplete/argcomplete-3.2.0.ebuild| 43 ++ .../files/argcomplete-3.1.6-timeout.patch | 5 +-- 3 files changed, 45 insertions(+), 4 deletions(-) diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest index 98a177d7c6ee..62a41d2b60ec 100644 --- a/dev-python/argcomplete/Manifest +++ b/dev-python/argcomplete/Manifest @@ -1 +1,2 @@ DIST argcomplete-3.1.6.tar.gz 79685 BLAKE2B df21d5a68a173a3c09b76d866adf949910ad775eb6c7d09d797308e87c128a6eebe173d89fc95aaa42bb87bf08e9c84aa217e8844c9fab5c680c83e07d0c7854 SHA512 7d625dfc49253281f692254a23e7fc4af155b97a7df55a0b33eba9655281702396a1119269cf80b5650885e00d75886fbdcbd85312e7ccac6d940edd6189d50e +DIST argcomplete-3.2.0.tar.gz 80524 BLAKE2B cbe15faf0c46f761204f004a4b630efbb037444a7222c9fcd59dafa7f2d8201edade374cf70fe3a059d3681ef320942dd3b43f0984c04a2cd52fe0571dafce6c SHA512 4ec4b83f68080cf8710b7377ae377a8ae10bc54f46bdd2a825b4c04d80a8d42f63fbc04d6413e2c430d7f4024ecd42f944b102c70e3fa3b60afda10a33994ac7 diff --git a/dev-python/argcomplete/argcomplete-3.2.0.ebuild b/dev-python/argcomplete/argcomplete-3.2.0.ebuild new file mode 100644 index ..691d9d9b7d84 --- /dev/null +++ b/dev-python/argcomplete/argcomplete-3.2.0.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 index d8348818164d..0b2ac120402e 100644 --- a/dev-python/argcomplete/files/argcomplete-3.1.6-timeout.patch +++ b/dev-python/argcomplete/files/argcomplete-3.1.6-timeout.patch @@ -2,10 +2,7 @@ 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="' +@@ -1362,4 +1362,4 @@ class TestBashGlobal(TestBash): -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)
[gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/, dev-python/argcomplete/files/
commit: 95c47c58681a07df80ed4b6534600bb0fd073e86 Author: Michał Górny gentoo org> AuthorDate: Wed Apr 5 10:01:33 2023 + Commit: Michał Górny gentoo org> CommitDate: Wed Apr 5 10:01:33 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95c47c58 dev-python/argcomplete: Remove old Signed-off-by: Michał Górny gentoo.org> dev-python/argcomplete/Manifest| 6 --- dev-python/argcomplete/argcomplete-2.0.0-r1.ebuild | 48 -- dev-python/argcomplete/argcomplete-2.0.5.ebuild| 44 dev-python/argcomplete/argcomplete-2.1.1.ebuild| 40 -- dev-python/argcomplete/argcomplete-3.0.0.ebuild| 40 -- dev-python/argcomplete/argcomplete-3.0.3.ebuild| 40 -- dev-python/argcomplete/argcomplete-3.0.4.ebuild| 40 -- .../files/argcomplete-2.0.5-test-install.patch | 26 8 files changed, 284 deletions(-) diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest index 7245917d5741..a683a359040e 100644 --- a/dev-python/argcomplete/Manifest +++ b/dev-python/argcomplete/Manifest @@ -1,8 +1,2 @@ -DIST argcomplete-2.0.0.tar.gz 54164 BLAKE2B 77da149b07d4019f8d6f3dda8fd9bbe9953c25b8461ab0746e1c2eb4d1bb51a9007c1f046ad9dc41dc5f8f248fbdf18ad7d921cf644fbc7580661084fd1427a1 SHA512 ef2a551e1372ecf3739006fe2c020e9f7ec53c5809680dcd3d9d552290565d8d09ba22bcc989f40644120a129b101f8e2e8ed34723e947a7d8d7884e9b502c31 -DIST argcomplete-2.0.5.tar.gz 54665 BLAKE2B 33b3c1d6ba4b6fe6ac959db050d4944411a3ef6e737b9ae16f70d1e2cdd6cea0c2534ac4f4edce63df3606a18b9d8e16831a14db655cdd9cb4c2ad3afed60c72 SHA512 6354f2f67a5d0ff35539c2c4fa5ab5b78d3e57648ee2436da7b3916044d568d8558316a3e2b34581c97540c4a9f2191869fb215f0020ce09416d7b31377252e5 -DIST argcomplete-2.1.1.tar.gz 54042 BLAKE2B f4d1825306a17a873e3b3a9f23fea20ba29c4956ffc3228de4737b5be6280a3f29214a9e96bf5123220b2bd0b0fd88e77aa4d1487ef715af4e353fab0e2827a5 SHA512 3d37059713d953037421f2a3a2de1f3de7d2073423bce16187ffd47d24edbb72778ca2513ecb52c68ed6a3f8da85770af36d07fded4ab1b41693a2ef2836 DIST argcomplete-2.1.2.tar.gz 54114 BLAKE2B 19d29eb26c8d77998dcba51c263f49800ff98f22038964faf63d7b5963e8d62ca71ade9493937014f2e030add8a7d1032e2fdffce28765e12164906499cd2bcb SHA512 a91e3c0274c780da173659524f166b98f55342e54fbd38583757e65350b2288ea0e7f5acee7cb83b11478eda1b9b0f82ae6b0f559d7104c4ed67a6e1c9befa24 -DIST argcomplete-3.0.0.tar.gz 54666 BLAKE2B 98ea63847232e17a485f2a5484fc58d2154281046c190c98f542ee9c3e82ee13d4504056a8da29a093632693badb9a93067ad64b28ffa3d58d22de9c0a99f21a SHA512 ecb88f6487fe6b4e7ecd8b504496bd2e4ffb4ca9dc0e27557d6db49b5b07610f6a8560e15cb5a5ad49af71e5b6c1d825a2e8a72731b2c39ba3907c2a9fe0a14f -DIST argcomplete-3.0.3.tar.gz 54772 BLAKE2B 59ad1fc393f37875c152e7bda958cf185bb4d5cf6b331d4c2847f09a040365449906bdce3eb6bd251d569e3fa50bafbdb2f328c0bcc7f2b7dc2608c562b694d0 SHA512 413407d6f54708d6321b6ab67bab5755084846588aa4fceabe35ea4de95d652887847c6df4739da51ae89aeadac90e0f6cb0e1d92237267fa92502e2c8c27070 -DIST argcomplete-3.0.4.tar.gz 55160 BLAKE2B bb4453d9cfc5a82d77d96068845c4aaa187fd9fef4751d1f115700e496eb97d74fc1c677d0fccfa14ce4ae3dbd205ea68a684d98e88be3731712efe73a5db858 SHA512 0c38f7b2a26045717e1ee52d812d8b9d0688e484201b100b4ad1b7a881e0ef61b793f979d620edcc0a79f512a8e87dbc81b84d17a7857d43192fdd3adc1c6733 DIST argcomplete-3.0.5.tar.gz 65470 BLAKE2B ca9208edf7688aa7ff9a224befa2a84d2c9b6bdf4077a805efb107f256f98f0477c2c900dfb3c3bee3c08973aab8777cf6b01ab1a4698347e3ac457f131df0a0 SHA512 7ee0e8b961e4e9ba76194587da481908ac064306f1cd4fc0886d6facb4f2dab409dd1080ab440be761caebe358139cc8bc67fb720dd1d8e3f6105595dc8a5858 diff --git a/dev-python/argcomplete/argcomplete-2.0.0-r1.ebuild b/dev-python/argcomplete/argcomplete-2.0.0-r1.ebuild deleted file mode 100644 index 70779c596e0d.. --- a/dev-python/argcomplete/argcomplete-2.0.0-r1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# 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_{9..11} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Bash tab completion for argparse" -HOMEPAGE=" - https://github.com/kislyuk/argcomplete/ - https://pypi.org/project/argcomplete/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -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 - dev-python/pexpect[${PYTHON_USEDEP}] - >=dev-python/pip-19 - ) -" - -src_prepare() { - sed -i -e 's:timeout=5:timeout=30:' test/test.py || die - distutils-r1_src_prepare -} - -src_test() { - #
[gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/, dev-python/argcomplete/files/
commit: 38b731f8336d42eb1b5fae4eca45dffb11ba5a88 Author: Sam James gentoo org> AuthorDate: Sun Mar 5 08:20:49 2023 + Commit: Sam James gentoo org> CommitDate: Sun Mar 5 08:21:37 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38b731f8 dev-python/argcomplete: fix installation Closes: https://bugs.gentoo.org/899628 Signed-off-by: Sam James gentoo.org> dev-python/argcomplete/argcomplete-2.0.5.ebuild| 4 .../files/argcomplete-2.0.5-test-install.patch | 26 ++ 2 files changed, 30 insertions(+) diff --git a/dev-python/argcomplete/argcomplete-2.0.5.ebuild b/dev-python/argcomplete/argcomplete-2.0.5.ebuild index 9d989d07a652..de9e9a20ddc8 100644 --- a/dev-python/argcomplete/argcomplete-2.0.5.ebuild +++ b/dev-python/argcomplete/argcomplete-2.0.5.ebuild @@ -30,6 +30,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/argcomplete-2.0.5-test-install.patch +) + src_prepare() { sed -i -e 's:timeout=5:timeout=30:' test/test.py || die distutils-r1_src_prepare diff --git a/dev-python/argcomplete/files/argcomplete-2.0.5-test-install.patch b/dev-python/argcomplete/files/argcomplete-2.0.5-test-install.patch new file mode 100644 index ..a710498d5223 --- /dev/null +++ b/dev-python/argcomplete/files/argcomplete-2.0.5-test-install.patch @@ -0,0 +1,26 @@ +https://github.com/kislyuk/argcomplete/pull/406 + +From e6682b3e3e0c7882a3b93df2f0e466ef001d37e4 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 5 Mar 2023 08:14:10 + +Subject: [PATCH] setup.py: exclude test.* subpackages from find_packages too + +Otherwise, test.test_package will be picked up when installing via +PEP517. + +Bug: https://bugs.gentoo.org/899628 +Signed-off-by: Sam James +--- a/setup.py b/setup.py +@@ -33,7 +33,7 @@ setup( + ':python_version == "3.6"': importlib_backport_requires, + ':python_version == "3.7"': importlib_backport_requires, + }, +-packages=find_packages(exclude=["test"]), ++packages=find_packages(exclude=["test", "test.*"]), + scripts=glob.glob("scripts/*"), + package_data={"argcomplete": ["bash_completion.d/python-argcomplete"]}, + zip_safe=False, +-- +2.39.2 +
[gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/, dev-python/argcomplete/files/
commit: 45236a094aa52f15ff3096887340c5feb1b225ad Author: Michał Górny gentoo org> AuthorDate: Tue Jan 2 15:05:23 2018 + Commit: Michał Górny gentoo org> CommitDate: Tue Jan 2 22:13:48 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45236a09 dev-python/argcomplete: Clean old up dev-python/argcomplete/Manifest| 2 -- dev-python/argcomplete/argcomplete-1.6.0.ebuild| 29 -- dev-python/argcomplete/argcomplete-1.8.2.ebuild| 32 .../argcomplete-1.8.2-disable-tcsh-tests.patch | 35 -- 4 files changed, 98 deletions(-) diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest index 86cb1ade8ea..f10914bf1a3 100644 --- a/dev-python/argcomplete/Manifest +++ b/dev-python/argcomplete/Manifest @@ -1,4 +1,2 @@ DIST argcomplete-1.4.1.tar.gz 37219 BLAKE2B eff9c8b8a2996d2d57ca99516071a1c831f9e64be4efd72bf930dfe7fb2404db2aa03546e761ae73b5d22f8ebe683728c433ab837eee5c073616e7d32fa32010 SHA512 3e9fa64fca93baf14fddd653947ff0269004e8783de0567931dafb9e4d0dfff2e2450ef6df331a4d648f5ce1d817a422f52d8d30b94315cd54fd82102467ded5 -DIST argcomplete-1.6.0.tar.gz 39685 BLAKE2B 0055394ff7481cdce2e6882f971fab35ad3df972238915d51caae68c9b8ff36e8510a0cb57c01a398bcc56b8a14b2bb867eb4b9099bab00d67ef6f5dc6ceaeda SHA512 6a2a6a4af3ddb5bea0022bf5e2acb123d4c0505d979887ebb82ed5c8a591d59d35b57084483428d030e0507f3cd149953146f49d4a7b0290bc88648cea3eb7a3 -DIST argcomplete-1.8.2.tar.gz 53626 BLAKE2B 446fc108468ca10f63f23e00aa891c7c692345f71274d798f046644f5c203017553d071b0e3cd643d4e786f5ef2502d9bd35d940692cf814f96727c73cee3f9c SHA512 ed3ddfe402bd89b81da1935a105dcc1914e9c7b98590624ba1140647ce1322a71d790bf3d0e29fe745ca676aa22f99b9834b58a97c2b1c08ca4a32bab7f4c914 DIST argcomplete-1.9.2.tar.gz 46445 BLAKE2B a515fb1fdb94a78f02d01c90950bc21ac8000ccd54724e3037fb491097627a0f5de08b281dc13a7b531b4df6598f1aa1d7310932131a5a5a778dc5e5b39020d0 SHA512 174a4f7f1e24944472567c7cf2959b1bf1bf1d57f9c9d36469837f568d9e5db89d7055a2b93ff58e72fa5a78acb498833833a465da2b69bcf09fcfa2ecdad742 diff --git a/dev-python/argcomplete/argcomplete-1.6.0.ebuild b/dev-python/argcomplete/argcomplete-1.6.0.ebuild deleted file mode 100644 index 259a9c1101c..000 --- a/dev-python/argcomplete/argcomplete-1.6.0.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2016 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}] )" - -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/argcomplete-1.8.2.ebuild b/dev-python/argcomplete/argcomplete-1.8.2.ebuild deleted file mode 100644 index 6ed17da9c81..000 --- a/dev-python/argcomplete/argcomplete-1.8.2.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# 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 deleted file mode 100644 index ee866c39d11..000 --- a/dev-python/argcomplete/files/argcomplete-1.8.2-disable-tcsh-tests.patch +++ /dev/null @@ -1,35 +0,0 @@ a/test/test.py 2017-07-10 21:18:13.701472836 + -+++ b/test/test.py 2017-07-10 21:18:44.021473430 + -@@ -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', --