1 |
commit: e83267a2c0c0405aea8fe70b9011393514d05eff |
2 |
Author: Hanno Böck <hanno <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 27 15:19:40 2020 +0000 |
4 |
Commit: Hanno Böck <hanno <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 27 15:19:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e83267a2 |
7 |
|
8 |
dev-python/django-debug-toolbar: Bump and python 3.8 support |
9 |
|
10 |
Closes: https://bugs.gentoo.org/744490 |
11 |
Signed-off-by: Hanno Böck <hanno <AT> gentoo.org> |
12 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
13 |
|
14 |
dev-python/django-debug-toolbar/Manifest | 1 + |
15 |
.../django-debug-toolbar-3.1.ebuild | 54 ++++++++++++++++++++++ |
16 |
2 files changed, 55 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/django-debug-toolbar/Manifest b/dev-python/django-debug-toolbar/Manifest |
19 |
index c0d4d33f4d0..b32928778e0 100644 |
20 |
--- a/dev-python/django-debug-toolbar/Manifest |
21 |
+++ b/dev-python/django-debug-toolbar/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST django-debug-toolbar-2.2.tar.gz 322475 BLAKE2B cff55a26f4d95353edff3d7f678a052c262636afc94307e22e4d9dc1b6bbe3c0bc1a4997c4904a397de97218b462d52e67ac0f80bb05de7736cb278c7dca58ee SHA512 5cd9e50852bd7efeb83879c5e9fe10fe6df5087b746e9cb2a0e13e66b3fe0a815a6eaea4b273258e7e682149bc29ad8979268d2be263539c522624e3f16aa5f5 |
24 |
+DIST django-debug-toolbar-3.1.tar.gz 228867 BLAKE2B af3d8011136ba30e690e03548d757405e9cd89fb5473b277720a3151149e92be212e50a6ec3d95903382716c9594405a1e93a7a1bf231f220f4b5c8ae1e38480 SHA512 c4cfa3cd98adfba7362e259e18a0240b886f294ba10f5c64e12887b00d4dc952e9b80cac0f78e7193a15566585f43d988f6d287e4d0dcc84c4f8395c7006e2b0 |
25 |
|
26 |
diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-3.1.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-3.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5f9abc45151 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/django-debug-toolbar/django-debug-toolbar-3.1.ebuild |
31 |
@@ -0,0 +1,54 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="A configurable set of panels that display debug information" |
42 |
+HOMEPAGE=" |
43 |
+ https://pypi.org/project/django-debug-toolbar/ |
44 |
+ https://github.com/django-debug-toolbar/django-debug-toolbar/" |
45 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+SLOT="0" |
48 |
+LICENSE="BSD" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="doc examples test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ >=dev-python/django-1.11[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/sqlparse-0.2.0[${PYTHON_USEDEP}] |
56 |
+" |
57 |
+DEPEND=" |
58 |
+ test? ( |
59 |
+ $(python_gen_impl_dep sqlite) |
60 |
+ ${RDEPEND} |
61 |
+ ) |
62 |
+" |
63 |
+ |
64 |
+distutils_enable_sphinx docs |
65 |
+ |
66 |
+python_prepare_all() { |
67 |
+ # This prevents distutils from installing 'tests' package, rm magic no more needed |
68 |
+ sed -e "/find_packages/s:'tests':'tests.\*', 'tests':" -i setup.py || die |
69 |
+ |
70 |
+ distutils-r1_python_prepare_all |
71 |
+} |
72 |
+ |
73 |
+python_test() { |
74 |
+ emake test |
75 |
+} |
76 |
+ |
77 |
+python_install_all() { |
78 |
+ if use examples; then |
79 |
+ docinto examples |
80 |
+ dodoc -r example/. |
81 |
+ docompress -x /usr/share/doc/${PF}/examples |
82 |
+ fi |
83 |
+ |
84 |
+ distutils-r1_python_install_all |
85 |
+} |