1 |
commit: c7a0646691cc170758c473760ae4d53f1f443f90 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Tue Mar 26 01:51:09 2019 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 26 02:32:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7a06466 |
7 |
|
8 |
dev-python/PyUtilib: New package |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/PyUtilib/Manifest | 1 + |
15 |
dev-python/PyUtilib/PyUtilib-5.6.5.ebuild | 51 ++++++++++++++++++++++ |
16 |
.../PyUtilib/files/pyutilib-5.6.5-tests.patch | 35 +++++++++++++++ |
17 |
dev-python/PyUtilib/metadata.xml | 13 ++++++ |
18 |
dev-util/gcovr/Manifest | 1 + |
19 |
5 files changed, 101 insertions(+) |
20 |
|
21 |
diff --git a/dev-python/PyUtilib/Manifest b/dev-python/PyUtilib/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..23ea8a4b814 |
24 |
--- /dev/null |
25 |
+++ b/dev-python/PyUtilib/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST PyUtilib-5.6.5.tar.gz 1504220 BLAKE2B 2d00b8b9a0a787413dce5dd4380382efa4c8788e9a8f5188eb0decf9e55bc07ce5ceb8e6f32ed2fa7cf58c331fe936ea07d9b599ff8e7e9593327d3c0f05d4e9 SHA512 5e7f86c29ff81cfffea5862d09ec8d026739f09b172606acd4d08dc4a9bde28c8b63b8e51634d17c3161b46e7e8c8881050044baa22bc07b0926efe46ed7331d |
28 |
|
29 |
diff --git a/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild b/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..0f3cc65d108 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/PyUtilib/PyUtilib-5.6.5.ebuild |
34 |
@@ -0,0 +1,51 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python3_5 python3_6 ) |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="A collection of Python utilities" |
44 |
+HOMEPAGE="https://github.com/PyUtilib/pyutilib" |
45 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="test" |
51 |
+ |
52 |
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
53 |
+BDEPEND="${RDEPEND} |
54 |
+ test? ( |
55 |
+ dev-python/nose[${PYTHON_USEDEP}] |
56 |
+ dev-python/six[${PYTHON_USEDEP}] |
57 |
+ )" |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}/pyutilib-5.6.5-tests.patch" |
61 |
+) |
62 |
+ |
63 |
+python_prepare() { |
64 |
+ # shells out to run nosetests |
65 |
+ rm pyutilib/dev/tests/test_runtests.py || die |
66 |
+} |
67 |
+ |
68 |
+python_install_all() { |
69 |
+ distutils-r1_python_install_all |
70 |
+ find "${ED}" -name '*.pth' -delete || die |
71 |
+} |
72 |
+ |
73 |
+python_install() { |
74 |
+ distutils-r1_python_install |
75 |
+ |
76 |
+ if ! python_is_python3; then |
77 |
+ printf "# Placeholder for python2\n" \ |
78 |
+ > "${D}$(python_get_sitedir)/${PN,,}/__init__.py" |
79 |
+ fi |
80 |
+} |
81 |
+ |
82 |
+python_test() { |
83 |
+ COLUMNS="80" "${EPYTHON}" -W ignore::DeprecationWarning \ |
84 |
+ -m unittest discover -v || die |
85 |
+} |
86 |
|
87 |
diff --git a/dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch b/dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch |
88 |
new file mode 100644 |
89 |
index 00000000000..780c586759a |
90 |
--- /dev/null |
91 |
+++ b/dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch |
92 |
@@ -0,0 +1,35 @@ |
93 |
+diff --git a/pyutilib/dev/entry_point.py b/pyutilib/dev/entry_point.py |
94 |
+index e571cc7..e0200e9 100644 |
95 |
+--- a/pyutilib/dev/entry_point.py |
96 |
++++ b/pyutilib/dev/entry_point.py |
97 |
+@@ -23,7 +23,8 @@ def run_entry_point(package, script, args=[], **kwds): |
98 |
+ script = str(script) |
99 |
+ assert type(args) is list |
100 |
+ cmdLine \ |
101 |
+- = "import pkg_resources,sys; "\ |
102 |
++ = "import pkg_resources,sys,os; "\ |
103 |
++ "pkg_resources.fixup_namespace_packages(os.path.join(os.getcwd(),'build')); "\ |
104 |
+ "sys.argv=%r; "\ |
105 |
+ "sys.exit(pkg_resources.load_entry_point(%r,'console_scripts',%r)())" \ |
106 |
+ % ( [script]+args, package, script ) |
107 |
+diff --git a/pyutilib/enum/tests/test_enum.py b/pyutilib/enum/tests/test_enum.py |
108 |
+index 52451ef..66313f4 100755 |
109 |
+--- a/pyutilib/enum/tests/test_enum.py |
110 |
++++ b/pyutilib/enum/tests/test_enum.py |
111 |
+@@ -11,7 +11,7 @@ |
112 |
+ """ Unit test for ‘enum’ module. |
113 |
+ """ |
114 |
+ |
115 |
+-import unittest |
116 |
++import unittest, sys |
117 |
+ |
118 |
+ import pyutilib.enum.enum as enum |
119 |
+ |
120 |
+@@ -355,6 +355,7 @@ class Test_EnumValue(unittest.TestCase): |
121 |
+ for other_value in self.other_values: |
122 |
+ self.assertNotEqual(test_value, other_value) |
123 |
+ |
124 |
++ @unittest.skipIf(sys.hexversion > 0x03040000, "can't compare int and tuple on python3") |
125 |
+ def test_sequence_other_values(self): |
126 |
+ # An EnumValue should compare sequentially to other values. |
127 |
+ test_value = enum.EnumValue(self.SimpleEnum, 0, 'test') |
128 |
|
129 |
diff --git a/dev-python/PyUtilib/metadata.xml b/dev-python/PyUtilib/metadata.xml |
130 |
new file mode 100644 |
131 |
index 00000000000..26c1b264f1f |
132 |
--- /dev/null |
133 |
+++ b/dev-python/PyUtilib/metadata.xml |
134 |
@@ -0,0 +1,13 @@ |
135 |
+<?xml version="1.0" encoding="UTF-8"?> |
136 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
137 |
+<pkgmetadata> |
138 |
+ <maintainer type="project"> |
139 |
+ <email>python@g.o</email> |
140 |
+ </maintainer> |
141 |
+ <maintainer type="person"> |
142 |
+ <email>chutzpah@g.o</email> |
143 |
+ <name>Patrick McLean</name> |
144 |
+ </maintainer> |
145 |
+ <longdescription lang="en"> |
146 |
+ </longdescription> |
147 |
+</pkgmetadata> |
148 |
|
149 |
diff --git a/dev-util/gcovr/Manifest b/dev-util/gcovr/Manifest |
150 |
index ad48d4478c8..3b1af4f2f1c 100644 |
151 |
--- a/dev-util/gcovr/Manifest |
152 |
+++ b/dev-util/gcovr/Manifest |
153 |
@@ -1 +1,2 @@ |
154 |
DIST gcovr-3.3.tar.gz 323226 BLAKE2B fe3d6ab4d24032f57ee17c3fc44b10e0b177aad01b072306a99abc7dbfee07b5f14ef34412d36938302bc279dffb2a25502981ba952339c1b4e896762defabb0 SHA512 e5046bc4e38c99691c3bcc58abdfbbe965c46d02c8c50dbf135bd5108bd9bba1fa450ab0b5e23157a178f7c1303ec9c285470e9be1a14274528e5d7051013a08 |
155 |
+DIST gcovr-4.1.tar.gz 193692 BLAKE2B 5536ecbf0636a3a75083d53e2dc239a48e6df740a037954a2aa2e837e764c0530c73fe32c66078efa4c3a6652f907ec15505c8efbac8a1d861031d34b05f4c74 SHA512 aab2a98421557ffe846f644725e5c6cee65afb0c22ca86ce8713516810bc91bd32caf4c5c18e2628f8f4444de6665478a6001cfce3841a8c394fc0b4309d83fb |