Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/testfixtures/
Date: Wed, 29 Sep 2021 21:59:56
Message-Id: 1632952779.7fe6258def00c8b0628b0259037d9b2c2fd2445b.mgorny@gentoo
1 commit: 7fe6258def00c8b0628b0259037d9b2c2fd2445b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 29 21:30:05 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 29 21:59:39 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fe6258d
7
8 dev-python/testfixtures: Bump to 6.18.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/testfixtures/Manifest | 1 +
13 dev-python/testfixtures/testfixtures-6.18.3.ebuild | 46 ++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/dev-python/testfixtures/Manifest b/dev-python/testfixtures/Manifest
17 index 03d59c94e95..75c6272ec1b 100644
18 --- a/dev-python/testfixtures/Manifest
19 +++ b/dev-python/testfixtures/Manifest
20 @@ -1 +1,2 @@
21 DIST testfixtures-6.18.2.tar.gz 122026 BLAKE2B 2b30c03ae71a300883ace52dc80e06c6b6610283687fa8df4ded1678991a47e8186de57060458a2fe98fc8eeb8fae8299081697a6471bdedcca2772405c91c6d SHA512 ee27d9944e8e8ec770199b115a50274f7167e9d3d3d866b0d0bbe7fec8a939b25a469ecac0158aaa486b129e078077c5822e7500ad473f98ba59862424413e15
22 +DIST testfixtures-6.18.3.tar.gz 122142 BLAKE2B 014cc2245d5fbe0d39310c8e2c21cd5f289d6ec7a6a561d055e86d4cd25b79f1aa535067746219e2382df2aeec050dfa24cdae674636d92ee61016fa9861e705 SHA512 e556e7cb28f122526ef19550b1e593b61f01923d0be53951344f917f89b3d4cae29e525ceda3d0290bc18c3641b509dd7236e7b55ae50da0157fe11ca9f04cca
23
24 diff --git a/dev-python/testfixtures/testfixtures-6.18.3.ebuild b/dev-python/testfixtures/testfixtures-6.18.3.ebuild
25 new file mode 100644
26 index 00000000000..c2e4ba7a58f
27 --- /dev/null
28 +++ b/dev-python/testfixtures/testfixtures-6.18.3.ebuild
29 @@ -0,0 +1,46 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="A collection of helpers and mock objects for unit tests and doc tests"
39 +HOMEPAGE="https://pypi.org/project/testfixtures/ https://github.com/Simplistix/testfixtures"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 +
42 +SLOT="0"
43 +LICENSE="MIT"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
45 +
46 +BDEPEND="
47 + test? (
48 + $(python_gen_impl_dep sqlite)
49 + dev-python/django[${PYTHON_USEDEP}]
50 + dev-python/pytest-django[${PYTHON_USEDEP}]
51 + dev-python/sybil[${PYTHON_USEDEP}]
52 + >=dev-python/twisted-18[${PYTHON_USEDEP}]
53 + dev-python/zope-component[${PYTHON_USEDEP}]
54 + )"
55 +
56 +distutils_enable_sphinx docs
57 +distutils_enable_tests pytest
58 +
59 +PATCHES=(
60 + # https://github.com/Simplistix/testfixtures/commit/8fb2122eea0f1d0de1ccca7a3a0f5426bc6d4964
61 + "${FILESDIR}/testfixtures-6.18.1-py3.10.patch"
62 +)
63 +
64 +python_prepare_all() {
65 + # kill weird way of declaring build deps
66 + sed -e '/build=/d' -i setup.py || die
67 +
68 + distutils-r1_python_prepare_all
69 +}
70 +
71 +python_test() {
72 + local -x PYTHONPATH="."
73 + local -x DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings
74 + epytest -Wignore::DeprecationWarning
75 +}