Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/testfixtures/
Date: Wed, 08 May 2019 14:41:49
Message-Id: 1557326477.f1a3e8706d97475bcb21cd1d5387f7d3cd2361a3.vdupras@gentoo
1 commit: f1a3e8706d97475bcb21cd1d5387f7d3cd2361a3
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 8 14:36:27 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Wed May 8 14:41:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1a3e870
7
8 dev-python/testfixtures: bump to 6.8.2
9
10 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 dev-python/testfixtures/Manifest | 1 +
14 dev-python/testfixtures/testfixtures-6.8.2.ebuild | 56 +++++++++++++++++++++++
15 2 files changed, 57 insertions(+)
16
17 diff --git a/dev-python/testfixtures/Manifest b/dev-python/testfixtures/Manifest
18 index 4617b7f06cf..fb3dc7057a9 100644
19 --- a/dev-python/testfixtures/Manifest
20 +++ b/dev-python/testfixtures/Manifest
21 @@ -1 +1,2 @@
22 DIST testfixtures-4.9.1.tar.gz 90117 BLAKE2B 6560d4072f8b0108b7d7708c980f40df1a05af88df86dd01926bdf0eab107744fc89d75bdedaced7300c24a52a9d1c0685f5dd3f5f732121ff97af6d0859055a SHA512 20053d22297b7852382a4f2bf6d76bde6489f788a9073aaae407f68bb6b3d7bdc4a045868cf7c99fd294936768745ee7d652c86a4a96c33fb0e95fa0d96d2a59
23 +DIST testfixtures-6.8.2.tar.gz 110838 BLAKE2B 4b83a1459aec4bc4b4dcdff48603958bfd115806ce0c567faad37ac273e93096cf964af08d24b98c1743d6302d1b2f6f9c9498023c781ab3e9170e2eda74cefe SHA512 ce6561d976a0b8f79ae72aaca6f5ffa8d1cae30ad73d3d88625ed4fe55da5f0a913785fa3e9aeb4268dfb243a7b74dddc262554521a71c766089383aa5b0e022
24
25 diff --git a/dev-python/testfixtures/testfixtures-6.8.2.ebuild b/dev-python/testfixtures/testfixtures-6.8.2.ebuild
26 new file mode 100644
27 index 00000000000..9944852b60c
28 --- /dev/null
29 +++ b/dev-python/testfixtures/testfixtures-6.8.2.ebuild
30 @@ -0,0 +1,56 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
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/ https://github.com/Simplistix/testfixtures"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +SLOT="0"
45 +LICENSE="MIT"
46 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="doc test"
48 +
49 +DEPEND="
50 + dev-python/setuptools[${PYTHON_USEDEP}]
51 + doc? (
52 + dev-python/sphinx[${PYTHON_USEDEP}]
53 + $(python_gen_cond_dep 'dev-python/pkginfo[${PYTHON_USEDEP}]' python2_7 pypy )
54 + )
55 + test? (
56 + dev-python/django[${PYTHON_USEDEP}]
57 + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
58 + dev-python/pytest[${PYTHON_USEDEP}]
59 + dev-python/pytest-django[${PYTHON_USEDEP}]
60 + dev-python/sybil[${PYTHON_USEDEP}]
61 + >=dev-python/twisted-18[${PYTHON_USEDEP}]
62 + )"
63 +
64 +python_prepare_all() {
65 + # Prevent un-needed download during build, fix Makefile for doc build
66 + sed -e '/'sphinx.ext.intersphinx'/d' -i docs/conf.py || die
67 +
68 + # remove test that tests the stripped zope-component test_components.ComponentsTests
69 + rm -f testfixtures/tests/test_components.py docs/components.txt || die
70 + distutils-r1_python_prepare_all
71 +}
72 +
73 +python_compile_all() {
74 + use doc && emake -C docs html
75 +}
76 +
77 +python_test() {
78 + PYTHONPATH="." \
79 + DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings \
80 + pytest -vv || die
81 +}
82 +
83 +python_install_all() {
84 + use doc && HTML_DOCS=( docs/_build/html/. )
85 + distutils-r1_python_install_all
86 +}