commit: 44110d7d656c767061539fd0d5ecb7f21a781f48 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jul 15 17:44:48 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Jul 15 17:50:35 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44110d7d
dev-python/testfixtures: Bump to 6.18.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/testfixtures/Manifest | 1 + dev-python/testfixtures/testfixtures-6.18.0.ebuild | 41 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/dev-python/testfixtures/Manifest b/dev-python/testfixtures/Manifest index 320bdfe54a2..cf727b49161 100644 --- a/dev-python/testfixtures/Manifest +++ b/dev-python/testfixtures/Manifest @@ -1 +1,2 @@ DIST testfixtures-6.17.1.tar.gz 121440 BLAKE2B 6fcdf4f99af7941044f5f3cdc3e1204b5730d514a009e95f14451537f62af6c6ebaa97356b7ca0dae6313bd81b2a83d981567346e20c477c2d17c6bca73ecdcf SHA512 fbf7c8cd39b83516a257c5a3bce724a8416af88cf1bac8d69457b2030873185c685feb12aea065df2af729a9b733b3e0afe76207bd78e9b5a0c2d464b727d99e +DIST testfixtures-6.18.0.tar.gz 121584 BLAKE2B abf90012fe79d148c44d72a8aaa5277c95a33933c7b753eecdcaeb11279b4439ad9ea394270e440d9681c22789a17738d367b66adf3d04cf6e6289713c1ead59 SHA512 e6552e6b1837ae4ee4754ce3675bdbf2a68d8e46b892382bd8320290050f2c296348ef6310ce3ff46962bf1978c351fe2cdb853a73c9f800f68818f81d5caec9 diff --git a/dev-python/testfixtures/testfixtures-6.18.0.ebuild b/dev-python/testfixtures/testfixtures-6.18.0.ebuild new file mode 100644 index 00000000000..d73cc31b239 --- /dev/null +++ b/dev-python/testfixtures/testfixtures-6.18.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..9} ) +inherit distutils-r1 + +DESCRIPTION="A collection of helpers and mock objects for unit tests and doc tests" +HOMEPAGE="https://pypi.org/project/testfixtures/ https://github.com/Simplistix/testfixtures" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + dev-python/django[${PYTHON_USEDEP}] + dev-python/pytest-django[${PYTHON_USEDEP}] + dev-python/sybil[${PYTHON_USEDEP}] + >=dev-python/twisted-18[${PYTHON_USEDEP}] + dev-python/zope-component[${PYTHON_USEDEP}] + )" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +python_prepare_all() { + # kill weird way of declaring build deps + sed -e '/build=/d' -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTHONPATH="." + local -x DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings + epytest +}