diff options
author | Tim Harder <radhermit@gentoo.org> | 2016-08-19 16:00:15 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2016-08-19 16:00:15 -0400 |
commit | 559a22e47cd7deeb4a93de69884a831a3ab6da02 (patch) | |
tree | ef5e475db664beaf95ecbc17d903ee905622fd69 /dev-python/mock | |
parent | net-news/newsbeuter: add live ebuild (diff) | |
download | gentoo-559a22e47cd7deeb4a93de69884a831a3ab6da02.tar.gz gentoo-559a22e47cd7deeb4a93de69884a831a3ab6da02.tar.bz2 gentoo-559a22e47cd7deeb4a93de69884a831a3ab6da02.zip |
dev-python/mock: version bump to 2.0.0
Diffstat (limited to 'dev-python/mock')
-rw-r--r-- | dev-python/mock/Manifest | 1 | ||||
-rw-r--r-- | dev-python/mock/mock-2.0.0.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/mock/Manifest b/dev-python/mock/Manifest index c0ae945f5bcb..a0f62312f4a4 100644 --- a/dev-python/mock/Manifest +++ b/dev-python/mock/Manifest @@ -1,2 +1,3 @@ DIST mock-1.0.1.tar.gz 818644 SHA256 b839dd2d9c117c701430c149956918a423a9863b48b09c90e30a6013e7d2f44f SHA512 4f6f4ebc34843e16b15d866e415ad9992e79bd266a63a22fee31b773ba77615e3406bc8890ceed92c0ee296380d68c46299c4c4448a3526f9cb96b258d32cf58 WHIRLPOOL d5a83199a355d9dc8f327f287e6f6fb889f569eb6642c86390aead3f91505c5fb98512e15ed34cadb407dc0a56d541395132872f1a910d20d330d6d3190f164c DIST mock-1.3.0.tar.gz 70908 SHA256 1e247dbecc6ce057299eb7ee019ad68314bb93152e81d9a6110d35f4d5eca0f6 SHA512 10cbb78b89f2e82abfcadc035a526182f83b59df4775cd85acfdbeb4505791c63b7a3761e6126a08d9aedbd07ead8632ac2a728dc07a362f4aaeea694bdecaf9 WHIRLPOOL 783fa1a7dade482c318805cc34bc642e29403e2fd1e6010acf212283d20981216cc8ef85cfea3e72c9f521d2954cf8e895cbe7ee126cd84d780c8b80727421f2 +DIST mock-2.0.0.tar.gz 73684 SHA256 b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba SHA512 a08007651b749d2843b94f5045d74c122958888290aea21930455538a854e6b04c07115e21d82edde996154bf597d7a8784a2f4213cbabc49a98dec22dd92238 WHIRLPOOL eb9a80028946f146f7951046940ccb5bddd2016c279e7cf936829b80fedc4dea6aa912a04d18cfab36b67fdccdb0bb6e71f495e309c1659637fed51c82fed3cc diff --git a/dev-python/mock/mock-2.0.0.ebuild b/dev-python/mock/mock-2.0.0.ebuild new file mode 100644 index 000000000000..4219c9d932b2 --- /dev/null +++ b/dev-python/mock/mock-2.0.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Rolling backport of unittest.mock for all Pythons" +HOMEPAGE="https://github.com/testing-cabal/mock" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" +IUSE="test" + +CDEPEND=" + >=dev-python/pbr-1.3[${PYTHON_USEDEP}] + >=virtual/python-funcsigs-1[${PYTHON_USEDEP}]" +DEPEND=" + >=dev-python/setuptools-17.1[${PYTHON_USEDEP}] + test? ( + ${CDEPEND} + dev-python/nose[${PYTHON_USEDEP}] + >=dev-python/unittest2-1.1.0[${PYTHON_USEDEP}] + )" +RDEPEND=" + ${CDEPEND} + >=dev-python/six-1.9[${PYTHON_USEDEP}] +" + +python_test() { + nosetests --verbose || die "tests fail under ${EPYTHON}" +} + +python_install_all() { + local DOCS=( docs/{conf.py,index.txt} AUTHORS ChangeLog NEWS README.rst ) + + distutils-r1_python_install_all +} |