1 |
commit: 54eb6222f3d13ea77177f2847e65d1316dce4f43 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 29 09:24:55 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 7 18:43:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54eb6222 |
7 |
|
8 |
dev-python/zope-exceptions: New package, dep of zope.testing |
9 |
|
10 |
dev-python/zope-exceptions/Manifest | 1 + |
11 |
dev-python/zope-exceptions/metadata.xml | 12 +++++++ |
12 |
.../zope-exceptions/zope-exceptions-4.1.0.ebuild | 39 ++++++++++++++++++++++ |
13 |
3 files changed, 52 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/zope-exceptions/Manifest b/dev-python/zope-exceptions/Manifest |
16 |
new file mode 100644 |
17 |
index 00000000000..296c3478b61 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/zope-exceptions/Manifest |
20 |
@@ -0,0 +1 @@ |
21 |
+DIST zope.exceptions-4.1.0.tar.gz 26605 SHA256 f1c086abddc9f2050df5824ff7ab8ece3285c8e28453a29ee761effbc5e592ad SHA512 7491a0558a999d6907d2d1adb33086ef047dd4fc5d39709da628a94ee11f5afaec4b2cb456c19b16595cfaf46cc0d25fb847196d331c9d9c80d2ba3a582b415f WHIRLPOOL 763293545163ec66a52ee49db08183d7bc73832e862b097e0fb9d07f1cb8d8a6a280bfa053a4fd1278ef61db146e689df5e9305d44dae327ceadc00b9d776303 |
22 |
|
23 |
diff --git a/dev-python/zope-exceptions/metadata.xml b/dev-python/zope-exceptions/metadata.xml |
24 |
new file mode 100644 |
25 |
index 00000000000..828a7ab2200 |
26 |
--- /dev/null |
27 |
+++ b/dev-python/zope-exceptions/metadata.xml |
28 |
@@ -0,0 +1,12 @@ |
29 |
+<?xml version="1.0" encoding="UTF-8"?> |
30 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
31 |
+<pkgmetadata> |
32 |
+ <maintainer type="project"> |
33 |
+ <email>python@g.o</email> |
34 |
+ <name>Python</name> |
35 |
+ </maintainer> |
36 |
+ <upstream> |
37 |
+ <remote-id type="pypi">zope.exceptions</remote-id> |
38 |
+ <remote-id type="github">zopefoundation/zope.exceptions</remote-id> |
39 |
+ </upstream> |
40 |
+</pkgmetadata> |
41 |
|
42 |
diff --git a/dev-python/zope-exceptions/zope-exceptions-4.1.0.ebuild b/dev-python/zope-exceptions/zope-exceptions-4.1.0.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..976197f62de |
45 |
--- /dev/null |
46 |
+++ b/dev-python/zope-exceptions/zope-exceptions-4.1.0.ebuild |
47 |
@@ -0,0 +1,39 @@ |
48 |
+# Copyright 1999-2017 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=6 |
52 |
+ |
53 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
54 |
+inherit distutils-r1 |
55 |
+ |
56 |
+MY_PN=${PN/-/.} |
57 |
+MY_P=${MY_PN}-${PV} |
58 |
+ |
59 |
+DESCRIPTION="General purpose exceptions for Zope packages" |
60 |
+HOMEPAGE="https://pypi.python.org/pypi/zope.exceptions https://github.com/zopefoundation/zope.exceptions" |
61 |
+SRC_URI="mirror://pypi/${MY_PN::1}/${MY_PN}/${MY_P}.tar.gz" |
62 |
+ |
63 |
+LICENSE="ZPL" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+IUSE="test" |
67 |
+ |
68 |
+# TODO: extras? |
69 |
+RDEPEND="dev-python/namespace-zope[${PYTHON_USEDEP}] |
70 |
+ dev-python/zope-interface[${PYTHON_USEDEP}]" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
73 |
+ test? ( dev-python/zope-testrunner[${PYTHON_USEDEP}] )" |
74 |
+ |
75 |
+S=${WORKDIR}/${MY_P} |
76 |
+ |
77 |
+python_test() { |
78 |
+ esetup.py test |
79 |
+} |
80 |
+ |
81 |
+python_install_all() { |
82 |
+ distutils-r1_python_install_all |
83 |
+ |
84 |
+ # remove .pth files since dev-python/namespace-zope handles the ns |
85 |
+ find "${D}" -name '*.pth' -delete || die |
86 |
+} |