Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/testfixtures/
Date: Wed, 06 Jul 2022 19:18:12
Message-Id: 1657134560.741934844f14c3f7579a33782847d5709a7f867d.arthurzam@gentoo
1 commit: 741934844f14c3f7579a33782847d5709a7f867d
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 6 19:09:20 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 6 19:09:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74193484
7
8 dev-python/testfixtures: add 7.0.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/testfixtures/Manifest | 1 +
13 dev-python/testfixtures/testfixtures-7.0.0.ebuild | 52 +++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-python/testfixtures/Manifest b/dev-python/testfixtures/Manifest
17 index fb77740e695d..f7d183dd620c 100644
18 --- a/dev-python/testfixtures/Manifest
19 +++ b/dev-python/testfixtures/Manifest
20 @@ -1 +1,2 @@
21 DIST testfixtures-6.18.5.tar.gz 124944 BLAKE2B 6f1431b3e7201a3c12bf683cfcb123329b186f42a64fdfe3ee7897ab0c5e9ba3995deb88934ae59f0d35b64710ac04b421d07f1c496429b18a0b6a03e600885d SHA512 4d4ec7295bb056102995dc1c872b86059109b114ab921769d3aa2c2de96a3789fef30558f51826655b6d2d668ea1b1bc9f161a4584aab628f59d4da1fa95940e
22 +DIST testfixtures-7.0.0.tar.gz 126163 BLAKE2B e9f31180878e7645a62b93242344c6cd8335067cf8158b03dbfb46b4ab79d57380809a20d6fdc6a6d4b0aca2d22f5d7c18636607a54c70de4bea39e79a9df6b1 SHA512 5fe56e0a654586c266aab5cebcdbf1e6b9988227605395c3198c759759be0fa98ff3c0a1885711ede5ef6d262a60cd19a29dc6e7a90a1f9f8b57df3cb2d9b97b
23
24 diff --git a/dev-python/testfixtures/testfixtures-7.0.0.ebuild b/dev-python/testfixtures/testfixtures-7.0.0.ebuild
25 new file mode 100644
26 index 000000000000..8d96b3520597
27 --- /dev/null
28 +++ b/dev-python/testfixtures/testfixtures-7.0.0.ebuild
29 @@ -0,0 +1,52 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A collection of helpers and mock objects for unit tests and doc tests"
41 +HOMEPAGE="https://pypi.org/project/testfixtures/
42 + https://github.com/Simplistix/testfixtures"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +SLOT="0"
46 +LICENSE="MIT"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
48 +
49 +BDEPEND="
50 + test? (
51 + $(python_gen_impl_dep sqlite)
52 + dev-python/django[${PYTHON_USEDEP}]
53 + dev-python/pytest-django[${PYTHON_USEDEP}]
54 + dev-python/sybil[${PYTHON_USEDEP}]
55 + >=dev-python/twisted-18[${PYTHON_USEDEP}]
56 + dev-python/zope-component[${PYTHON_USEDEP}]
57 + )
58 +"
59 +
60 +distutils_enable_sphinx docs
61 +distutils_enable_tests pytest
62 +
63 +python_prepare_all() {
64 + # kill weird way of declaring build deps
65 + sed -e '/build=/d' -i setup.py || die
66 +
67 + distutils-r1_python_prepare_all
68 +}
69 +
70 +python_test() {
71 + local -x PYTHONPATH="."
72 + local -x DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings
73 +
74 + local EPYTEST_DESELECT=(
75 + # TODO
76 + testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_missing
77 + testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_present
78 + )
79 +
80 + epytest
81 +}