diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-04 10:24:23 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-04 10:38:53 +0200 |
commit | 139c8cdd93fec10faaa19fa4e3031d2004e49a4a (patch) | |
tree | efe31d9dc9d9d7499a3bf8e07b6c44f58e57954b /dev-python/testfixtures | |
parent | dev-python/myst_parser: Remove old (diff) | |
download | gentoo-139c8cdd93fec10faaa19fa4e3031d2004e49a4a.tar.gz gentoo-139c8cdd93fec10faaa19fa4e3031d2004e49a4a.tar.bz2 gentoo-139c8cdd93fec10faaa19fa4e3031d2004e49a4a.zip |
dev-python/testfixtures: add 7.0.3
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/testfixtures')
-rw-r--r-- | dev-python/testfixtures/Manifest | 1 | ||||
-rw-r--r-- | dev-python/testfixtures/testfixtures-7.0.3.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/testfixtures/Manifest b/dev-python/testfixtures/Manifest index 9752f53bb789..2952f93c5632 100644 --- a/dev-python/testfixtures/Manifest +++ b/dev-python/testfixtures/Manifest @@ -1 +1,2 @@ DIST testfixtures-7.0.0.tar.gz 126163 BLAKE2B e9f31180878e7645a62b93242344c6cd8335067cf8158b03dbfb46b4ab79d57380809a20d6fdc6a6d4b0aca2d22f5d7c18636607a54c70de4bea39e79a9df6b1 SHA512 5fe56e0a654586c266aab5cebcdbf1e6b9988227605395c3198c759759be0fa98ff3c0a1885711ede5ef6d262a60cd19a29dc6e7a90a1f9f8b57df3cb2d9b97b +DIST testfixtures-7.0.3.tar.gz 127280 BLAKE2B 14725f5a04a77453f1a6e1cb07b2ee8e907dcf49a845c9c75951d77160448c1037c7bfa0a759cf4061d92448203b8f4b14d611cdde32f46269b484985e654e67 SHA512 875aba5102bd43800b2f6464dc93185cd2bb5e117523cb4b3c458b2f8f8eb71f309c0a5266eeca70a7928f9992ccfe7807c67e42531c17fd82ca1c3b838d02a5 diff --git a/dev-python/testfixtures/testfixtures-7.0.3.ebuild b/dev-python/testfixtures/testfixtures-7.0.3.ebuild new file mode 100644 index 000000000000..8d96b3520597 --- /dev/null +++ b/dev-python/testfixtures/testfixtures-7.0.3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +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 + + local EPYTEST_DESELECT=( + # TODO + testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_missing + testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_present + ) + + epytest +} |