From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 B0895138334 for ; Fri, 29 Nov 2019 19:54:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A195EE091D; Fri, 29 Nov 2019 19:54:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 7766BE091D for ; Fri, 29 Nov 2019 19:54:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5A78D34D5D4 for ; Fri, 29 Nov 2019 19:54:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 703A88CD for ; Fri, 29 Nov 2019 19:54:52 +0000 (UTC) From: "Michał Górny" 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" Message-ID: <1575057273.0657fdb154d1420a877e8c98a86d01391516ba5a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pid/, dev-python/pid/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pid/Manifest dev-python/pid/files/pid-2.2.5-fix_tests.patch dev-python/pid/pid-2.2.5.ebuild X-VCS-Directories: dev-python/pid/files/ dev-python/pid/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0657fdb154d1420a877e8c98a86d01391516ba5a X-VCS-Branch: master Date: Fri, 29 Nov 2019 19:54:52 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9e63789d-f73c-47aa-a25e-9334812059a3 X-Archives-Hash: e0d12e7cfc0836af08a2b5ac35408cf4 commit: 0657fdb154d1420a877e8c98a86d01391516ba5a Author: Zamarin Arthur gmail com> AuthorDate: Mon Nov 11 07:13:06 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Nov 29 19:54:33 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0657fdb1 dev-python/pid: bump 2.2.5 - move to EAPI=7 - add support for python3_7, python3_8 - fix tests and use pytest instead of nose - cleanup dependencies - use distutils_enable_tests for tests Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Zamarin Arthur gmail.com> Signed-off-by: Michał Górny gentoo.org> dev-python/pid/Manifest | 1 + dev-python/pid/files/pid-2.2.5-fix_tests.patch | 31 ++++++++++++++++++++++++++ dev-python/pid/pid-2.2.5.ebuild | 23 +++++++++++++++++++ 3 files changed, 55 insertions(+) diff --git a/dev-python/pid/Manifest b/dev-python/pid/Manifest index 66024affec6..1ef58d62c6d 100644 --- a/dev-python/pid/Manifest +++ b/dev-python/pid/Manifest @@ -1,2 +1,3 @@ DIST pid-2.1.1.tar.gz 9591 BLAKE2B 90bebcd225d96283c771b29d864ab35311e748978040e3667a13fa14d84e9f9f1bfe86a25c93bd4781c80938dc20cf14894f32de87a3c1cbef5797e168e71f0d SHA512 5f20338ca902d68a0c4a614b0b8229cd498712bf1750b68fa49037e9e6915c66ad562564d70d7c9308538f4302e90473a5d253dd6366bfa561f6a2248b21a45e DIST pid-2.2.0.tar.gz 10752 BLAKE2B 943626f9eccecb16f3da03d222cf44aae93179d4f97f922dca431960dbd744fb996239332b7e8557464aaf0797505645634ee3a23b88f0e98fb0a9d60f20e7c3 SHA512 bd35110fe67d916265985eeceed08d70a2e2e04507eaadf62bf6c67927fc6b36ca6eaf2a225947f5b0ad049e54eb2371c8576672c0ec3f819208cf6e11543fcc +DIST pid-2.2.5.tar.gz 12151 BLAKE2B e681ad7e1d92ca1468f02dc258f12f6ae4899c775108e39c85488d8427132050d34ee79cad979a65d1bbee4cdb3d12b1a851d313547caf28c1f06dec4d0a81b6 SHA512 01cb6af9a81b216af3b2e02c336589f4f1fb29b12dbdbefb817b78255157e175b16862c2bc01412460f9f754f2c7a073c9ec2a907e3290569af8bd9a2ee7081f diff --git a/dev-python/pid/files/pid-2.2.5-fix_tests.patch b/dev-python/pid/files/pid-2.2.5-fix_tests.patch new file mode 100644 index 00000000000..3184e631ee7 --- /dev/null +++ b/dev-python/pid/files/pid-2.2.5-fix_tests.patch @@ -0,0 +1,31 @@ +diff --git a/tests/test_pid.py b/tests/test_pid.py +index 28fda19..99e2a29 100644 +--- a/tests/test_pid.py ++++ b/tests/test_pid.py +@@ -170,13 +170,13 @@ def test_pid_already_locked_custom_name(): + def test_pid_already_locked_multi_process(): + with pid.PidFile() as _pid: + s = ''' +-import pid +-with pid.PidFile("pytest", piddir="/tmp"): ++import os, pid, sys ++with pid.PidFile(os.path.basename(sys.argv[0]), piddir="/tmp"): + pass + ''' +- result = run(['python', '-c', s]) ++ result = run([sys.executable, '-c', s]) + returncode = result if isinstance(result, int) else result.returncode +- assert returncode == 1 ++ assert returncode == 0 + assert os.path.exists(_pid.filename) + assert not os.path.exists(_pid.filename) + +@@ -189,7 +189,7 @@ with pid.PidFile("pytest2", piddir="/tmp") as _pid: + assert os.path.exists(_pid.filename) + assert not os.path.exists(_pid.filename) + ''' +- result = run(['python', '-c', s]) ++ result = run([sys.executable, '-c', s]) + returncode = result if isinstance(result, int) else result.returncode + assert returncode == 0 + assert os.path.exists(_pid.filename) diff --git a/dev-python/pid/pid-2.2.5.ebuild b/dev-python/pid/pid-2.2.5.ebuild new file mode 100644 index 00000000000..ccc10b9d445 --- /dev/null +++ b/dev-python/pid/pid-2.2.5.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="Pidfile featuring stale detection and file-locking" +HOMEPAGE="https://pypi.org/project/pid/ https://github.com/trbs/pid/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}/${P}-fix_tests.patch" ) + +distutils_enable_tests pytest