diff options
author | Patrick Lauer <patrick@gentoo.org> | 2016-07-21 11:11:54 +0200 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2016-07-21 15:12:24 +0200 |
commit | a016ea886803d421f4b2bd2619736852fe802b19 (patch) | |
tree | b46e4a9d4b015994a676508cdaa5368f7cc45a3e /dev-python/testify | |
parent | dev-python/reconfigure: Bump (diff) | |
download | gentoo-a016ea886803d421f4b2bd2619736852fe802b19.tar.gz gentoo-a016ea886803d421f4b2bd2619736852fe802b19.tar.bz2 gentoo-a016ea886803d421f4b2bd2619736852fe802b19.zip |
dev-python/testify: Bump
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-python/testify')
-rw-r--r-- | dev-python/testify/Manifest | 1 | ||||
-rw-r--r-- | dev-python/testify/testify-0.10.0.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/testify/Manifest b/dev-python/testify/Manifest index 7787f0ce0a41..e6f627c654eb 100644 --- a/dev-python/testify/Manifest +++ b/dev-python/testify/Manifest @@ -1,3 +1,4 @@ +DIST testify-0.10.0.tar.gz 68155 SHA256 a0870944e21d52c6f15950cf4f2bcaad5a172882973ec9a99e53ddf1ab00274e SHA512 18e1b46c7a54493eac6f061baf428fe41b4a975766cdf37a2c08c9091356248a2aa62c50b1b602ba1d9890cf659e31a9f57f5da52edf3f304fa1052342addeac WHIRLPOOL 0090d4afaa72ad77b4c6fd9cce017c7e67e2404204cd0e2d8472f3f7839a67cd9fdfe8d90bcc96fa5aa67c8edf83ed851d50b31377385a0a044e93743ea6ad57 DIST testify-0.5.7.tar.gz 166954 SHA256 153796d3b20b2d8554e52af26a8c891e6f02dfd6cc7be29f9241dad244cff044 SHA512 410ac412306c11bba992b882624fcacdbff00e2865cd986c560d8b50ea8dff0ead8603b18f40414d8dbbe1f3ab9426e0f61170dc450927f6d2282e389800ff21 WHIRLPOOL 2cc958efea71bd475c698cee36e4f1bdb7197c8cb54c38efbf66927d5abc60e769a8995ae7fb4107fab8b74e4b05afcaf16e5c0aec9db3471ddbd771bafa3adf DIST testify-0.7.2.tar.gz 102858 SHA256 7c209530fbb67344fe8985012056116d7d8eadd6ff126f91c93aa19208fd3ec9 SHA512 4b470aabe1ada88ddaf89145c77dbc5c2d000c8e0fab431535c08b4ff05a04c12f215d4c05d678ba718fdf3295be74fef23041d01d3c05e0b9e2c43c5ab0ed1e WHIRLPOOL 37ff8d7068ba4569215e3df440186ef3149a5fde0e12ec5efefc5b666adf2958b11f4db18995b46536cbf504dadec48f00b5f38e524ae09eb815c8170b8cf669 DIST testify-0.8.0.tar.gz 68996 SHA256 065cb852110547892d6f971b66795e71ee032a4bcc23decb984878b3ba402aaf SHA512 c3a198fbf9d58c817e6eeffbfba282571e87b952f4d473118b13ec9f1451f94309032bea62bdba866eff0932233cc29be4f7731a56db99fae8fa1e2b3f12ecfc WHIRLPOOL c9e8d80ed802b3effd9c63595f1d2557e314f5d358991a6384c1f91c242b15fbb25a931d8f40171f6d4099584743e7eebe3c15ff30f7c8595318a7e490806da2 diff --git a/dev-python/testify/testify-0.10.0.ebuild b/dev-python/testify/testify-0.10.0.ebuild new file mode 100644 index 000000000000..abd1101278be --- /dev/null +++ b/dev-python/testify/testify-0.10.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 vcs-snapshot + +DESCRIPTION="A more pythonic replacement for the unittest module and nose" +HOMEPAGE="https://github.com/Yelp/testify https://pypi.python.org/pypi/testify/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + www-servers/tornado[${PYTHON_USEDEP}] + >=dev-python/six-1.7.3[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( ${RDEPEND} )" + +python_prepare_all() { + # Correct typo in setup.py + sed -e 's:mock,:mock:' -i setup.py || die + + # Correct use of local importing in pertinent test_ files + sed -e s':from .test:from test:' \ + -i test/test_runner_test.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + einfo; einfo "Output reporting exceptions \"ImportError: No module named <module>\"" + einfo "are instances of exceptions expected to be raised, similar to xfails by nose"; einfo"" + for test in test/test_*_test.py; + do + "${PYTHON}" $test || die "test $test failed under ${EPYTHON}" + done +} |