Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pickleshare/
Date: Sat, 28 Nov 2015 17:33:32
Message-Id: 1448638248.856f8100117098436871478e12603bfbc051d2f1.jlec@gentoo
1 commit: 856f8100117098436871478e12603bfbc051d2f1
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Fri Nov 27 15:30:48 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 27 15:30:48 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=856f8100
7
8 dev-python/pickleshare: Import from science overlay
9
10 Package-Manager: portage-2.2.20.1
11
12 dev-python/pickleshare/Manifest | 1 +
13 dev-python/pickleshare/metadata.xml | 18 ++++++++++++++
14 dev-python/pickleshare/pickleshare-0.5.ebuild | 34 +++++++++++++++++++++++++++
15 3 files changed, 53 insertions(+)
16
17 diff --git a/dev-python/pickleshare/Manifest b/dev-python/pickleshare/Manifest
18 new file mode 100644
19 index 0000000..79e862d
20 --- /dev/null
21 +++ b/dev-python/pickleshare/Manifest
22 @@ -0,0 +1 @@
23 +DIST pickleshare-0.5.tar.gz 4441 SHA256 c0be5745035d437dbf55a96f60b7712345b12423f7d0951bd7d8dc2141ca9286 SHA512 1021b76591b5b1d6c777e03c9544fea63602f719b786a2a2e73590f8e8275156fa69b336adf81a6e8abcaad2263eacd76ce4abf2ceff04126ff6b1ffd96cb4e3 WHIRLPOOL 07907feb8dab2dfbfc74e43d17cc076027ab450091a8dd4af197019c6c46e268eda1d5761ab22fc774e37090ab7d51212d82ba284d89018fbc0f52c38f235c62
24
25 diff --git a/dev-python/pickleshare/metadata.xml b/dev-python/pickleshare/metadata.xml
26 new file mode 100644
27 index 0000000..ea703f9
28 --- /dev/null
29 +++ b/dev-python/pickleshare/metadata.xml
30 @@ -0,0 +1,18 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <herd>sci</herd>
35 + <longdescription>
36 + Like shelve, a PickleShareDB object acts like a normal dictionary.
37 + Unlike shelve, many processes can access the database
38 + simultaneously. Changing a value in database is immediately visible
39 + to other processes accessing the same database.
40 + Concurrency is possible because the values are stored in separate
41 + files. Hence the "database" is a directory where all files are
42 + governed by PickleShare.
43 + </longdescription>
44 + <upstream>
45 + <remote-id type="pypi">pickleshare</remote-id>
46 + <remote-id type="github">pickleshare/pickleshare</remote-id>
47 + </upstream>
48 +</pkgmetadata>
49
50 diff --git a/dev-python/pickleshare/pickleshare-0.5.ebuild b/dev-python/pickleshare/pickleshare-0.5.ebuild
51 new file mode 100644
52 index 0000000..7fd09f4
53 --- /dev/null
54 +++ b/dev-python/pickleshare/pickleshare-0.5.ebuild
55 @@ -0,0 +1,34 @@
56 +# Copyright 1999-2015 Gentoo Foundation
57 +# Distributed under the terms of the GNU General Public License v2
58 +# $Id$
59 +
60 +EAPI=5
61 +
62 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
63 +
64 +inherit distutils-r1
65 +
66 +DESCRIPTION="A small 'shelve' like datastore with concurrency support"
67 +HOMEPAGE="https://github.com/pickleshare/pickleshare"
68 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
69 +
70 +LICENSE="MIT"
71 +SLOT="0"
72 +KEYWORDS="~amd64 ~x86"
73 +IUSE="test"
74 +
75 +RDEPEND="
76 + dev-python/path-py[${PYTHON_USEDEP}]"
77 +DEPEND="${RDEPEND}
78 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
79 +
80 +# test_pickleshare.py is not included in the pickleshare-0.5 source
81 +# we fetched from pipy
82 +RESTRICT="test"
83 +
84 +python_test() {
85 + distutils_install_for_testing
86 + cd "${TEST_DIR}"/lib || die
87 + cp "${S}"/test_pickleshare.py "${TEST_DIR}"/lib/ || die
88 + py.test || die
89 +}