1 |
commit: aedf1a2eec2399ccab179a70adcf640935f9ba0b |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Sun May 31 07:50:17 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 07:50:17 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=aedf1a2e |
7 |
|
8 |
dev-python/pickleshare: Initial ebuild (required for >dev-python/ipython-3.1.0) |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
|
12 |
dev-python/pickleshare/ChangeLog | 10 +++++++ |
13 |
dev-python/pickleshare/metadata.xml | 14 +++++++++ |
14 |
dev-python/pickleshare/pickleshare-0.5.ebuild | 1 + |
15 |
dev-python/pickleshare/pickleshare-9999.ebuild | 39 ++++++++++++++++++++++++++ |
16 |
4 files changed, 64 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pickleshare/ChangeLog b/dev-python/pickleshare/ChangeLog |
19 |
new file mode 100644 |
20 |
index 0000000..1f9401c |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pickleshare/ChangeLog |
23 |
@@ -0,0 +1,10 @@ |
24 |
+# ChangeLog for dev-python/pickleshare |
25 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# $Header: $ |
27 |
+ |
28 |
+*pickleshare-0.5 (31 May 2015) |
29 |
+*pickleshare-9999 (31 May 2015) |
30 |
+ |
31 |
+ 31 May 2015; Marius Brehler <marbre@××××××××××××××.de> +metadata.xml, |
32 |
+ +pickleshare-0.5.ebuild, +pickleshare-9999.ebuild: |
33 |
+ Initial ebuild (required for >dev-python/ipython-3.1.0) |
34 |
|
35 |
diff --git a/dev-python/pickleshare/metadata.xml b/dev-python/pickleshare/metadata.xml |
36 |
new file mode 100644 |
37 |
index 0000000..6cdedef |
38 |
--- /dev/null |
39 |
+++ b/dev-python/pickleshare/metadata.xml |
40 |
@@ -0,0 +1,14 @@ |
41 |
+<?xml version="1.0" encoding="UTF-8"?> |
42 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
43 |
+<pkgmetadata> |
44 |
+ <herd>sci</herd> |
45 |
+ <longdescription> |
46 |
+ Like shelve, a PickleShareDB object acts like a normal dictionary. |
47 |
+ Unlike shelve, many processes can access the database |
48 |
+ simultaneously. Changing a value in database is immediately visible |
49 |
+ to other processes accessing the same database. |
50 |
+ Concurrency is possible because the values are stored in separate |
51 |
+ files. Hence the "database" is a directory where all files are |
52 |
+ governed by PickleShare. |
53 |
+ </longdescription> |
54 |
+</pkgmetadata> |
55 |
|
56 |
diff --git a/dev-python/pickleshare/pickleshare-0.5.ebuild b/dev-python/pickleshare/pickleshare-0.5.ebuild |
57 |
new file mode 120000 |
58 |
index 0000000..16ddbe4 |
59 |
--- /dev/null |
60 |
+++ b/dev-python/pickleshare/pickleshare-0.5.ebuild |
61 |
@@ -0,0 +1 @@ |
62 |
+pickleshare-9999.ebuild |
63 |
\ No newline at end of file |
64 |
|
65 |
diff --git a/dev-python/pickleshare/pickleshare-9999.ebuild b/dev-python/pickleshare/pickleshare-9999.ebuild |
66 |
new file mode 100644 |
67 |
index 0000000..5c56ccb |
68 |
--- /dev/null |
69 |
+++ b/dev-python/pickleshare/pickleshare-9999.ebuild |
70 |
@@ -0,0 +1,39 @@ |
71 |
+# Copyright 1999-2015 Gentoo Foundation |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+# $Header: $ |
74 |
+ |
75 |
+EAPI=5 |
76 |
+ |
77 |
+PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) |
78 |
+ |
79 |
+inherit distutils-r1 |
80 |
+ |
81 |
+DESCRIPTION="A small 'shelve' like datastore with concurrency support" |
82 |
+HOMEPAGE="https://github.com/pickleshare/pickleshare" |
83 |
+ |
84 |
+if [ ${PV} == "9999" ] ; then |
85 |
+ inherit git-r3 |
86 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git git://github.com/${PN}/${PN}.git" |
87 |
+else |
88 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
89 |
+ KEYWORDS="~amd64" |
90 |
+ # test_pickleshare.py is not included in the pickleshare-0.5 source |
91 |
+ # we fetched from pipy |
92 |
+ RESTRICT="test" |
93 |
+fi |
94 |
+ |
95 |
+LICENSE="MIT" |
96 |
+SLOT="0" |
97 |
+IUSE="test" |
98 |
+ |
99 |
+RDEPEND=" |
100 |
+ dev-python/path-py[${PYTHON_USEDEP}]" |
101 |
+DEPEND="${RDEPEND} |
102 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
103 |
+ |
104 |
+python_test() { |
105 |
+ distutils_install_for_testing |
106 |
+ cd "${TEST_DIR}"/lib || die |
107 |
+ cp "${S}"/test_pickleshare.py "${TEST_DIR}"/lib/ || die |
108 |
+ py.test || die |
109 |
+} |