From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1057951-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1651A138334 for <garchives@archives.gentoo.org>; Sun, 18 Nov 2018 21:03:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC63BE0A9C; Sun, 18 Nov 2018 21:03:24 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1820E0A9C for <gentoo-commits@lists.gentoo.org>; Sun, 18 Nov 2018 21:03:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EBC08335C39 for <gentoo-commits@lists.gentoo.org>; Sun, 18 Nov 2018 21:03:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0CBBB434 for <gentoo-commits@lists.gentoo.org>; Sun, 18 Nov 2018 21:03:21 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org> Message-ID: <1542574998.8227eaa7218ea5bc784ef5b38cf82e0bc6afe636.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/filelock/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/filelock/filelock-3.0.10.ebuild dev-python/filelock/metadata.xml X-VCS-Directories: dev-python/filelock/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8227eaa7218ea5bc784ef5b38cf82e0bc6afe636 X-VCS-Branch: master Date: Sun, 18 Nov 2018 21:03:21 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 578b877c-082f-4811-ace6-9bf75fa5625a X-Archives-Hash: f788610561be12f923a7675633d9d3cb commit: 8227eaa7218ea5bc784ef5b38cf82e0bc6afe636 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Nov 18 19:36:05 2018 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Nov 18 21:03:18 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8227eaa7 dev-python/filelock: New package, dep of dev-python/tox Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/filelock/filelock-3.0.10.ebuild | 34 ++++++++++++++++++++++++++++++ dev-python/filelock/metadata.xml | 11 ++++++++++ 2 files changed, 45 insertions(+) diff --git a/dev-python/filelock/filelock-3.0.10.ebuild b/dev-python/filelock/filelock-3.0.10.ebuild new file mode 100644 index 00000000000..04e239ae7c4 --- /dev/null +++ b/dev-python/filelock/filelock-3.0.10.ebuild @@ -0,0 +1,34 @@ +# Copyright 2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} ) +inherit distutils-r1 + +MY_P=py-filelock-${PV} +DESCRIPTION="A platform independent file lock for Python" +HOMEPAGE="https://github.com/benediktschmitt/py-filelock + https://pypi.org/project/filelock/" +SRC_URI="https://github.com/benediktschmitt/py-filelock/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # test_del is relying on CPython behavior, so it breaks PyPy + # (and it's not very valuable anyway) + sed -i -e '/test_del/i\ \ \ \ @unittest.skipIf(hasattr(sys, "pypy_version_info"), "del() does not trigger GC on PyPy")' test.py || die + + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" test.py -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/filelock/metadata.xml b/dev-python/filelock/metadata.xml new file mode 100644 index 00000000000..8684444c6ac --- /dev/null +++ b/dev-python/filelock/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="pypi">filelock</remote-id> + <remote-id type="github">benediktschmitt/py-filelock</remote-id> + </upstream> +</pkgmetadata>