diff options
author | Patrick Lauer <patrick@gentoo.org> | 2017-09-16 14:22:19 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2017-09-16 14:23:02 +0000 |
commit | bd5a9bd411e3ba401ce196a2daca365ba8e5d8bf (patch) | |
tree | 572f6960d71434670d70ee78bf8026101cb4e39b /dev-python/flask-testing | |
parent | dev-python/flask-mongoengine: Bump (diff) | |
download | gentoo-bd5a9bd411e3ba401ce196a2daca365ba8e5d8bf.tar.gz gentoo-bd5a9bd411e3ba401ce196a2daca365ba8e5d8bf.tar.bz2 gentoo-bd5a9bd411e3ba401ce196a2daca365ba8e5d8bf.zip |
dev-python/flask-testing: Bump
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-python/flask-testing')
-rw-r--r-- | dev-python/flask-testing/Manifest | 1 | ||||
-rw-r--r-- | dev-python/flask-testing/flask-testing-0.6.2.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/flask-testing/Manifest b/dev-python/flask-testing/Manifest index 5206e21a84f5..6d7f79c17718 100644 --- a/dev-python/flask-testing/Manifest +++ b/dev-python/flask-testing/Manifest @@ -1,2 +1,3 @@ DIST Flask-Testing-0.4.2.tar.gz 40994 SHA256 921c7c653e0d511ed87fbf70d984e27afea8dfa7e10b358689863d7a63e05321 SHA512 57f1a58f352637b6c1d4dc5aa8b3cac215eae334f355d40b6c777f9c5a769c745ce11f2a98818669ec2c29fc170fd86fe4670bb66bd4e4607174b21c5c2067e3 WHIRLPOOL a1fc0723660c25cb18ea5eb4c283c79eb379f2d8cee1bf8fda6ed8b10391cdf0080fa3e2e1ce6cdc50845548a5d9be3f4b20ef267c1350a14049adfbdcfa8e20 DIST Flask-Testing-0.6.1.tar.gz 42541 SHA256 abf539332c013aee5301cbb720d2c6a78bb69fe9bcf854697b6f62f1e7f175b2 SHA512 f7a0a89885693f568e8e03a9ae689add3b9577517faa6b842bb6b990a2be447ecb9ccf693dd5279ca98dfcc8b18e2041fccf0cf36c28cea5fdc0dbdc9b64f065 WHIRLPOOL 456c7c834f3ed9806fd830f64873f43ac6707cdc195ac2e4c7ae9083987b967a8e2bc0250df1a5247f5512483b39272bf3a3bc53642180990b6269a619eb8b12 +DIST Flask-Testing-0.6.2.tar.gz 129078 SHA256 f25effd266fce9b16482f4ce3423d5a7d25534aab77bc83caace5d9637bf0df0 SHA512 1ce6a32f2c4e2d6d39c0bd2f01b8d20e2ee8faa5cb31d308bbcda2159f8307cc42f445e328a3752c3c3c66f4fffef75b400c70954b1aeb1aabab8a54c565b5ce WHIRLPOOL 3cdba18893defeac5728fdb6fed82555769cd93809fef873083876dceb75474133b2a58d3e8d0226b9ffaa13b939c9820a3b64a78768e8278e28ed9d940cf25d diff --git a/dev-python/flask-testing/flask-testing-0.6.2.ebuild b/dev-python/flask-testing/flask-testing-0.6.2.ebuild new file mode 100644 index 000000000000..29041a15206a --- /dev/null +++ b/dev-python/flask-testing/flask-testing-0.6.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5} pypy ) + +inherit distutils-r1 + +MY_PN="Flask-Testing" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Unit testing for Flask" +HOMEPAGE="http://pythonhosted.org/Flask-Testing/ https://pypi.python.org/pypi/Flask-Testing/" +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/flask[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/twill[${PYTHON_USEDEP}]' 'python2*')" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/blinker[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +python_test() { + local exclude + if $(python_is_python3); then + # Twill is not available on python-3 + exclude="-e twill" + fi + # test phase appears to run only py2.7 but if it passes for py2.7 is passes for pypy + nosetests ${exclude} || die "Testing failed with ${EPYTHON}" +} |