1 |
commit: 3557781213c26d5888e667051b4975d1b4bb2165 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 3 08:37:10 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 3 10:17:40 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35577812 |
7 |
|
8 |
dev-python/lazy-object-proxy: New package, ebuild written by me |
9 |
|
10 |
Package-Manager: portage-2.2.25 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/lazy-object-proxy/Manifest | 1 + |
14 |
.../lazy-object-proxy-1.2.1.ebuild | 41 ++++++++++++++++++++++ |
15 |
dev-python/lazy-object-proxy/metadata.xml | 12 +++++++ |
16 |
3 files changed, 54 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/lazy-object-proxy/Manifest b/dev-python/lazy-object-proxy/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..46d481e |
21 |
--- /dev/null |
22 |
+++ b/dev-python/lazy-object-proxy/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST lazy-object-proxy-1.2.1.tar.gz 28860 SHA256 22ed751a2c63c6cf718674fd7461b1dfc45215bab4751ca32b6c9b8cb2734cb3 SHA512 60813fea51e14ccfa22974c547c7179593da25e4ba65380c39493d2b91558bfcdffa298fe0a043170414d897bd72fd22f0bc3bc3fbdc8202873fab6c2a8e45a8 WHIRLPOOL 3e6bad5e09407d2ff750ce2d1078aa65156d61224c8f04b90a535235cc4c12d2683844dc43eef1a18805b395eb8d47508cb11dfde4f9cec08907657cf73613c1 |
25 |
|
26 |
diff --git a/dev-python/lazy-object-proxy/lazy-object-proxy-1.2.1.ebuild b/dev-python/lazy-object-proxy/lazy-object-proxy-1.2.1.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..d8d439d |
29 |
--- /dev/null |
30 |
+++ b/dev-python/lazy-object-proxy/lazy-object-proxy-1.2.1.ebuild |
31 |
@@ -0,0 +1,41 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="A fast and thorough lazy object proxy" |
43 |
+HOMEPAGE=" |
44 |
+ https://github.com/ionelmc/python-lazy-object-proxy |
45 |
+ http://pypi.python.org/pypi/lazy-object-proxy |
46 |
+ https://python-lazy-object-proxy.readthedocs.org/" |
47 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="BSD" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
52 |
+IUSE="test" |
53 |
+ |
54 |
+RDEPEND="" |
55 |
+DEPEND="${REDEPEND} |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
57 |
+ test? ( |
58 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
59 |
+ )" |
60 |
+ |
61 |
+python_prepare_all() { |
62 |
+ # No need to benchmark |
63 |
+ sed \ |
64 |
+ -e '/benchmark/s:test_:_&:g' \ |
65 |
+ -e '/pytest.mark.benchmark/d' \ |
66 |
+ -i tests/test_lazy_object_proxy.py || die |
67 |
+ distutils-r1_python_prepare_all |
68 |
+} |
69 |
+ |
70 |
+python_test() { |
71 |
+ py.test -v -v --ignore=src || die "Fails for ${EPYTHON}" |
72 |
+} |
73 |
|
74 |
diff --git a/dev-python/lazy-object-proxy/metadata.xml b/dev-python/lazy-object-proxy/metadata.xml |
75 |
new file mode 100644 |
76 |
index 0000000..71103e2 |
77 |
--- /dev/null |
78 |
+++ b/dev-python/lazy-object-proxy/metadata.xml |
79 |
@@ -0,0 +1,12 @@ |
80 |
+<?xml version="1.0" encoding="UTF-8"?> |
81 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
82 |
+<pkgmetadata> |
83 |
+ <herd>python</herd> |
84 |
+ <upstream> |
85 |
+ <remote-id type="pypi">lazy-object-proxy</remote-id> |
86 |
+ <maintainer status="unknown"> |
87 |
+ <email>contact@×××××××.ro</email> |
88 |
+ <name>Ionel Cristian Mărieș</name> |
89 |
+ </maintainer> |
90 |
+ </upstream> |
91 |
+</pkgmetadata> |