summaryrefslogtreecommitdiff
path: root/dev-python/PyUtilib
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/PyUtilib
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/PyUtilib')
-rw-r--r--dev-python/PyUtilib/Manifest4
-rw-r--r--dev-python/PyUtilib/PyUtilib-5.6.5.ebuild1
-rw-r--r--dev-python/PyUtilib/PyUtilib-5.7.2.ebuild61
3 files changed, 65 insertions, 1 deletions
diff --git a/dev-python/PyUtilib/Manifest b/dev-python/PyUtilib/Manifest
index ed6eb250bf92..93574ceaaf27 100644
--- a/dev-python/PyUtilib/Manifest
+++ b/dev-python/PyUtilib/Manifest
@@ -1,4 +1,6 @@
AUX pyutilib-5.6.5-tests.patch 1413 BLAKE2B 8cfb6abadbd0c83adccd69cd18dd85aa2c58ad6d8610de0912397e626704ff6921ed54869c0ea2e7dd1567070e5061fa424d7749236cd2e8321d17a6b60ad4a8 SHA512 00d838e4eab285e7eaa1fe802abd1fa22f3a662fd10220cc3811fab6d9025dcb327811e13ee13f2102ff1ff2b8b132a10c32cabfb94080940dec691b6a890298
DIST PyUtilib-5.6.5.tar.gz 1504220 BLAKE2B 2d00b8b9a0a787413dce5dd4380382efa4c8788e9a8f5188eb0decf9e55bc07ce5ceb8e6f32ed2fa7cf58c331fe936ea07d9b599ff8e7e9593327d3c0f05d4e9 SHA512 5e7f86c29ff81cfffea5862d09ec8d026739f09b172606acd4d08dc4a9bde28c8b63b8e51634d17c3161b46e7e8c8881050044baa22bc07b0926efe46ed7331d
-EBUILD PyUtilib-5.6.5.ebuild 1082 BLAKE2B 59e6fa198c51f701b18dbf351d531056d330320e3f7c5ef2023185a1e93493a60c18905c0d7ad9775ad5389c39835ea731238f540c14cfd3a469565af4af5839 SHA512 fa645cb3436c97a1aa54bf94549a24082417acfc55c8b90017bf5d4d27bf5a02903e3e4de4a426c3ed13dce6708307d4089b317bb42513c7d7563ac81b9810ad
+DIST PyUtilib-5.7.2.tar.gz 1566034 BLAKE2B 913c6576b39f14c19e2e633c36ade33fe812c77a37374c7c14d2fb4384ca38f68efd55209d70e96d9a78fea2fcf1cf83423680d0787da2d03cab88e59a208b96 SHA512 d9d7d890cdb524bb055885354784f2af01967164ce88cf3b144ccffb0a855ef34243fd518c58193517ecfc50f3c2e3ca333f026951c1ab0b38ce181ecf9e7750
+EBUILD PyUtilib-5.6.5.ebuild 1109 BLAKE2B f2f7b8d29f3aea195399aae89e82a7ad06c955e134c7ed9b1ff9cc3068a8c53ffa8394f155627ec6a8225a42c5929e12d7d613e2b1c803b85752e26a9d3fb8a7 SHA512 8a1899a90968a3c5de553aa716bf292b5915d309b28b355e8b99754e0955b0c05cb3e8a773dcd4ced6a549006ab87a4c8250d3d13ec8d6ff868072cbe2a45c83
+EBUILD PyUtilib-5.7.2.ebuild 1338 BLAKE2B cb4ef87edc0680ca27ec6d4e123943052e5abf29884ee26951b4fbd65ae5f2d2d71b7197cfbf368f4131b03e138455db743ed26b84e9b286119ff59558cea562 SHA512 33dfb523b25011d9a95e0af9ab385f232280749f87ce1fec07c303ac064f8d61c936489ebf739bc8dde25f091af1ade28236bcb8458f17045ed8a453898ba85c
MISC metadata.xml 338 BLAKE2B e8be381e5e42a081be3637b77a9b5356dd7d74d0352976badfca62bdf7b65c04554552703b3e12e169ec1c4b57d07cedcf75387a0fd65a8177213f0de8bffa9c SHA512 b3e03151085bcaa51e2108d7e69042523148aaba924415421323d53005c1d047103827ed99bf064cda4f02cc313b3ff4e5fc681bccb5f1f23a82b40a744ed9bc
diff --git a/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild b/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild
index 0f3cc65d1085..22a9c5f3ade5 100644
--- a/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild
+++ b/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild
@@ -14,6 +14,7 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
+RESTRICT="!test? ( test )"
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
BDEPEND="${RDEPEND}
diff --git a/dev-python/PyUtilib/PyUtilib-5.7.2.ebuild b/dev-python/PyUtilib/PyUtilib-5.7.2.ebuild
new file mode 100644
index 000000000000..2fc844c76ed3
--- /dev/null
+++ b/dev-python/PyUtilib/PyUtilib-5.7.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} )
+DISTUTILS_IN_SOURCE_BUILD=1
+
+inherit distutils-r1
+
+DESCRIPTION="A collection of Python utilities"
+HOMEPAGE="https://github.com/PyUtilib/pyutilib"
+SRC_URI="https://github.com/${PN}/${PN,,}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN,,}-${PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+BDEPEND="${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+ "${FILESDIR}/pyutilib-5.6.5-tests.patch"
+)
+
+python_prepare_all() {
+ # remove some tests that are completely broken
+ rm pyutilib/component/app/tests/test_simple.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ local -x PYTHONPATH="${PWD}:${TEST_DIR}/lib" \
+ COLUMNS=80
+
+ nosetests -v --with-xunit --xunit-file=TEST-pyutilib.xml pyutilib || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ find "${ED}" -name '*.pth' -delete || die
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ if ! python_is_python3; then
+ printf "# Placeholder for python2\n" \
+ > "${D}$(python_get_sitedir)/${PN,,}/__init__.py"
+
+ python_optimize
+ fi
+}