From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6D2C41384B4 for ; Sat, 28 Nov 2015 17:33:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37AEAE08AA; Sat, 28 Nov 2015 17:33:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3BD47E08A8 for ; Sat, 28 Nov 2015 17:33:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C6CA340890 for ; Sat, 28 Nov 2015 17:33:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D7660E6B for ; Sat, 28 Nov 2015 17:33:18 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1448638248.856f8100117098436871478e12603bfbc051d2f1.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pickleshare/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pickleshare/Manifest dev-python/pickleshare/metadata.xml dev-python/pickleshare/pickleshare-0.5.ebuild X-VCS-Directories: dev-python/pickleshare/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 856f8100117098436871478e12603bfbc051d2f1 X-VCS-Branch: master Date: Sat, 28 Nov 2015 17:33:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c2ec6a0b-2f8d-4c3b-9252-349723b64593 X-Archives-Hash: 48596df54309c8562753ba1c20c2e93d commit: 856f8100117098436871478e12603bfbc051d2f1 Author: Marius Brehler linux sungazer de> AuthorDate: Fri Nov 27 15:30:48 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Fri Nov 27 15:30:48 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=856f8100 dev-python/pickleshare: Import from science overlay Package-Manager: portage-2.2.20.1 dev-python/pickleshare/Manifest | 1 + dev-python/pickleshare/metadata.xml | 18 ++++++++++++++ dev-python/pickleshare/pickleshare-0.5.ebuild | 34 +++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/dev-python/pickleshare/Manifest b/dev-python/pickleshare/Manifest new file mode 100644 index 0000000..79e862d --- /dev/null +++ b/dev-python/pickleshare/Manifest @@ -0,0 +1 @@ +DIST pickleshare-0.5.tar.gz 4441 SHA256 c0be5745035d437dbf55a96f60b7712345b12423f7d0951bd7d8dc2141ca9286 SHA512 1021b76591b5b1d6c777e03c9544fea63602f719b786a2a2e73590f8e8275156fa69b336adf81a6e8abcaad2263eacd76ce4abf2ceff04126ff6b1ffd96cb4e3 WHIRLPOOL 07907feb8dab2dfbfc74e43d17cc076027ab450091a8dd4af197019c6c46e268eda1d5761ab22fc774e37090ab7d51212d82ba284d89018fbc0f52c38f235c62 diff --git a/dev-python/pickleshare/metadata.xml b/dev-python/pickleshare/metadata.xml new file mode 100644 index 0000000..ea703f9 --- /dev/null +++ b/dev-python/pickleshare/metadata.xml @@ -0,0 +1,18 @@ + + + + sci + + Like shelve, a PickleShareDB object acts like a normal dictionary. + Unlike shelve, many processes can access the database + simultaneously. Changing a value in database is immediately visible + to other processes accessing the same database. + Concurrency is possible because the values are stored in separate + files. Hence the "database" is a directory where all files are + governed by PickleShare. + + + pickleshare + pickleshare/pickleshare + + diff --git a/dev-python/pickleshare/pickleshare-0.5.ebuild b/dev-python/pickleshare/pickleshare-0.5.ebuild new file mode 100644 index 0000000..7fd09f4 --- /dev/null +++ b/dev-python/pickleshare/pickleshare-0.5.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) + +inherit distutils-r1 + +DESCRIPTION="A small 'shelve' like datastore with concurrency support" +HOMEPAGE="https://github.com/pickleshare/pickleshare" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-python/path-py[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +# test_pickleshare.py is not included in the pickleshare-0.5 source +# we fetched from pipy +RESTRICT="test" + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}"/lib || die + cp "${S}"/test_pickleshare.py "${TEST_DIR}"/lib/ || die + py.test || die +}