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 901FC138334 for ; Fri, 27 Dec 2019 19:54:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D55D1E0BB8; Fri, 27 Dec 2019 19:54:41 +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 ABA10E0BB8 for ; Fri, 27 Dec 2019 19:54:41 +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 282CE34DC2A for ; Fri, 27 Dec 2019 19:54:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9316B36 for ; Fri, 27 Dec 2019 19:54:38 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1577476466.bd613b5ea4d2cb2c78a083710221490cfd5bb081.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bottle/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/bottle/Manifest dev-python/bottle/bottle-0.12.18.ebuild X-VCS-Directories: dev-python/bottle/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: bd613b5ea4d2cb2c78a083710221490cfd5bb081 X-VCS-Branch: master Date: Fri, 27 Dec 2019 19:54:38 +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: 05314cd5-9c44-490a-982e-bae8a0f1e45c X-Archives-Hash: 335a394589ce21c300d0111cd03fce54 commit: bd613b5ea4d2cb2c78a083710221490cfd5bb081 Author: Sebastian Pipping gentoo org> AuthorDate: Fri Dec 27 19:52:36 2019 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Fri Dec 27 19:54:26 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd613b5e dev-python/bottle: 0.12.18 + EAPI 7 + Python 3.8 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-2.3.83, Repoman-2.3.20 dev-python/bottle/Manifest | 1 + dev-python/bottle/bottle-0.12.18.ebuild | 52 +++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/dev-python/bottle/Manifest b/dev-python/bottle/Manifest index a6843d95900..56153c75cb9 100644 --- a/dev-python/bottle/Manifest +++ b/dev-python/bottle/Manifest @@ -1,3 +1,4 @@ DIST bottle-0.12.12.tar.gz 71554 BLAKE2B 4b0d0d77c5ebaddcafd44e16a052535ded566245324d39e97a39dd20a193360487f9489e8e89471dd92ca35d6c5b2e8cbe1572a958db31b69d32d3e32f1b6403 SHA512 cdba3859129680f08b8c641708fd884ccf46d404786cbf48435d752fece998a446f49799e4e05e979b967843866f3e966a35a6cac7aed3270df55fae508bae31 DIST bottle-0.12.13.tar.gz 70870 BLAKE2B d8bdef473181ce1cf6c0d1ea3537c407e68d23c1c44ca33e26c647d3b3783040d466b594c56c10cdd007d23bdf1708412d3e3ff108effa9e8a92e1b22f7a6c69 SHA512 86d106eb08e0b736a85aa69871f2d1e23c1d6f71948b85718daf131002c53c000e092ffdfe5b36c60460473467a2ca2b5af19767344689ffe638245e6859a80b DIST bottle-0.12.16.tar.gz 72248 BLAKE2B 21b5bc376648baec74577ac5b57fcacc58899babe07a034a436d5e2bde75a9e2e48b2569c5caf1478e77790c5fa327114ab9b084f014cc1ba97637d9ddfec659 SHA512 3c167f95902522c8f264e8478403da8e9b8cd84594318c4a773d38b7548b5ba95c99ef922033f6885cdc044b31f9c2e2f7ed263886637ce2a048e99c0c6e1403 +DIST bottle-0.12.18.tar.gz 71557 BLAKE2B a34cc1ab9a2a8505b7fda8bbddbae30b4e6c4829cae53f0f886237a21fdfa7f2b2463b216d7a16464539f41bdce4c1dabb5cc66027b8fdd19b10e9a78a3cdbb5 SHA512 db8a341cd80d755205518bb9eac5b79dca9e541ab3ad9d9d57f891d895f7df75a8facd16b068cbdf7c4f884f35e384449f4cbd565a43e9c5d000d3a9f5b7dcb0 diff --git a/dev-python/bottle/bottle-0.12.18.ebuild b/dev-python/bottle/bottle-0.12.18.ebuild new file mode 100644 index 00000000000..6741fdd076c --- /dev/null +++ b/dev-python/bottle/bottle-0.12.18.ebuild @@ -0,0 +1,52 @@ +# 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 pypy3 ) + +inherit distutils-r1 eutils + +DESCRIPTION="A fast and simple micro-framework for small web-applications" +HOMEPAGE="https://pypi.org/project/bottle/ https://bottlepy.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( + $(python_gen_cond_dep ' + dev-python/mako[${PYTHON_USEDEP}] + ' 'python*') + )" +RDEPEND="" + +PATCHES=( + "${FILESDIR}"/${PN}-0.12.8-py3.5-backport.patch +) + +python_prepare_all() { + sed -i -e '/scripts/d' setup.py || die + + # Remove test file requring connection to network + rm test/test_server.py || die + distutils-r1_python_prepare_all +} + +python_test() { + # A few odd fails in the suite under pypy + # https://github.com/bottlepy/bottle/issues/714 + "${EPYTHON}" test/testall.py || die "tests failed under ${EPYTHON}" +} + +pkg_postinst() { + optfeature "Templating support" dev-python/mako + elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)" + elog "we do as most other distros and do not install the script anymore." + elog "If you do want/have to call it directly rather than through your app," + elog "please use the following instead:" + elog ' `python -m bottle`' +}