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 AEDF5138336 for ; Fri, 9 Nov 2018 14:21:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87765E0CE1; Fri, 9 Nov 2018 14:21:01 +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 590F4E0CE1 for ; Fri, 9 Nov 2018 14:21:01 +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 6BB99335CD5 for ; Fri, 9 Nov 2018 14:20:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C220645F for ; Fri, 9 Nov 2018 14:20:57 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1541773191.a7c145a1fc6bd06f781be9c5b218a318c2bb3707.alexxy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/webob/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/webob/webob-1.8.2-r1.ebuild X-VCS-Directories: dev-python/webob/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: a7c145a1fc6bd06f781be9c5b218a318c2bb3707 X-VCS-Branch: master Date: Fri, 9 Nov 2018 14:20:57 +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-Archives-Salt: 83eb1d2b-e106-40ca-b078-9be822a7aaed X-Archives-Hash: 011c1f89a725c55d3e73f23d304db5eb commit: a7c145a1fc6bd06f781be9c5b218a318c2bb3707 Author: Alexey Shvetsov gentoo org> AuthorDate: Fri Nov 9 13:54:17 2018 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Fri Nov 9 14:19:51 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7c145a1 dev-python/webob: eapi7 + py3_7 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Alexey Shvetsov gentoo.org> dev-python/webob/webob-1.8.2-r1.ebuild | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/dev-python/webob/webob-1.8.2-r1.ebuild b/dev-python/webob/webob-1.8.2-r1.ebuild new file mode 100644 index 00000000000..4c0774667c9 --- /dev/null +++ b/dev-python/webob/webob-1.8.2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-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 ) + +inherit distutils-r1 + +MY_PN=WebOb +MY_P=${MY_PN}-${PV} + +DESCRIPTION="WSGI request and response object" +HOMEPAGE="https://webob.org/ https://pypi.org/project/WebOb/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc test" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}] ) + test? ( dev-python/nose[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] )" +RDEPEND="" + +S=${WORKDIR}/${MY_P} + +python_compile_all() { + if use doc; then + esetup.py build_sphinx + fi +} + +python_test() { + nosetests --verbose -w tests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + distutils-r1_python_install_all +}