Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/logbook/files/, dev-python/logbook/
Date: Wed, 15 Aug 2018 14:03:43
Message-Id: 1534341798.c7c611da821cd3c51af7200ac3c3cc41d221b17e.sping@gentoo
1 commit: c7c611da821cd3c51af7200ac3c3cc41d221b17e
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 15 14:01:22 2018 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 15 14:03:18 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c611da
7
8 dev-python/logbook: 1.4.0
9
10 Also fix patch to support EAPI 6.
11
12 Bug: https://bugs.gentoo.org/661594
13 Package-Manager: Portage-2.3.46, Repoman-2.3.10
14
15 dev-python/logbook/Manifest | 1 +
16 .../logbook/files/logbook-0.4.2-objectsinv.patch | 4 +-
17 dev-python/logbook/logbook-1.4.0.ebuild | 47 ++++++++++++++++++++++
18 3 files changed, 50 insertions(+), 2 deletions(-)
19
20 diff --git a/dev-python/logbook/Manifest b/dev-python/logbook/Manifest
21 index f6190524760..ca98c6c3145 100644
22 --- a/dev-python/logbook/Manifest
23 +++ b/dev-python/logbook/Manifest
24 @@ -1,2 +1,3 @@
25 DIST logbook-0.9.1.tar.gz 106615 BLAKE2B 4100bda341a1c946bbabfb6ff423b4906f0ada754ebcbaefca93d768bd8c5135a9b1e00207fba4b13ce297cb7eca27364000e9f8b9f52935608af6c9586302aa SHA512 d136dd5a7219a23a50db857919d794e7b721cc629443ac2bf92374aef68889d8a7146886fc4484c6d0dea56ec5c1c1ccca3f0b20310c2e12dba9d40dcac9c188
26 DIST logbook-1.1.0.tar.gz 367541 BLAKE2B 26e27e94f1238c9188fc66b6eb1f5622d96e1c0db97817dba30c8c70107544ea80ab1f11b71592db6a8e2a9c5d32dd659782a532cb7d263c2f042b41ef88d2ad SHA512 55ec7a026a08baed405e29d7cdcc9d3cc423c9faf13788c2447ac7ccff688de9bd9e332ad78077b1eef8bc8ad9aea572f9c124888f46ecabc2abf22d8ac9086b
27 +DIST logbook-1.4.0.tar.gz 369335 BLAKE2B 02398be49d2a12aadbcde90561afe6ac08060877922fa04b27f08587115aef8faf47bfc352fc005b8a986ab619289c8544fe53a84e0e863a09c992685f78739c SHA512 3ea969e9e2075e34a915566be906266b408671657e4cecbe47663c28f2212c0522b0f0eb2832fbc4fb906f70c8e53d3cdbe65923dafe53a77545b8126ab539f2
28
29 diff --git a/dev-python/logbook/files/logbook-0.4.2-objectsinv.patch b/dev-python/logbook/files/logbook-0.4.2-objectsinv.patch
30 index 28b26f0bc9a..2575f862ede 100644
31 --- a/dev-python/logbook/files/logbook-0.4.2-objectsinv.patch
32 +++ b/dev-python/logbook/files/logbook-0.4.2-objectsinv.patch
33 @@ -1,7 +1,7 @@
34 Prevent unwanted d'loading of un-needed objects.inv files
35 diff -ur logbook-0.4.2.orig/docs/conf.py logbook-0.4.2/docs/conf.py
36 ---- docs/conf.py 2013-06-02 19:31:32.000000000 +0800
37 -+++ docs/conf.py 2013-06-30 10:50:38.604402792 +0800
38 +--- logbook-0.4.2/docs/conf.py 2013-06-02 19:31:32.000000000 +0800
39 ++++ logbook-0.4.2/docs/conf.py 2013-06-30 10:50:38.604402792 +0800
40 @@ -219,6 +219,3 @@
41 [u'Armin Ronacher, Georg Brandl'], 1)
42 ]
43
44 diff --git a/dev-python/logbook/logbook-1.4.0.ebuild b/dev-python/logbook/logbook-1.4.0.ebuild
45 new file mode 100644
46 index 00000000000..72ffa78547a
47 --- /dev/null
48 +++ b/dev-python/logbook/logbook-1.4.0.ebuild
49 @@ -0,0 +1,47 @@
50 +# Copyright 1999-2018 Gentoo Foundation
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=6
54 +
55 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy )
56 +
57 +inherit distutils-r1
58 +
59 +DESCRIPTION="A logging replacement for Python"
60 +HOMEPAGE="https://logbook.readthedocs.io/en/stable/
61 + https://github.com/getlogbook/logbook
62 + https://pypi.org/project/Logbook/"
63 +SRC_URI="https://github.com/getlogbook/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
64 +
65 +LICENSE="BSD"
66 +SLOT="0"
67 +KEYWORDS="~amd64 ~x86"
68 +IUSE="doc test"
69 +DISTUTILS_IN_SOURCE_BUILD=1
70 +
71 +DEPEND="
72 + dev-python/setuptools[${PYTHON_USEDEP}]
73 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )
74 + doc? ( >=dev-python/sphinx-1.1.3-r3[${PYTHON_USEDEP}] )"
75 +RDEPEND="dev-python/redis-py[${PYTHON_USEDEP}]"
76 +
77 +PATCHES=( "${FILESDIR}"/${PN}-0.4.2-objectsinv.patch )
78 +
79 +python_prepare_all() {
80 + # Delete test file requiring local connection to redis server
81 + rm tests/test_queues.py || die
82 + distutils-r1_python_prepare_all
83 +}
84 +
85 +python_compile_all() {
86 + use doc && emake -C docs html
87 +}
88 +
89 +python_test() {
90 + py.test tests || die "Tests failed under ${EPYTHON}"
91 +}
92 +
93 +python_install_all() {
94 + use doc && HTML_DOCS=( docs/_build/html/. )
95 + distutils-r1_python_install_all
96 +}