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: Sat, 21 Aug 2021 08:01:22
Message-Id: 1629532875.75ad8799e41af849bbcbf7da0d7280bfb5ecd0c4.mgorny@gentoo
1 commit: 75ad8799e41af849bbcbf7da0d7280bfb5ecd0c4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 21 07:58:42 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 21 08:01:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75ad8799
7
8 dev-python/testfixtures: Bump to 6.18.1
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.1.ebuild | 41 ++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/testfixtures/Manifest b/dev-python/testfixtures/Manifest
17 index 55cee461e18..6e96254c940 100644
18 --- a/dev-python/testfixtures/Manifest
19 +++ b/dev-python/testfixtures/Manifest
20 @@ -1 +1,2 @@
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
24 diff --git a/dev-python/testfixtures/testfixtures-6.18.1.ebuild b/dev-python/testfixtures/testfixtures-6.18.1.ebuild
25 new file mode 100644
26 index 00000000000..a0872c1838e
27 --- /dev/null
28 +++ b/dev-python/testfixtures/testfixtures-6.18.1.ebuild
29 @@ -0,0 +1,41 @@
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..9} )
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 +python_prepare_all() {
60 + # kill weird way of declaring build deps
61 + sed -e '/build=/d' -i setup.py || die
62 +
63 + distutils-r1_python_prepare_all
64 +}
65 +
66 +python_test() {
67 + local -x PYTHONPATH="."
68 + local -x DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings
69 + epytest -Wignore::DeprecationWarning
70 +}