commit: 4d75409fee32ae073baba5507eac3d3a6fc6b5b6 Author: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> AuthorDate: Mon Feb 1 16:30:46 2016 +0000 Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> CommitDate: Mon Feb 1 16:30:46 2016 +0000 URL: https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=4d75409f
dev-python/webob: add version bump with py-3.5 support dev-python/webob/Manifest | 1 + dev-python/webob/metadata.xml | 11 ++++++++ dev-python/webob/webob-1.6.0_alpha0.ebuild | 44 ++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) diff --git a/dev-python/webob/Manifest b/dev-python/webob/Manifest new file mode 100644 index 0000000..6c0c44d --- /dev/null +++ b/dev-python/webob/Manifest @@ -0,0 +1 @@ +DIST WebOb-1.6.0a0.tar.gz 203676 SHA256 fe6bc77ace5ec879152ac47b9c4b357b7c788264adbff1fe6bf8a0824272af91 SHA512 0cf15757e237c66f6b92fd5fbb61ce9b02a0ac56708d7d8eeb99cb2e042b6203a60fd0a5894c129c1830930c7d5faeb2374fe785ee7b889a29e473fa37c97b22 WHIRLPOOL 2daf1ae4a561ac4031e05b936a7db960711473c44ebfddee509a4c7ebd9c5acde6098ac8c745006b39d5394d3bba7b124e80723638f9fc70e1de2734550b007b diff --git a/dev-python/webob/metadata.xml b/dev-python/webob/metadata.xml new file mode 100644 index 0000000..5a81475 --- /dev/null +++ b/dev-python/webob/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>[email protected]</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">WebOb</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/webob/webob-1.6.0_alpha0.ebuild b/dev-python/webob/webob-1.6.0_alpha0.ebuild new file mode 100644 index 0000000..784c06e --- /dev/null +++ b/dev-python/webob/webob-1.6.0_alpha0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) + +inherit distutils-r1 versionator + +MY_PN=WebOb +MY_P=${MY_PN}-${PV//_alpha/a} + +DESCRIPTION="WSGI request and response object" +HOMEPAGE="http://webob.org/ https://pypi.python.org/pypi/WebOb" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~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[${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 + "${PYTHON}" setup.py build_sphinx || die + 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 +}
