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