diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-09-29 16:42:45 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-09-29 22:43:40 -0500 |
commit | 19adfded88fa698aa49dd5310b231e9cb57a3ff5 (patch) | |
tree | 1f7c14336a06f1350c52b08df7a9d1c9e3cbf612 /dev-python/paste | |
parent | sci-libs/blas-reference: ebuild maintenance, cleanup (diff) | |
download | gentoo-19adfded88fa698aa49dd5310b231e9cb57a3ff5.tar.gz gentoo-19adfded88fa698aa49dd5310b231e9cb57a3ff5.tar.bz2 gentoo-19adfded88fa698aa49dd5310b231e9cb57a3ff5.zip |
add initial support for newton (keystone)
dropped py3.3 and updated most (maybe all) to eapi6
Diffstat (limited to 'dev-python/paste')
-rw-r--r-- | dev-python/paste/Manifest | 1 | ||||
-rw-r--r-- | dev-python/paste/paste-2.0.3.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/paste/Manifest b/dev-python/paste/Manifest index 2b6d4408db17..5c3ad8466e3c 100644 --- a/dev-python/paste/Manifest +++ b/dev-python/paste/Manifest @@ -1,2 +1,3 @@ DIST Paste-1.7.5.1.tar.gz 523304 SHA256 11645842ba8ec986ae8cfbe4c6cacff5c35f0f4527abf4f5581ae8b4ad49c0b6 SHA512 058a86dec41f132c22b14f3bc882d9c02c04bb0cc9ea5fc5371911698c3d7a89859742a4b806ad388c7fe37289b816db16c50bce21f56c8371293c4d91b5ccb6 WHIRLPOOL 5928a6f20c136a77576b653df34337f1eb110845b8d53d7637eeb6c792fe7f10fe622adefec382378aef16c1abee91c37e90e5fe17dbaa07046681a393f6c5c8 DIST Paste-2.0.2.tar.gz 627842 SHA256 adac3ac893a2dac6b8ffd49901377dd6819e05be3436b374d698641071daba99 SHA512 32eddeab1bab9d0b1a30848d89613b40ed02a77912f7ef5a86880e1c1a860c5637cd45114bd58cc5ac84410a569ede67e6ebd7afd2007c588433d54d6940f529 WHIRLPOOL 08c997079e632b92e592211d942298235228ec22b997d549f608552f139a941cdd47a5c2da859867c279cab0ad7f388823f1af163ed7ea8aeaaa7558407e3750 +DIST Paste-2.0.3.tar.gz 643935 SHA256 2346a347824c32641bf020c17967b49ae74d3310ec1bc9b958d4b84e2d985218 SHA512 174b06d77bc6e1d4079e8de7df40412ffda098364efd4e3f915f858be1188c8a6fb546fe4ab981ccc067ec77b7171083b2469e7db6fc3b777d5a24151c928362 WHIRLPOOL 0aa15c2c6ffdbf965f3763d296e28c75337d9e582ad8623d70a9a4df572457247d583682b7ecddc5206b1a997f22e4f46f68b013a1ca646b0d6d08559ac1447e diff --git a/dev-python/paste/paste-2.0.3.ebuild b/dev-python/paste/paste-2.0.3.ebuild new file mode 100644 index 000000000000..b8cc3cbc58d5 --- /dev/null +++ b/dev-python/paste/paste-2.0.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit distutils-r1 + +MY_PN="Paste" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tools for using a Web Server Gateway Interface stack" +HOMEPAGE="http://pythonpaste.org https://pypi.python.org/pypi/Paste" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris" +IUSE="doc flup openid" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/tempita-0.5.2_pre20130828[${PYTHON_USEDEP}] + flup? ( dev-python/flup[$(python_gen_usedep 'python2*')] ) + openid? ( dev-python/python-openid[$(python_gen_usedep 'python2*')] )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +python_prepare_all() { + # Disable failing tests. + rm -f tests/test_cgiapp.py || die + sed \ + -e "s/test_find_file/_&/" \ + -e "s/test_deep/_&/" \ + -e "s/test_static_parser/_&/" \ + -i tests/test_urlparser.py || die "sed failed" + + # Remove a test that runs against the paste website. + rm -f tests/test_proxy.py || die + + local PATCHES=( + "${FILESDIR}"/${PN}-1.7.5.1-fix-tests-for-pypy.patch + "${FILESDIR}"/${P}-unbundle-tempita.patch + ) + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile egg_info --egg-base "${BUILD_DIR}/lib" +} + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_test() { + nosetests -P -v || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install egg_info --egg-base "${BUILD_DIR}/lib" +} + +python_install_all() { + use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + distutils-r1_python_install_all +} |