commit:     c7a0646691cc170758c473760ae4d53f1f443f90
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Tue Mar 26 01:51:09 2019 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Tue Mar 26 02:32:36 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7a06466

dev-python/PyUtilib: New package

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-python/PyUtilib/Manifest                       |  1 +
 dev-python/PyUtilib/PyUtilib-5.6.5.ebuild          | 51 ++++++++++++++++++++++
 .../PyUtilib/files/pyutilib-5.6.5-tests.patch      | 35 +++++++++++++++
 dev-python/PyUtilib/metadata.xml                   | 13 ++++++
 dev-util/gcovr/Manifest                            |  1 +
 5 files changed, 101 insertions(+)

diff --git a/dev-python/PyUtilib/Manifest b/dev-python/PyUtilib/Manifest
new file mode 100644
index 00000000000..23ea8a4b814
--- /dev/null
+++ b/dev-python/PyUtilib/Manifest
@@ -0,0 +1 @@
+DIST PyUtilib-5.6.5.tar.gz 1504220 BLAKE2B 
2d00b8b9a0a787413dce5dd4380382efa4c8788e9a8f5188eb0decf9e55bc07ce5ceb8e6f32ed2fa7cf58c331fe936ea07d9b599ff8e7e9593327d3c0f05d4e9
 SHA512 
5e7f86c29ff81cfffea5862d09ec8d026739f09b172606acd4d08dc4a9bde28c8b63b8e51634d17c3161b46e7e8c8881050044baa22bc07b0926efe46ed7331d

diff --git a/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild 
b/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild
new file mode 100644
index 00000000000..0f3cc65d108
--- /dev/null
+++ b/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_5 python3_6 )
+inherit distutils-r1
+
+DESCRIPTION="A collection of Python utilities"
+HOMEPAGE="https://github.com/PyUtilib/pyutilib";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+BDEPEND="${RDEPEND}
+       test? (
+               dev-python/nose[${PYTHON_USEDEP}]
+               dev-python/six[${PYTHON_USEDEP}]
+       )"
+
+PATCHES=(
+       "${FILESDIR}/pyutilib-5.6.5-tests.patch"
+)
+
+python_prepare() {
+       # shells out to run nosetests
+       rm pyutilib/dev/tests/test_runtests.py || die
+}
+
+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"
+       fi
+}
+
+python_test() {
+       COLUMNS="80" "${EPYTHON}" -W ignore::DeprecationWarning \
+               -m unittest discover -v || die
+}

diff --git a/dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch 
b/dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch
new file mode 100644
index 00000000000..780c586759a
--- /dev/null
+++ b/dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch
@@ -0,0 +1,35 @@
+diff --git a/pyutilib/dev/entry_point.py b/pyutilib/dev/entry_point.py
+index e571cc7..e0200e9 100644
+--- a/pyutilib/dev/entry_point.py
++++ b/pyutilib/dev/entry_point.py
+@@ -23,7 +23,8 @@ def run_entry_point(package, script, args=[], **kwds):
+     script = str(script)
+     assert type(args) is list
+     cmdLine \
+-        = "import pkg_resources,sys; "\
++        = "import pkg_resources,sys,os; "\
++        
"pkg_resources.fixup_namespace_packages(os.path.join(os.getcwd(),'build')); "\
+         "sys.argv=%r; "\
+         "sys.exit(pkg_resources.load_entry_point(%r,'console_scripts',%r)())" 
\
+         % ( [script]+args, package, script ) 
+diff --git a/pyutilib/enum/tests/test_enum.py 
b/pyutilib/enum/tests/test_enum.py
+index 52451ef..66313f4 100755
+--- a/pyutilib/enum/tests/test_enum.py
++++ b/pyutilib/enum/tests/test_enum.py
+@@ -11,7 +11,7 @@
+ """ Unit test for ‘enum’ module.
+     """
+ 
+-import unittest
++import unittest, sys
+ 
+ import pyutilib.enum.enum as enum
+ 
+@@ -355,6 +355,7 @@ class Test_EnumValue(unittest.TestCase):
+         for other_value in self.other_values:
+             self.assertNotEqual(test_value, other_value)
+ 
++    @unittest.skipIf(sys.hexversion > 0x03040000, "can't compare int and 
tuple on python3")
+     def test_sequence_other_values(self):
+         # An EnumValue should compare sequentially to other values.
+         test_value = enum.EnumValue(self.SimpleEnum, 0, 'test')

diff --git a/dev-python/PyUtilib/metadata.xml b/dev-python/PyUtilib/metadata.xml
new file mode 100644
index 00000000000..26c1b264f1f
--- /dev/null
+++ b/dev-python/PyUtilib/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="project">
+    <email>[email protected]</email>
+  </maintainer>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <name>Patrick McLean</name>
+  </maintainer>
+  <longdescription lang="en">
+  </longdescription>
+</pkgmetadata>

diff --git a/dev-util/gcovr/Manifest b/dev-util/gcovr/Manifest
index ad48d4478c8..3b1af4f2f1c 100644
--- a/dev-util/gcovr/Manifest
+++ b/dev-util/gcovr/Manifest
@@ -1 +1,2 @@
 DIST gcovr-3.3.tar.gz 323226 BLAKE2B 
fe3d6ab4d24032f57ee17c3fc44b10e0b177aad01b072306a99abc7dbfee07b5f14ef34412d36938302bc279dffb2a25502981ba952339c1b4e896762defabb0
 SHA512 
e5046bc4e38c99691c3bcc58abdfbbe965c46d02c8c50dbf135bd5108bd9bba1fa450ab0b5e23157a178f7c1303ec9c285470e9be1a14274528e5d7051013a08
+DIST gcovr-4.1.tar.gz 193692 BLAKE2B 
5536ecbf0636a3a75083d53e2dc239a48e6df740a037954a2aa2e837e764c0530c73fe32c66078efa4c3a6652f907ec15505c8efbac8a1d861031d34b05f4c74
 SHA512 
aab2a98421557ffe846f644725e5c6cee65afb0c22ca86ce8713516810bc91bd32caf4c5c18e2628f8f4444de6665478a6001cfce3841a8c394fc0b4309d83fb

Reply via email to