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 4F1C6138CDD for ; Wed, 3 Jun 2015 10:21:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04270E086F; Wed, 3 Jun 2015 10:21:39 +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 37ACFE086F for ; Wed, 3 Jun 2015 10:21:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 58103340CDE for ; Wed, 3 Jun 2015 10:21:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0801BA26 for ; Wed, 3 Jun 2015 10:21:36 +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: <1433058617.aedf1a2eec2399ccab179a70adcf640935f9ba0b.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/pickleshare/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/pickleshare/ChangeLog dev-python/pickleshare/metadata.xml dev-python/pickleshare/pickleshare-0.5.ebuild dev-python/pickleshare/pickleshare-9999.ebuild X-VCS-Directories: dev-python/pickleshare/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: aedf1a2eec2399ccab179a70adcf640935f9ba0b X-VCS-Branch: master Date: Wed, 3 Jun 2015 10:21:36 +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: 5198fe55-44de-4250-81d4-61eef8c872df X-Archives-Hash: 7ebad0c19186af9805ba6e124722f704 commit: aedf1a2eec2399ccab179a70adcf640935f9ba0b Author: Marius Brehler linux sungazer de> AuthorDate: Sun May 31 07:50:17 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Sun May 31 07:50:17 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=aedf1a2e dev-python/pickleshare: Initial ebuild (required for >dev-python/ipython-3.1.0) Package-Manager: portage-2.2.18 dev-python/pickleshare/ChangeLog | 10 +++++++ dev-python/pickleshare/metadata.xml | 14 +++++++++ dev-python/pickleshare/pickleshare-0.5.ebuild | 1 + dev-python/pickleshare/pickleshare-9999.ebuild | 39 ++++++++++++++++++++++++++ 4 files changed, 64 insertions(+) diff --git a/dev-python/pickleshare/ChangeLog b/dev-python/pickleshare/ChangeLog new file mode 100644 index 0000000..1f9401c --- /dev/null +++ b/dev-python/pickleshare/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/pickleshare +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*pickleshare-0.5 (31 May 2015) +*pickleshare-9999 (31 May 2015) + + 31 May 2015; Marius Brehler +metadata.xml, + +pickleshare-0.5.ebuild, +pickleshare-9999.ebuild: + Initial ebuild (required for >dev-python/ipython-3.1.0) diff --git a/dev-python/pickleshare/metadata.xml b/dev-python/pickleshare/metadata.xml new file mode 100644 index 0000000..6cdedef --- /dev/null +++ b/dev-python/pickleshare/metadata.xml @@ -0,0 +1,14 @@ + + + + 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. + + diff --git a/dev-python/pickleshare/pickleshare-0.5.ebuild b/dev-python/pickleshare/pickleshare-0.5.ebuild new file mode 120000 index 0000000..16ddbe4 --- /dev/null +++ b/dev-python/pickleshare/pickleshare-0.5.ebuild @@ -0,0 +1 @@ +pickleshare-9999.ebuild \ No newline at end of file diff --git a/dev-python/pickleshare/pickleshare-9999.ebuild b/dev-python/pickleshare/pickleshare-9999.ebuild new file mode 100644 index 0000000..5c56ccb --- /dev/null +++ b/dev-python/pickleshare/pickleshare-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="A small 'shelve' like datastore with concurrency support" +HOMEPAGE="https://github.com/pickleshare/pickleshare" + +if [ ${PV} == "9999" ] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git git://github.com/${PN}/${PN}.git" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64" + # test_pickleshare.py is not included in the pickleshare-0.5 source + # we fetched from pipy + RESTRICT="test" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="test" + +RDEPEND=" + dev-python/path-py[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}"/lib || die + cp "${S}"/test_pickleshare.py "${TEST_DIR}"/lib/ || die + py.test || die +}