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/django-mptt/files/, dev-python/django-mptt/
Date: Sat, 21 Aug 2021 07:56:56
Message-Id: 1629532576.802bc18da2867e88f290b6889b1d58e1cf21a284.mgorny@gentoo
1 commit: 802bc18da2867e88f290b6889b1d58e1cf21a284
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 21 07:41:25 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 21 07:56:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=802bc18d
7
8 dev-python/django-mptt: Bump to 0.13
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/django-mptt/Manifest | 1 +
13 dev-python/django-mptt/django-mptt-0.13.ebuild | 31 ++++++++++++++++++++++
14 .../files/django-mptt-0.13-test-install.patch | 26 ++++++++++++++++++
15 3 files changed, 58 insertions(+)
16
17 diff --git a/dev-python/django-mptt/Manifest b/dev-python/django-mptt/Manifest
18 index 3aa926d0a79..9f942579e7d 100644
19 --- a/dev-python/django-mptt/Manifest
20 +++ b/dev-python/django-mptt/Manifest
21 @@ -1 +1,2 @@
22 DIST django-mptt-0.11.0.tar.gz 98300 BLAKE2B cbae24143007dfe8913aacf4cbe22bbccdf929617adc31640c2d429d6ea8be727a937be0aa8353e82862b9fe8c571397db4dd3877015eb17c2c5a56172cc66a5 SHA512 21af30007661db1474628b6f8af86a3f6de52494efe1aaf9235f8b1660ba153f0de3ad91ff979588e4b681b00b44652a05146df7d3951d6ee62da38a1900fd89
23 +DIST django-mptt-0.13.gh.tar.gz 302525 BLAKE2B 21b2fde5c81d83321bf7569d2064db87aec3c184f27cf3fc3bd34421be04212188e15f79a575b08aabb3a7b95d116bf3e5f0fb57c56cadf9ad2ac166e8e77845 SHA512 63dbb61dab59d42b5e747f35370a0840d40ed465979d1f93e66561cf4c0726635cae774f87e39cc1ac480847f3ccf0eb65dc8593759a0860d586e334fdd37256
24
25 diff --git a/dev-python/django-mptt/django-mptt-0.13.ebuild b/dev-python/django-mptt/django-mptt-0.13.ebuild
26 new file mode 100644
27 index 00000000000..584beed1786
28 --- /dev/null
29 +++ b/dev-python/django-mptt/django-mptt-0.13.ebuild
30 @@ -0,0 +1,31 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="utilities for modified preorder tree traversal and trees of model instances"
40 +HOMEPAGE="https://github.com/django-mptt/django-mptt"
41 +SRC_URI="
42 + https://github.com/django-mptt/django-mptt/archive/${PV}.tar.gz
43 + -> ${P}.gh.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +
49 +RDEPEND="
50 + >=dev-python/django-1.11[${PYTHON_USEDEP}]
51 + dev-python/django-js-asset[${PYTHON_USEDEP}]
52 +"
53 +
54 +PATCHES=(
55 + "${FILESDIR}"/${P}-test-install.patch
56 +)
57 +
58 +python_test() {
59 + "${EPYTHON}" tests/manage.py test -v2 myapp ||
60 + die "Tests failed with ${EPYTHON}"
61 +}
62
63 diff --git a/dev-python/django-mptt/files/django-mptt-0.13-test-install.patch b/dev-python/django-mptt/files/django-mptt-0.13-test-install.patch
64 new file mode 100644
65 index 00000000000..886d5c6e4eb
66 --- /dev/null
67 +++ b/dev-python/django-mptt/files/django-mptt-0.13-test-install.patch
68 @@ -0,0 +1,26 @@
69 +From 6bc5860575d491e8cf1edbabee7b07f1c072bdba Mon Sep 17 00:00:00 2001
70 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
71 +Date: Sat, 21 Aug 2021 09:45:45 +0200
72 +Subject: [PATCH] Do not install tests.myapp
73 +
74 +Fix options.packages.find.exclude to cover subpackages of "tests"
75 +recursively. Otherwise, tests.myapp is installed.
76 +---
77 + setup.cfg | 1 +
78 + 1 file changed, 1 insertion(+)
79 +
80 +diff --git a/setup.cfg b/setup.cfg
81 +index b4094dc..b8ebee3 100644
82 +--- a/setup.cfg
83 ++++ b/setup.cfg
84 +@@ -44,6 +44,7 @@ tests =
85 + [options.packages.find]
86 + exclude =
87 + tests
88 ++ tests.*
89 + myapp
90 +
91 + [flake8]
92 +--
93 +2.33.0
94 +