From c10f286b7c947e27c9aa10b4ec00b14b3d2326c1 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Wed, 22 Mar 2017 17:34:01 +0100 Subject: [PATCH] dev-python/dirq: new package A port of Perl module Directory-Queue, developed at CERN. Used by the CERN Puppet librarian Jens. Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- dev-python/dirq/Manifest | 1 + dev-python/dirq/dirq-1.7.1.ebuild | 24 ++++++++++++++++++++++++ dev-python/dirq/metadata.xml | 20 ++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 dev-python/dirq/Manifest create mode 100644 dev-python/dirq/dirq-1.7.1.ebuild create mode 100644 dev-python/dirq/metadata.xml diff --git a/dev-python/dirq/Manifest b/dev-python/dirq/Manifest new file mode 100644 index 0000000000000..4e1390434b762 --- /dev/null +++ b/dev-python/dirq/Manifest @@ -0,0 +1 @@ +DIST dirq-1.7.1.tar.gz 32645 SHA256 258eac86de81fd013f11f309582bdff9f26c76e572214cf291c65c1bc667864c SHA512 8865f395e6ef81131c5e1df9f97cf1768557af06d446a79ece29e23b83c228cbb158099a7e85360423013cd8e5ead8970c5160865f065d16fcc288c2ce9d176f WHIRLPOOL dcd86acf6830f2e843a7691d816115aef7d1c9b9fa0a796bff4559a9d211779ce24ab03ced8ac7b917a35082aa34b1d2de90d480e94ae3db97c4a0e9dea28dd6 diff --git a/dev-python/dirq/dirq-1.7.1.ebuild b/dev-python/dirq/dirq-1.7.1.ebuild new file mode 100644 index 0000000000000..e304075fa727c --- /dev/null +++ b/dev-python/dirq/dirq-1.7.1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Python port of Perl module Directory::Queue" +HOMEPAGE="https://github.com/cern-mig/python-dirq" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +# Note: as of 2017-03-22, dirq tests are known to fail in Docker containers +python_test() { + esetup.py test +} diff --git a/dev-python/dirq/metadata.xml b/dev-python/dirq/metadata.xml new file mode 100644 index 0000000000000..2e025c6c0714b --- /dev/null +++ b/dev-python/dirq/metadata.xml @@ -0,0 +1,20 @@ + + + + + marecki@gentoo.org + Marek Szuba + + + The goal of this module is to offer a queue system using the underlying + filesystem for storage, security and to prevent race conditions via + atomic operations. It focuses on simplicity, robustness and scalability. + + This module allows multiple concurrent readers and writers to interact + with the same queue. + + + cern-mig/python-dirq + dirq + +