summaryrefslogtreecommitdiff
path: root/dev-python/argcomplete
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/argcomplete
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/argcomplete')
-rw-r--r--dev-python/argcomplete/Manifest12
-rw-r--r--dev-python/argcomplete/argcomplete-1.4.1.ebuild38
-rw-r--r--dev-python/argcomplete/argcomplete-1.6.0.ebuild29
-rw-r--r--dev-python/argcomplete/argcomplete-1.8.2.ebuild32
-rw-r--r--dev-python/argcomplete/argcomplete-1.9.2.ebuild31
-rw-r--r--dev-python/argcomplete/files/argcomplete-1.8.2-disable-tcsh-tests.patch35
-rw-r--r--dev-python/argcomplete/metadata.xml12
7 files changed, 189 insertions, 0 deletions
diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest
new file mode 100644
index 000000000000..32d172b0e26c
--- /dev/null
+++ b/dev-python/argcomplete/Manifest
@@ -0,0 +1,12 @@
+AUX argcomplete-1.8.2-disable-tcsh-tests.patch 1294 SHA256 e1dcf6f627087954ad2420e9f45c93baf92b8602a367ecccf4e0e7558886988c SHA512 44c61d79dd23eac102fc437d9778f56d0a44b24af228b20fb2958d28962919718cb9a401a42f8a688eed655da85571b777136c4e5ea7d34f6634aa5381287b3e WHIRLPOOL d7be8aa38edb142fa044b358c036f8a485e7cc9da8493f5ff39d59318d9ffeb9bf16814a59a9d0756729e6c7a130b40a256bdd3704ff682982d032f7190aa2d9
+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
+DIST argcomplete-1.9.2.tar.gz 46445 SHA256 d6ea272a93bb0387f758def836e73c36fff0c54170258c212de3e84f7db8d5ed SHA512 174a4f7f1e24944472567c7cf2959b1bf1bf1d57f9c9d36469837f568d9e5db89d7055a2b93ff58e72fa5a78acb498833833a465da2b69bcf09fcfa2ecdad742 WHIRLPOOL d2259d7befbb4b5a0ad22b17e6a81b039bd9fd5798843b14566c7066b335b92c61758e4c4475dbcc377aa85bfd519418c98f81eb3c73ca84db00e172e8d9c349
+EBUILD argcomplete-1.4.1.ebuild 969 SHA256 00ee0182ece1e462d7123ef51c3012840680787e7500f9620bea51c41847b01e SHA512 0318d5717d2586a1090e660a8efc46a56066046e85862e022bf69c22fb7a4ba0acd9da58d51ea75fc38f3d4ae982698257967777c8324acc4ab97c0191b473a2 WHIRLPOOL cde2a7af0578244cc2318f16a5ee2374029c20519ca5dacccd00906a29e49f952274776e0b7a6337fd353e702dc3a5b8bb2b1b8454a05c27d620fbee9398ad15
+EBUILD argcomplete-1.6.0.ebuild 753 SHA256 f70aaaf60f8cdddbed3d55a34950e561e5e14c482bbd6ab26974acfa8c9ebe29 SHA512 d2b6de83703f36e1a98611610b132eee793f684f3b0826530c9319e1b11503c9991efbee673145a3bb78478b225f56b57fda5adeac76a6ab5e9f7ba71f0f1f4b WHIRLPOOL 80d3d13ed558f87c4fc5444d29794e790cea771042567d5d08667393828f1d5db74c65f0f6fd5dca6ceefa74842f3e999f20ba44ab88c77de001f0b8b665bbd9
+EBUILD argcomplete-1.8.2.ebuild 812 SHA256 6fbe6ced7641891a8e895a565d93c9c9cc4b8864d6ae27ae4a35b74f8075993c SHA512 2f9f68b9f6241c71cd4932613b8441ba5c4520ddbebe20163de962489bc985349914b90af3a7245cdd225d9777e9af4246af3f0fa8af0a2b8bbedf5c407ebcba WHIRLPOOL bc9ad27a7432c187cb824576483624720049350ec6716aef2576cf8c4f53aeb15374ab747798e6d31f10ce825fc8ef2a060c23c26d761b5fd55c6b544f21ad6b
+EBUILD argcomplete-1.9.2.ebuild 773 SHA256 dfa27b2e423056c9d882201fe06bc8698423271e174c8e821f704cda159a1117 SHA512 15eaee33df92399e24ec42b504735f577f0336780a1ffac591f04b8b5a083a58774dc530c77404113e87fe81de4c28671aca2cd73358c4d84fa73c7d6dc8a78c WHIRLPOOL 8704fa5478a16320fd8498c468a9197deeed27c0fcb7040b9296a543139d55e3052b14c36f4fd55efaaf457ab8a0a8065de8fceb8400ab5d7cb5510833b1e33a
+MISC ChangeLog 4276 SHA256 fcd4d6167221014866afa6804b629f0778092998fe930645fc05426bf1861be3 SHA512 2d8953a3f009c1ca4c05d9c7ee119ce2528c17f31f212bea19dd9a37ba7232bfdf6b0207d895cdb4eb60be7a62c3f37fb0d49eb082082bccb8c167f4225518f5 WHIRLPOOL 33358fce131c174eefdb69469f38a58453a57f4cc1cd312bb33a897d5023bd26e62f5a245110e12910ac4947fb376f298e7776f268e2f4f27611af9f131ecf8e
+MISC ChangeLog-2015 2243 SHA256 b4989afdb79ca125bfa748a239a7191a4158680d156d15cdd8750b52e0ca5bdb SHA512 99ae064aaaef3ddeb2c4a5fff2fdc69c593e6cf586fb7d88b36bac1615971382843825ef8eb14cdac9d1d0c075b5a9e4c4760885b61af6ec0fa6143074ab94de WHIRLPOOL 76291ff5bf67682ae2c67d61f629c32f54f98bd5fa3539458a6a81cb46baa292a49fc2782f426545777a24d0acc7b54710055ec4ebe2dbce0a147ccdb4e8a38c
+MISC metadata.xml 385 SHA256 0c336eb52193d785ea1d0eba3a37339ee308538d26fc144e6a657a8ff93f6a38 SHA512 125cccb9f83bacb68944c893b76905ca6db26c41f0e843bc3b2ed4fd8b18df4247696c0fb34acff77c41bd57fce517669878e071db6dcdcedde42f85cc012e5d WHIRLPOOL f08941cb18a6ae769a87ed3ef09e01174feb46267642b936785cd2a9e980ad8feda696782a63b513f58e2a7b23ba02f45539d89801b2c7ead393768c3a57a2d2
diff --git a/dev-python/argcomplete/argcomplete-1.4.1.ebuild b/dev-python/argcomplete/argcomplete-1.4.1.ebuild
new file mode 100644
index 000000000000..1713ddf9103c
--- /dev/null
+++ b/dev-python/argcomplete/argcomplete-1.4.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1 bash-completion-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 ~amd64-linux ~x86-linux ~x64-macos"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+ # purge test folder to avoid file collisions
+ sed -e "s:find_packages():find_packages(exclude=['test','test.*']):" -i setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ ${EPYTHON} test/test.py || die
+}
+
+python_install_all() {
+ sed \
+ -e "/complete /d" \
+ -i argcomplete/bash_completion.d/python-argcomplete.sh || die
+
+ distutils-r1_python_install_all
+ newbashcomp "${S}"/${PN}/bash_completion.d/python-argcomplete.sh python-${PN}
+}
diff --git a/dev-python/argcomplete/argcomplete-1.6.0.ebuild b/dev-python/argcomplete/argcomplete-1.6.0.ebuild
new file mode 100644
index 000000000000..259a9c1101cd
--- /dev/null
+++ b/dev-python/argcomplete/argcomplete-1.6.0.ebuild
@@ -0,0 +1,29 @@
+# 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
new file mode 100644
index 000000000000..6ed17da9c813
--- /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/argcomplete-1.9.2.ebuild b/dev-python/argcomplete/argcomplete-1.9.2.ebuild
new file mode 100644
index 000000000000..d5626745f23f
--- /dev/null
+++ b/dev-python/argcomplete/argcomplete-1.9.2.ebuild
@@ -0,0 +1,31 @@
+# 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}]
+ app-shells/tcsh )"
+
+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 000000000000..ee866c39d117
--- /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')
diff --git a/dev-python/argcomplete/metadata.xml b/dev-python/argcomplete/metadata.xml
new file mode 100644
index 000000000000..ae11391891a7
--- /dev/null
+++ b/dev-python/argcomplete/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">argcomplete</remote-id>
+ <remote-id type="github">kislyuk/argcomplete</remote-id>
+ </upstream>
+</pkgmetadata>