From 00680d3ef425b4259bb25066b71fc555f049b201 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [feature/flatten]" Date: Thu, 30 Jul 2020 06:25:00 +0000 Subject: Updating liguros repo --- dev-python/boto3/Manifest | 1 + dev-python/boto3/boto3-1.14.31.ebuild | 56 +++++++++++++++++++ dev-python/boto3/boto3-9999.ebuild | 6 ++- dev-python/botocore/Manifest | 1 + dev-python/botocore/botocore-1.17.31.ebuild | 62 ++++++++++++++++++++++ dev-python/botocore/botocore-9999.ebuild | 2 +- dev-python/cheroot/cheroot-8.3.0-r1.ebuild | 2 +- dev-python/cli_helpers/Manifest | 1 + dev-python/cli_helpers/cli_helpers-2.1.0.ebuild | 25 +++++++++ dev-python/colorclass/colorclass-2.2.0-r1.ebuild | 2 - dev-python/configobj/configobj-5.0.6.ebuild | 1 + dev-python/m2crypto/m2crypto-0.35.2.ebuild | 2 +- .../sortedcontainers/sortedcontainers-2.2.2.ebuild | 2 +- dev-python/tabulate/Manifest | 1 + dev-python/tabulate/tabulate-0.8.6.ebuild | 5 +- dev-python/tabulate/tabulate-0.8.7.ebuild | 37 +++++++++++++ .../files/terminaltables-3.1.0-stdout.patch | 23 ++++++++ .../terminaltables/terminaltables-3.1.0.ebuild | 17 +++--- .../terminaltables/terminaltables-9999.ebuild | 8 +-- dev-python/tqdm/tqdm-4.47.0.ebuild | 2 +- dev-python/xmlschema/xmlschema-1.2.2.ebuild | 2 +- 21 files changed, 233 insertions(+), 25 deletions(-) create mode 100644 dev-python/boto3/boto3-1.14.31.ebuild create mode 100644 dev-python/botocore/botocore-1.17.31.ebuild create mode 100644 dev-python/cli_helpers/cli_helpers-2.1.0.ebuild create mode 100644 dev-python/tabulate/tabulate-0.8.7.ebuild create mode 100644 dev-python/terminaltables/files/terminaltables-3.1.0-stdout.patch (limited to 'dev-python') diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 86a7f65aab56..3d3ad6db5012 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -3,3 +3,4 @@ DIST boto3-1.14.20.tar.gz 299325 BLAKE2B e1105a2ba55d59dc4d9a73f40e3bc34c05ceda9 DIST boto3-1.14.23.tar.gz 299581 BLAKE2B 57cbb3fbd9a84f334b5874ca96490cb0269bb79f3fd2b50d4c51efcfadaa41b2e11853266ba12544b77999fa85fefb0bdf84d924667c4092b3deb72f41e33a21 SHA512 263b2abf3c220d3fb3d7acf4cd87266c11d3dcd5d7ffcafb0aab128b1e324d6f99c44de8abfb621b153b5fc51b9823b6b79ea5c529f6c59c548c900015bcdb5e DIST boto3-1.14.27.tar.gz 299871 BLAKE2B b0bca67cc43af0eb6d823ddf256e219c1137793a211c9f02fcbcba364887882496c98d1463b899c68e65127b2ddb3a4781f93237365a2fc539ba07b43714479e SHA512 3576d0ebe1167cf6ce9decd1efd9c55c5e06074303da38bee236c8f0bf1fb0ae459e88ae5719590a0e7aa02936277e5c08a35e5bf08249f50716b6147f7872a4 DIST boto3-1.14.28.tar.gz 299959 BLAKE2B 7318fd60ccd46e12f38eb14aeecfb59fd951ed9749990f2b7bfc991b2a5077d2afe93a37b28f833ec232e85cd85a454887672be3b6b72b37e696677c45c9287c SHA512 e83695d00f2d08ad129be24f2a387fcd7181f727bd4c64df1d3d8a14aff280388262032b60f7a01829ffcaeb639eeebc9e1e85a786f3228e1d28ed4d15166ca7 +DIST boto3-1.14.31.tar.gz 300720 BLAKE2B 9dbd002e299c629f28037572c615a00612c80773006c344797d0ad56c81c240b56bfc56e8ffe52e3b404c77a56318532aadfa2d008c254e70f7bfa91e40b7e1a SHA512 e3fe0041bbdc67affcf5d5272c26aa14ef0fa546af2efb99187311bee23531181ab1f1ebc69f2c3ed8250140642f4402334ebbc9acbf422641fa6abed5d5815f diff --git a/dev-python/boto3/boto3-1.14.31.ebuild b/dev-python/boto3/boto3-1.14.31.ebuild new file mode 100644 index 000000000000..ebf0565908dc --- /dev/null +++ b/dev-python/boto3/boto3-1.14.31.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=bdepend +inherit distutils-r1 + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE="https://github.com/boto/boto3" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/boto3" + inherit git-r3 + BOTOCORE_PV=${PV} +else + SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" + + # botocore is x.(y+3).z + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)" +fi + +RDEPEND=" + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +distutils_enable_tests nose + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # prevent an infinite loop + rm tests/functional/docs/test_smoke.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}" +} diff --git a/dev-python/boto3/boto3-9999.ebuild b/dev-python/boto3/boto3-9999.ebuild index f08cf30702bf..ebf0565908dc 100644 --- a/dev-python/boto3/boto3-9999.ebuild +++ b/dev-python/boto3/boto3-9999.ebuild @@ -14,13 +14,17 @@ SLOT="0" if [[ "${PV}" == "9999" ]]; then EGIT_REPO_URI="https://github.com/boto/boto3" inherit git-r3 + BOTOCORE_PV=${PV} else SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" + + # botocore is x.(y+3).z + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)" fi RDEPEND=" - >=dev-python/botocore-${PV}[${PYTHON_USEDEP}] + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}] " diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 73fecbca6f64..71b9e1769bf4 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -3,3 +3,4 @@ DIST botocore-1.17.20.tar.gz 6557688 BLAKE2B a4d17d436a7af1a9825ebc0bcb23d0cb32b DIST botocore-1.17.23.tar.gz 6564852 BLAKE2B cc1da91f4a45964fe684b015de9db253059241f654dac93901cde5dc24f3ab3595ecd201be91bed36236bb885c7ec7aed998025f6c0ea8b050c13d17a6431238 SHA512 93af672e8d110ab4989e9abc20b3bbb1a6c9050c379bb1db8542e9027e6a4ee82083645c59211204d7110e112d393f80f87d15b77337a4d73358f43d39f6e52f DIST botocore-1.17.27.tar.gz 6637309 BLAKE2B 8c3d8d27b13c55c11b4934e0af35bb0a01c67e0c30d33ce54710d3e3c967101c5d9258fc2317f86c9f8271044e977015b185015aafd3af748fe581f3120ea32d SHA512 9dc3341b6de7801da13f71730bcb2bf9c4295618303a1c98973cabb2aef947b5756352f3a9939b8fbe04a92c3a7cde6ed88f55c982f7dc412f7dff898bc75bc2 DIST botocore-1.17.28.tar.gz 6647521 BLAKE2B e9da32dd9202bc1ad621003bb6196873380f0015553cd906465382d21d30b7b83313e6be4e8d3d8abf4f6472180319a98677a3a245ad69bf6bde5d8e08264577 SHA512 5388518dc0bf598a3ea848df38454c49692abaf7ebe23e0ab0b1416139a4363b712260591e644c415ea3ea4cbac105011fef4d565b95fd3045fe6e4d3c7318a8 +DIST botocore-1.17.31.tar.gz 6665851 BLAKE2B dbc89d1216f9fda89c6185baccfdf2878c265d8761e4ad1349a45d334f9a4d5b79ad1ce06a19a7a706b75be1a6d7f2a7bf5bc33d8ffbe7ad8a016472edf0432f SHA512 ab1921fae887846d1c224d624e8d5dd888ab9c0c90a415ac97e5ad2f7563131b199e8870553e7f3dd6f5ff4c7901aa04bfa99160aca4e9da8ef3096cfd922ec9 diff --git a/dev-python/botocore/botocore-1.17.31.ebuild b/dev-python/botocore/botocore-1.17.31.ebuild new file mode 100644 index 000000000000..f19422b2507d --- /dev/null +++ b/dev-python/botocore/botocore-1.17.31.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE="https://github.com/boto/botocore" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/botocore" + inherit git-r3 +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +fi + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/jmespath[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch" + "${FILESDIR}/botocore-1.16.7-unlock-deps.patch" +) + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +distutils_enable_tests nose + +src_prepare() { + # py3.9 + find -name '*.py' -exec \ + sed -i -e 's:cElementTree:ElementTree:' {} + || die + # very unstable + sed -i -e 's:test_stress_test_token_bucket:_&:' \ + tests/functional/retries/test_bucket.py || die + distutils-r1_src_prepare +} + +python_test() { + # note: suites need to be run separately as one of the unit tests + # seems to be leaking mocks and breaking a few functional tests + nosetests -v tests/unit || + die "unit tests failed under ${EPYTHON}" + nosetests -v tests/functional || + die "functional tests failed under ${EPYTHON}" +} diff --git a/dev-python/botocore/botocore-9999.ebuild b/dev-python/botocore/botocore-9999.ebuild index 1c16f3e2295f..f19422b2507d 100644 --- a/dev-python/botocore/botocore-9999.ebuild +++ b/dev-python/botocore/botocore-9999.ebuild @@ -6,7 +6,7 @@ PYTHON_COMPAT=( python3_{5,6,7,8,9} ) inherit distutils-r1 -DESCRIPTION="Low-level, data-driven core of boto 3." +DESCRIPTION="Low-level, data-driven core of boto 3" HOMEPAGE="https://github.com/boto/botocore" LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/cheroot/cheroot-8.3.0-r1.ebuild b/dev-python/cheroot/cheroot-8.3.0-r1.ebuild index 8adc9f9b23cd..af11a08a4e97 100644 --- a/dev-python/cheroot/cheroot-8.3.0-r1.ebuild +++ b/dev-python/cheroot/cheroot-8.3.0-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/C/${PN/c/C}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 arm arm64 ~ia64 ~ppc ~ppc64 ~x86" +KEYWORDS="amd64 arm arm64 ~ia64 ~ppc ~ppc64 x86" RDEPEND=" >=dev-python/six-1.11.0[${PYTHON_USEDEP}] diff --git a/dev-python/cli_helpers/Manifest b/dev-python/cli_helpers/Manifest index 08e26f057890..cdad95559f6e 100644 --- a/dev-python/cli_helpers/Manifest +++ b/dev-python/cli_helpers/Manifest @@ -1 +1,2 @@ DIST cli_helpers-2.0.1.tar.gz 32633 BLAKE2B 4bb66cd86871b18f52c737a06968a56098151273ab0a87386db62543961f3a699f37018f9e722a55635dca3136253c59a50d3ec7cb6ebb68d833abe2a320526c SHA512 e470eff51760c5e80d01a318eeb3d91510bd34ed7c094c4196342a74306ec0fe0751514d2ef2a5f77570d8434d417557cc83a8c34d0febdbc7c2cce7b1faf8a6 +DIST cli_helpers-2.1.0.tar.gz 32967 BLAKE2B c2ee2a92dce4185f656415d6079196953c5e9dccf9de4e29d9de61bf72b041a6225ffe4afa866b0f78abcd5d0809ec739db489aee21e440575b7e2a6e09b916a SHA512 75c6b24ae1ed05cbdfddfc30c5e43aeb7129f5fa319d485e19be098691762ad681c4874449b2f339f833424a970965b5a28a3b66814cb556ea8ad6293740fdbe diff --git a/dev-python/cli_helpers/cli_helpers-2.1.0.ebuild b/dev-python/cli_helpers/cli_helpers-2.1.0.ebuild new file mode 100644 index 000000000000..2116577e6a1f --- /dev/null +++ b/dev-python/cli_helpers/cli_helpers-2.1.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) +inherit distutils-r1 + +DESCRIPTION="Python helpers for common CLI tasks" +HOMEPAGE="https://cli-helpers.rtfd.io/" +SRC_URI="https://github.com/dbcli/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/configobj-5.0.5[${PYTHON_USEDEP}] + >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}] + >=dev-python/tabulate-0.8.0[${PYTHON_USEDEP}] + >=dev-python/terminaltables-3.0.0[${PYTHON_USEDEP}] + dev-python/wcwidth[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/colorclass/colorclass-2.2.0-r1.ebuild b/dev-python/colorclass/colorclass-2.2.0-r1.ebuild index ffccb784489e..44969a5d4656 100644 --- a/dev-python/colorclass/colorclass-2.2.0-r1.ebuild +++ b/dev-python/colorclass/colorclass-2.2.0-r1.ebuild @@ -14,8 +14,6 @@ LICENSE="MIT" SLOT="0" KEYWORDS="amd64 ~arm64 x86" -BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" - PATCHES=( "${FILESDIR}/colorclass-2.2.0-tests.patch" ) diff --git a/dev-python/configobj/configobj-5.0.6.ebuild b/dev-python/configobj/configobj-5.0.6.ebuild index af263bd5e70c..9301b530f82d 100644 --- a/dev-python/configobj/configobj-5.0.6.ebuild +++ b/dev-python/configobj/configobj-5.0.6.ebuild @@ -3,6 +3,7 @@ EAPI=5 +DISTUTILS_USE_SETUPTOOLS=no PYTHON_COMPAT=( python2_7 python3_{5,6,7,8,9} ) inherit distutils-r1 diff --git a/dev-python/m2crypto/m2crypto-0.35.2.ebuild b/dev-python/m2crypto/m2crypto-0.35.2.ebuild index 4fc4a4f07dea..9d62a23c7b42 100644 --- a/dev-python/m2crypto/m2crypto-0.35.2.ebuild +++ b/dev-python/m2crypto/m2crypto-0.35.2.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" IUSE="libressl" RDEPEND=" diff --git a/dev-python/sortedcontainers/sortedcontainers-2.2.2.ebuild b/dev-python/sortedcontainers/sortedcontainers-2.2.2.ebuild index 3c8e38d25f31..688c3db1cf23 100644 --- a/dev-python/sortedcontainers/sortedcontainers-2.2.2.ebuild +++ b/dev-python/sortedcontainers/sortedcontainers-2.2.2.ebuild @@ -18,7 +18,7 @@ S=${WORKDIR}/${MY_P} LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux" distutils_enable_tests pytest diff --git a/dev-python/tabulate/Manifest b/dev-python/tabulate/Manifest index aff256b19421..76b3c67e164d 100644 --- a/dev-python/tabulate/Manifest +++ b/dev-python/tabulate/Manifest @@ -1 +1,2 @@ DIST tabulate-0.8.6.tar.gz 39420 BLAKE2B 28cd8c175b258b56a406a78d7891919a49c867d848843365605ccdcb8ba0b307f1448967a124d57b0f6264169104c9cccc84982fea666a035a265a3c9f10cc43 SHA512 ec4d7a7f20db306be1a460276e0b1b1e63fd1ca14b208a45a297508bddbc07b034e03fcb5ff67fe5e2b9419f308900675994a6dccef755c975ad0b1e9124072f +DIST tabulate-0.8.7.tar.gz 40800 BLAKE2B 4e15ef79d152ed6a01fcc88496aed81462e2ac5c5aea1a9977eca955d3c6d743019f8c56a48ef268217cdd7c2780505c4837020ff8cb1bda442304d82e560a5c SHA512 77eb619d3115bbd574ff72b82d55e09f1e2bfe29da0b937b72930b3e65423135722bdc54bed818adf2e25cb49a58f8f85d0ca3b3ed0fcfcfda34a25e54781d0c diff --git a/dev-python/tabulate/tabulate-0.8.6.ebuild b/dev-python/tabulate/tabulate-0.8.6.ebuild index 50bace99f5c7..1b68f78634f9 100644 --- a/dev-python/tabulate/tabulate-0.8.6.ebuild +++ b/dev-python/tabulate/tabulate-0.8.6.ebuild @@ -3,6 +3,7 @@ EAPI=7 +DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python3_{5,6,7,8,9} pypy3 ) inherit distutils-r1 @@ -18,9 +19,9 @@ KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux" IUSE="test" RESTRICT="!test? ( test )" -RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] +RDEPEND=" dev-python/wcwidth[${PYTHON_USEDEP}]" -BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] +BDEPEND=" test? ( ${RDEPEND} $(python_gen_impl_dep 'sqlite') diff --git a/dev-python/tabulate/tabulate-0.8.7.ebuild b/dev-python/tabulate/tabulate-0.8.7.ebuild new file mode 100644 index 000000000000..d403480f3959 --- /dev/null +++ b/dev-python/tabulate/tabulate-0.8.7.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{5,6,7,8,9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Pretty-print tabular data" +HOMEPAGE="https://pypi.org/project/tabulate/ https://github.com/astanin/python-tabulate" +SRC_URI="https://github.com/astanin/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/python-${P}" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/wcwidth[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + ${RDEPEND} + $(python_gen_impl_dep 'sqlite') + dev-python/colorclass[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' 'python3*') + ) +" + +PATCHES=( + "${FILESDIR}/tabulate-0.8.6-avoid-pandas-dep.patch" +) + +distutils_enable_tests nose diff --git a/dev-python/terminaltables/files/terminaltables-3.1.0-stdout.patch b/dev-python/terminaltables/files/terminaltables-3.1.0-stdout.patch new file mode 100644 index 000000000000..e463ff66f93b --- /dev/null +++ b/dev-python/terminaltables/files/terminaltables-3.1.0-stdout.patch @@ -0,0 +1,23 @@ +From 9cb9d0ef11fac861e46776fb18cef309df28c234 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Thu, 30 Jul 2020 07:59:05 +0200 +Subject: [PATCH] Fix writing binary data to sys.stdout + +--- + terminaltables/terminal_io.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/terminaltables/terminal_io.py b/terminaltables/terminal_io.py +index 8b8c10d..310263c 100644 +--- a/terminaltables/terminal_io.py ++++ b/terminaltables/terminal_io.py +@@ -94,5 +94,5 @@ def set_terminal_title(title, kernel32=None): + return kernel32.SetConsoleTitleW(title) != 0 + + # Linux/OSX. +- sys.stdout.write(b'\033]0;' + title_bytes + b'\007') ++ sys.stdout.buffer.write(b'\033]0;' + title_bytes + b'\007') + return True +-- +2.28.0 + diff --git a/dev-python/terminaltables/terminaltables-3.1.0.ebuild b/dev-python/terminaltables/terminaltables-3.1.0.ebuild index de48629e53e7..8f0faba78c0c 100644 --- a/dev-python/terminaltables/terminaltables-3.1.0.ebuild +++ b/dev-python/terminaltables/terminaltables-3.1.0.ebuild @@ -8,22 +8,23 @@ inherit distutils-r1 DESCRIPTION="Generate simple tables in terminals from a nested list of strings" HOMEPAGE="https://robpol86.github.io/terminaltables" -SRC_URI="https://github.com/Robpol86/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI=" + https://github.com/Robpol86/terminaltables/archive/v${PV}.tar.gz + -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] +BDEPEND=" test? ( dev-python/colorama[${PYTHON_USEDEP}] dev-python/colorclass[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] dev-python/termcolor[${PYTHON_USEDEP}] )" -python_test() { - pytest -vv || die "Tests fail with ${EPYTHON}" -} +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/terminaltables-3.1.0-stdout.patch +) diff --git a/dev-python/terminaltables/terminaltables-9999.ebuild b/dev-python/terminaltables/terminaltables-9999.ebuild index 9bcaba7ab6fa..96f58bb15fda 100644 --- a/dev-python/terminaltables/terminaltables-9999.ebuild +++ b/dev-python/terminaltables/terminaltables-9999.ebuild @@ -14,10 +14,8 @@ SRC_URI="" LICENSE="MIT" SLOT="0" KEYWORDS="" -IUSE="test" -RESTRICT="!test? ( test )" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] +BDEPEND=" test? ( dev-python/colorama[${PYTHON_USEDEP}] dev-python/colorclass[${PYTHON_USEDEP}] @@ -25,6 +23,4 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] dev-python/termcolor[${PYTHON_USEDEP}] )" -python_test() { - pytest -vv || die "Tests fail with ${EPYTHON}" -} +distutils_enable_tests pytest diff --git a/dev-python/tqdm/tqdm-4.47.0.ebuild b/dev-python/tqdm/tqdm-4.47.0.ebuild index 9b6164953dcf..00eb0b53a1be 100644 --- a/dev-python/tqdm/tqdm-4.47.0.ebuild +++ b/dev-python/tqdm/tqdm-4.47.0.ebuild @@ -13,7 +13,7 @@ if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://github.com/tqdm/tqdm" else SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 sparc x86" fi DESCRIPTION="Add a progress meter to your loops in a second" diff --git a/dev-python/xmlschema/xmlschema-1.2.2.ebuild b/dev-python/xmlschema/xmlschema-1.2.2.ebuild index fd3f42f66f02..18322202019b 100644 --- a/dev-python/xmlschema/xmlschema-1.2.2.ebuild +++ b/dev-python/xmlschema/xmlschema-1.2.2.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86" IUSE="test" RESTRICT="!test? ( test )" -- cgit v1.3.1