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 940C7138350 for ; Thu, 23 Apr 2020 17:50:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC62BE09A7; Thu, 23 Apr 2020 17:50:49 +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 9CC03E09A7 for ; Thu, 23 Apr 2020 17:50:49 +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 6A62C34F25F for ; Thu, 23 Apr 2020 17:50:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D26F61C5 for ; Thu, 23 Apr 2020 17:50:45 +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: <1587664237.e53e8e74fd013ac939284545c79cdc048bce56d8.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mimerender/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mimerender/Manifest dev-python/mimerender/mimerender-0.6.0.ebuild X-VCS-Directories: dev-python/mimerender/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e53e8e74fd013ac939284545c79cdc048bce56d8 X-VCS-Branch: master Date: Thu, 23 Apr 2020 17:50:45 +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: 200718b8-3dce-4646-a7b8-b11bed79636c X-Archives-Hash: cd778dfb82c4e95bd81badee2997554e commit: e53e8e74fd013ac939284545c79cdc048bce56d8 Author: Michał Górny gentoo org> AuthorDate: Thu Apr 23 17:40:02 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Apr 23 17:50:37 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e53e8e74 dev-python/mimerender: Fix tests, py3.{7,8} Signed-off-by: Michał Górny gentoo.org> dev-python/mimerender/Manifest | 2 +- dev-python/mimerender/mimerender-0.6.0.ebuild | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/dev-python/mimerender/Manifest b/dev-python/mimerender/Manifest index d9b29135cc0..4e152e230d8 100644 --- a/dev-python/mimerender/Manifest +++ b/dev-python/mimerender/Manifest @@ -1 +1 @@ -DIST mimerender-0.6.0.tar.gz 5310 BLAKE2B 92ff2e9dd8544ce64eb00fea230eb5d827cdd76856eb4ec7962ab706081e4e96b97e4bbb1a9131a37d643205e92ec9afb6b2b6b462fddc025a07d201b946eef9 SHA512 0b0f452404d09860cf42b8afef96ac87d4e5b222834b2309a9aa8d4855822b988cc8daaa2a0553332786755a26ff8e65c8cd6fbd4ff390f8534f925524b4222f +DIST mimerender-0.6.0.gh.tar.gz 16677 BLAKE2B 55db5bf97cd65de89271af8713d9dbdebab6254fa2dc62cfcd78394f4333093fdc508ad6e93f104eee2f3d8a1ceb9197353b4ca085e3b4887b4560c2c65c45f6 SHA512 68c584ba8ae608097b739078dd729bd8b5493087901ba281959abdb81d4e6052ff045c487fde4f67744b413bab36d7f938c68b162049ebe33bff642571b8fd98 diff --git a/dev-python/mimerender/mimerender-0.6.0.ebuild b/dev-python/mimerender/mimerender-0.6.0.ebuild index 05935778d43..9c2a32f940a 100644 --- a/dev-python/mimerender/mimerender-0.6.0.ebuild +++ b/dev-python/mimerender/mimerender-0.6.0.ebuild @@ -1,19 +1,27 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="5" -PYTHON_COMPAT=( python3_6 ) +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 DESCRIPTION="RESTful HTTP Content Negotiation for Flask, Bottle, web.py and webapp2" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" -HOMEPAGE="https://pypi.org/project/mimerender/" +HOMEPAGE=" + https://pypi.org/project/mimerender/ + https://github.com/martinblech/mimerender/" +SRC_URI=" + https://github.com/martinblech/mimerender/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" RDEPEND="dev-python/mimeparse[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" + +distutils_enable_tests unittest + +python_test() { + "${EPYTHON}" src/test.py -v || die "Tests fail with ${EPYTHON}" +}