Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/django-debug-toolbar/
Date: Sun, 26 Jan 2020 20:11:18
Message-Id: 1580069435.6a639dfa78a055ad5c520c8f438863748832297f.williamh@gentoo
1 commit: 6a639dfa78a055ad5c520c8f438863748832297f
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 26 20:10:35 2020 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 26 20:10:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a639dfa
7
8 dev-python/django-debug-toolbar: 2.1 bump
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 dev-python/django-debug-toolbar/Manifest | 1 +
13 .../django-debug-toolbar-2.1.ebuild | 52 ++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-python/django-debug-toolbar/Manifest b/dev-python/django-debug-toolbar/Manifest
17 index 53d9e796404..ade1d684004 100644
18 --- a/dev-python/django-debug-toolbar/Manifest
19 +++ b/dev-python/django-debug-toolbar/Manifest
20 @@ -1 +1,2 @@
21 DIST django-debug-toolbar-2.0.tar.gz 321249 BLAKE2B cd4f9e7d55deaf404369ba89eaffe0c730a058450c8368e39bfe3f5562019f5978ff33b93dc0463dc0fa6e6ba1047335d45997929dc3d2b576a78ff7cd5f75f0 SHA512 8440705a2e38f2c035a1dde4eb14ec829ead502cbbebcae46889e26877c0843389107bf14249afe9742638c4880b362fd699aed935e271bc1ade8f0a54bfea46
22 +DIST django-debug-toolbar-2.1.tar.gz 321132 BLAKE2B 4765a25bd7aa2578c65cd0918bf47de047e131deb896cdd7b80111e9628e4f7c39ad6dc84fc4114310fb1a8195fea263810b279e8b19b6e621879b8eb2961f82 SHA512 3cfd11b28ec6573977a0476388e8f4d63441c5b390fe974294bc059a83fc95a44c3c8df18a549403756f7929181750aec51d70b38cfe3bce1d40ba24e6b72e9d
23
24 diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-2.1.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-2.1.ebuild
25 new file mode 100644
26 index 00000000000..353fa1f7bd7
27 --- /dev/null
28 +++ b/dev-python/django-debug-toolbar/django-debug-toolbar-2.1.ebuild
29 @@ -0,0 +1,52 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_6 python3_7 )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="A configurable set of panels that display debug information"
40 +HOMEPAGE="
41 + https://pypi.org/project/django-debug-toolbar/
42 + https://github.com/django-debug-toolbar/django-debug-toolbar/"
43 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +SLOT="0"
46 +LICENSE="BSD"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="doc examples"
49 +
50 +RDEPEND="
51 + >=dev-python/django-1.11[${PYTHON_USEDEP}]
52 + >=dev-python/python-sqlparse-0.2.0[${PYTHON_USEDEP}]
53 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
54 +"
55 +DEPEND="${RDEPEND}
56 + dev-python/setuptools[${PYTHON_USEDEP}]
57 +"
58 +
59 +python_prepare_all() {
60 + # Prevent non essential d'loading by intersphinx
61 + sed -e 's:intersphinx_mapping:_&:' -i docs/conf.py || die
62 +
63 + # This prevents distutils from installing 'tests' package, rm magic no more needed
64 + sed -e "/find_packages/s:'tests':'tests.\*', 'tests':" -i setup.py || die
65 +
66 + distutils-r1_python_prepare_all
67 +}
68 +
69 +python_compile_all() {
70 + use doc && emake -C docs html
71 +}
72 +
73 +python_test() {
74 + emake test
75 +}
76 +
77 +python_install_all() {
78 + use doc && local HTML_DOCS=( docs/_build/html/. )
79 + use examples && local EXAMPLES=( example/. )
80 + distutils-r1_python_install_all
81 +}