1 |
commit: 9d36750593a87f1e4fed09d03f6ef95395a3a135 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 4 21:29:01 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 4 21:29:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d367505 |
7 |
|
8 |
dev-python/django: add 2.2.26, 3.2.11, 4.0.1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/830593 |
11 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
12 |
|
13 |
dev-python/django/Manifest | 6 ++ |
14 |
dev-python/django/django-2.2.26.ebuild | 92 +++++++++++++++++++++++++++++ |
15 |
dev-python/django/django-3.2.11.ebuild | 101 ++++++++++++++++++++++++++++++++ |
16 |
dev-python/django/django-4.0.1.ebuild | 103 +++++++++++++++++++++++++++++++++ |
17 |
4 files changed, 302 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
20 |
index 53143ba51c04..a38e29e59a65 100644 |
21 |
--- a/dev-python/django/Manifest |
22 |
+++ b/dev-python/django/Manifest |
23 |
@@ -1,8 +1,14 @@ |
24 |
DIST Django-2.2.25.checksum.txt 2556 BLAKE2B 81743dc51043d12af7dce1f70190a1e53a6be7a8ae6f34fe10fa713321f8d432119f6e4e58679866a8d61dbe640c8c18d97dfa9a3767bbafb5732b9619ecb475 SHA512 1cc2982c3ab83c4af47adad14a07badc301f1b03640c34ac043ca663ac0e8c3c0a9c4de8ebd01e29f2e2c8441ae29826c91faa8f1d4e6f6824e7c849a868ddf7 |
25 |
DIST Django-2.2.25.tar.gz 9185326 BLAKE2B 54df79f3ee75d588cdf46c931a53331894bc113563d2e472cf5472ba66eac1ed62f9e54798dd726837be2ef9598ed20936dbe5e3ff395249e7011af3d551e672 SHA512 c3d377c8d1ce54c93477615cff1cc74fc21791bc9db6b059787e07d0bc25b4d0c1a5804bf781d45ebba1f5f5c280957cff2bba063fea4fc005a1e945b9a7fa8f |
26 |
+DIST Django-2.2.26.checksum.txt 2561 BLAKE2B a974c7d5c8cef76e781e4fa1559725cc7d77de3d16b08ec20d034b38cb39a986b62397532bbc81d4414b3eae8a5487a9fef9615eed73946a54a2b43cdf34a6ad SHA512 7c1d3e04913237ed0dc9955eedd02cfb5113b9536ed0b471d873269ec82099561714a061b74bf212c2e99bbe47e6cf72e639358a2f9134f751fdd7cd53e6ce17 |
27 |
+DIST Django-2.2.26.tar.gz 9207984 BLAKE2B abd520bc5681b8450e51c4248eb97558daa6a87f74915bea8857843a5ea9be6bf3a04c9f5871c35d2076adb644da266c7b88ac39bb2837ff1eaa71f885bd08bf SHA512 2005b081e7347f6f8fd4837219043bd1728cd85aca00c62a16432f63272abec7d30b7461675708fa0f55e3273af5bbd67c26d31934f8a4a38f48e65ea721916f |
28 |
DIST Django-3.1.14.checksum.txt 2556 BLAKE2B bb17e596d076489ac00b6b3eb98ab2949692a82fbc542537f3758c2a53ea4aaeca15bf00c49b363e00d32c2d6face05e6b6e07000219cb8e5ceea2f9d9918ec2 SHA512 a0dd1e9dd739e6891435a02ce4711560c7f0c869a04d540fdb1b90d2cedfdd7d9892e442fb991c4f4cb8ca1862fd8f3a55d88a10645ecf0178d1ea63e17e8e89 |
29 |
DIST Django-3.1.14.tar.gz 9659386 BLAKE2B 5e9317e777e3879f2cea3eea98018884c073eed47c3da9aab09858bc0869f4f34f48d20860c32344446498879b6c9b5cb9d5ba12f0528b703436a2c37325d286 SHA512 5356f453e23a33092221137769a594608771c5832c0dc00453e571fee056438b5366eba720b1fefa33099356980ee56a9665fc6ed7c86f5412e45d6432940e64 |
30 |
DIST Django-3.2.10.checksum.txt 2556 BLAKE2B cdc1b28f213e43b27b0534587b8475bd68979f3c179357a7978109fa85ee0a4bbd5d0bba4625e6850aca603f688483dbdcb102a7411e74394079d2b0c0ef767e SHA512 852f867a5a11f11f98710cf27fdba2774de537dbe1e5edc402214acb65a6e00bf05a7b4fe5eb663cc21aa6ee9da890d7c74172a17c1b084db89ada1ff1db3745 |
31 |
DIST Django-3.2.10.tar.gz 9811341 BLAKE2B a2ed3dda0d88a884443cc07446921fcd9cc9f302b5f578910f2e4027f8d87b92717bb22a7bf73cdb44fb7ddf4c178349e31eee6b796a45727356cde24e41d318 SHA512 6b793a1e544ab988d909d9fc5152d9dbba864c4916bb1f703a07c72f1a945ba93ba53b2f8843b67a16d0e68a736c43faf2f3d8aaa0867de1668c3845c24da7da |
32 |
+DIST Django-3.2.11.checksum.txt 2561 BLAKE2B ece4f40d4d368e2e5ad3cc3ed6072aa8d1693b47d68b76020059508bfc10a30f6291f5e84c68bb959fa973c4e060bf4fd408beefaedc13b68e81b721cb78aab3 SHA512 4f2c12088cfb69f547ba687e9cac34b68a9bd28c793482430bda078f51e780b1272de7ec7816dc31d2fa93bf1c68973f847d67c01414fc8bf07fa6f6ea09dc39 |
33 |
+DIST Django-3.2.11.tar.gz 9821958 BLAKE2B 8f83db578e31c3cbeca67bd826b4c639b346e449de83aba6ddf6bf4eef1fc58ebcbbddf91227012e592516d7796d9f3cc468ae4ce51d684b4aa0a417bb39ddb1 SHA512 ea1ca9a76afcd7e20d0ce518efc0497bbd11f4ab7ed20bd4490561bfcfc6c80db8922a22d8aca94c1dc2743e7366b28a0ae76c3d64f55afc142c38a744dd5120 |
34 |
+DIST Django-4.0.1.checksum.txt 2552 BLAKE2B 123a613af7ff1ccb423c11086501a4419d86cf07c0ae7a4751f12d32f1592916e72e3e47cee13192944a3fc05ce5ee7ac81038118e346545536f313a10783de6 SHA512 979a7c5efafd4d8923d6c769ddd7d73c67482c33fd1a76c64d75aee0a03399e35703e7cbde9f5ad25baab969c33ab53690400e39c879e54066a146944e5d0ee1 |
35 |
+DIST Django-4.0.1.tar.gz 9995484 BLAKE2B af05ec1ec1d079e383efc590de78413b7fd769e7f03c5d4bdcfd26f193a46f783b4c3428558f5d3281cab9a7fa8be4cfecdc4edaf1bea72f37e8e983b3c061f1 SHA512 7753c516b080c10673c3a95e8ec4af00984aeed5f288e4d6e7ab1efd461222a343701b21cfd27bc61ee4e63df5ce3f3be49398490a995f6839e63b40c3fe306c |
36 |
DIST Django-4.0.checksum.txt 2529 BLAKE2B 0488acaf4fe37c99e3bd2370d47c47db81ffcad961212a88e7d53349299fdb3cbdc4a10fea3729d6d2353405216b8073abe8fcb2596b845760f16f2539ba4417 SHA512 26ac6ce6118d60d7bd0f0ef4c24c590eef7a102f546c3163000ad392d8f64b1c24648b8a4110df81170d60e3528466ceae974d408a700cf238dfdb8f9386d1ce |
37 |
DIST Django-4.0.tar.gz 9980403 BLAKE2B fb3cdaa8beae6983930d1e2760d617f1a96e52d7f538269709b07cc31ef049511b0517c1538934cf9ede5e374cd466df05ebabe29f1f8fb8c4c3928e8a08a1fc SHA512 6fec0521ee7da209f3b0fb1487ef4e8ef16bf3bf4ea108efc7a2ee3a9d28c7c33e5e3b2bd92e231641b0be902b45d1fd8b712c48a33496ae2c865a3698b25e14 |
38 |
|
39 |
diff --git a/dev-python/django/django-2.2.26.ebuild b/dev-python/django/django-2.2.26.ebuild |
40 |
new file mode 100644 |
41 |
index 000000000000..9fc3644a1ce4 |
42 |
--- /dev/null |
43 |
+++ b/dev-python/django/django-2.2.26.ebuild |
44 |
@@ -0,0 +1,92 @@ |
45 |
+# Copyright 1999-2022 Gentoo Authors |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI=7 |
49 |
+ |
50 |
+PYTHON_COMPAT=( python3_{7..9} ) |
51 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
52 |
+ |
53 |
+inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
54 |
+ |
55 |
+MY_P=${P^} |
56 |
+DESCRIPTION="High-level Python web framework" |
57 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
58 |
+SRC_URI=" |
59 |
+ https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
60 |
+ verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
61 |
+S="${WORKDIR}/${MY_P}" |
62 |
+ |
63 |
+LICENSE="BSD" |
64 |
+# admin fonts: Roboto (media-fonts/roboto) |
65 |
+LICENSE+=" Apache-2.0" |
66 |
+# admin icons, jquery, xregexp.js |
67 |
+LICENSE+=" MIT" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
70 |
+IUSE="doc sqlite test" |
71 |
+RESTRICT="!test? ( test )" |
72 |
+ |
73 |
+RDEPEND=" |
74 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
75 |
+ >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
76 |
+BDEPEND=" |
77 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
78 |
+ test? ( |
79 |
+ $(python_gen_impl_dep sqlite) |
80 |
+ ${RDEPEND} |
81 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
82 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
83 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
84 |
+ dev-python/pillow[webp,${PYTHON_USEDEP}] |
85 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
86 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
87 |
+ dev-python/tblib[${PYTHON_USEDEP}] |
88 |
+ sys-devel/gettext |
89 |
+ ) |
90 |
+ verify-sig? ( sec-keys/openpgp-keys-django ) |
91 |
+" |
92 |
+ |
93 |
+PATCHES=( |
94 |
+ "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch |
95 |
+) |
96 |
+ |
97 |
+distutils_enable_sphinx docs --no-autodoc |
98 |
+ |
99 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
100 |
+ |
101 |
+src_unpack() { |
102 |
+ if use verify-sig; then |
103 |
+ cd "${DISTDIR}" || die |
104 |
+ verify-sig_verify_signed_checksums \ |
105 |
+ "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
106 |
+ cd "${WORKDIR}" || die |
107 |
+ fi |
108 |
+ |
109 |
+ default |
110 |
+} |
111 |
+ |
112 |
+python_test() { |
113 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
114 |
+ # and don't work with ${BUILD_DIR}/lib. |
115 |
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
116 |
+ die "Tests fail with ${EPYTHON}" |
117 |
+} |
118 |
+ |
119 |
+python_install_all() { |
120 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
121 |
+ bashcomp_alias ${PN}-admin django-admin.py |
122 |
+ |
123 |
+ distutils-r1_python_install_all |
124 |
+} |
125 |
+ |
126 |
+pkg_postinst() { |
127 |
+ optfeature_header "Additional Backend support can be enabled via:" |
128 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
129 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
130 |
+ optfeature_header |
131 |
+ optfeature "GEO Django" "sci-libs/gdal[geos]" |
132 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
133 |
+ optfeature "ImageField Support" dev-python/pillow |
134 |
+ optfeature "Password encryption" dev-python/bcrypt |
135 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
136 |
+} |
137 |
|
138 |
diff --git a/dev-python/django/django-3.2.11.ebuild b/dev-python/django/django-3.2.11.ebuild |
139 |
new file mode 100644 |
140 |
index 000000000000..9ad7526948c5 |
141 |
--- /dev/null |
142 |
+++ b/dev-python/django/django-3.2.11.ebuild |
143 |
@@ -0,0 +1,101 @@ |
144 |
+# Copyright 1999-2022 Gentoo Authors |
145 |
+# Distributed under the terms of the GNU General Public License v2 |
146 |
+ |
147 |
+EAPI=8 |
148 |
+ |
149 |
+PYTHON_COMPAT=( python3_{8..10} ) |
150 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
151 |
+ |
152 |
+inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
153 |
+ |
154 |
+MY_P=${P^} |
155 |
+DESCRIPTION="High-level Python web framework" |
156 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
157 |
+SRC_URI=" |
158 |
+ https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
159 |
+ verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
160 |
+S="${WORKDIR}/${MY_P}" |
161 |
+ |
162 |
+LICENSE="BSD" |
163 |
+# admin fonts: Roboto (media-fonts/roboto) |
164 |
+LICENSE+=" Apache-2.0" |
165 |
+# admin icons, jquery, xregexp.js |
166 |
+LICENSE+=" MIT" |
167 |
+SLOT="0" |
168 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
169 |
+IUSE="doc sqlite test" |
170 |
+RESTRICT="!test? ( test )" |
171 |
+ |
172 |
+RDEPEND=" |
173 |
+ >=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}] |
174 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
175 |
+ >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
176 |
+BDEPEND=" |
177 |
+ test? ( |
178 |
+ $(python_gen_impl_dep sqlite) |
179 |
+ ${RDEPEND} |
180 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
181 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
182 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
183 |
+ dev-python/pillow[webp,${PYTHON_USEDEP}] |
184 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
185 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
186 |
+ dev-python/tblib[${PYTHON_USEDEP}] |
187 |
+ sys-devel/gettext |
188 |
+ !!<dev-python/ipython-7.21.0-r1 |
189 |
+ !!=dev-python/ipython-7.22.0-r0 |
190 |
+ ) |
191 |
+ verify-sig? ( >=sec-keys/openpgp-keys-django-20201201 ) |
192 |
+" |
193 |
+ |
194 |
+PATCHES=( |
195 |
+ "${FILESDIR}"/${PN}-3.1-bashcomp.patch |
196 |
+) |
197 |
+ |
198 |
+distutils_enable_sphinx docs --no-autodoc |
199 |
+ |
200 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
201 |
+ |
202 |
+src_unpack() { |
203 |
+ if use verify-sig; then |
204 |
+ cd "${DISTDIR}" || die |
205 |
+ verify-sig_verify_signed_checksums \ |
206 |
+ "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
207 |
+ cd "${WORKDIR}" || die |
208 |
+ fi |
209 |
+ |
210 |
+ default |
211 |
+} |
212 |
+ |
213 |
+python_prepare_all() { |
214 |
+ # Fails because of warnings |
215 |
+ sed -i 's/test_dumpdata_proxy_with_concrete/_&/' tests/fixtures/tests.py |
216 |
+ |
217 |
+ distutils-r1_python_prepare_all |
218 |
+} |
219 |
+ |
220 |
+python_test() { |
221 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
222 |
+ # and don't work with ${BUILD_DIR}/lib. |
223 |
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
224 |
+ die "Tests fail with ${EPYTHON}" |
225 |
+} |
226 |
+ |
227 |
+python_install_all() { |
228 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
229 |
+ bashcomp_alias ${PN}-admin django-admin.py |
230 |
+ |
231 |
+ distutils-r1_python_install_all |
232 |
+} |
233 |
+ |
234 |
+pkg_postinst() { |
235 |
+ optfeature_header "Additional Backend support can be enabled via:" |
236 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
237 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
238 |
+ optfeature_header |
239 |
+ optfeature "GEO Django" "sci-libs/gdal[geos]" |
240 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
241 |
+ optfeature "ImageField Support" dev-python/pillow |
242 |
+ optfeature "Password encryption" dev-python/bcrypt |
243 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
244 |
+} |
245 |
|
246 |
diff --git a/dev-python/django/django-4.0.1.ebuild b/dev-python/django/django-4.0.1.ebuild |
247 |
new file mode 100644 |
248 |
index 000000000000..69f33e23fb87 |
249 |
--- /dev/null |
250 |
+++ b/dev-python/django/django-4.0.1.ebuild |
251 |
@@ -0,0 +1,103 @@ |
252 |
+# Copyright 1999-2022 Gentoo Authors |
253 |
+# Distributed under the terms of the GNU General Public License v2 |
254 |
+ |
255 |
+EAPI=8 |
256 |
+ |
257 |
+PYTHON_COMPAT=( python3_{8..10} ) |
258 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
259 |
+ |
260 |
+inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
261 |
+ |
262 |
+MY_P=${P^} |
263 |
+DESCRIPTION="High-level Python web framework" |
264 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
265 |
+SRC_URI=" |
266 |
+ https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
267 |
+ verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
268 |
+S="${WORKDIR}/${MY_P}" |
269 |
+ |
270 |
+LICENSE="BSD" |
271 |
+# admin fonts: Roboto (media-fonts/roboto) |
272 |
+LICENSE+=" Apache-2.0" |
273 |
+# admin icons, jquery, xregexp.js |
274 |
+LICENSE+=" MIT" |
275 |
+SLOT="0" |
276 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
277 |
+IUSE="doc sqlite test" |
278 |
+RESTRICT="!test? ( test )" |
279 |
+ |
280 |
+RDEPEND=" |
281 |
+ >=dev-python/asgiref-3.4.1[${PYTHON_USEDEP}] |
282 |
+ >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}] |
283 |
+ $(python_gen_cond_dep ' |
284 |
+ dev-python/backports-zoneinfo[${PYTHON_USEDEP}] |
285 |
+ ' python3_8 pypy3)" |
286 |
+BDEPEND=" |
287 |
+ test? ( |
288 |
+ $(python_gen_impl_dep sqlite) |
289 |
+ ${RDEPEND} |
290 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
291 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
292 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
293 |
+ dev-python/pillow[webp,${PYTHON_USEDEP}] |
294 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
295 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
296 |
+ dev-python/tblib[${PYTHON_USEDEP}] |
297 |
+ sys-devel/gettext |
298 |
+ !!<dev-python/ipython-7.21.0-r1 |
299 |
+ !!=dev-python/ipython-7.22.0-r0 |
300 |
+ ) |
301 |
+ verify-sig? ( >=sec-keys/openpgp-keys-django-20201201 ) |
302 |
+" |
303 |
+ |
304 |
+PATCHES=( |
305 |
+ "${FILESDIR}"/${PN}-4.0-bashcomp.patch |
306 |
+) |
307 |
+ |
308 |
+distutils_enable_sphinx docs --no-autodoc |
309 |
+ |
310 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
311 |
+ |
312 |
+src_unpack() { |
313 |
+ if use verify-sig; then |
314 |
+ cd "${DISTDIR}" || die |
315 |
+ verify-sig_verify_signed_checksums \ |
316 |
+ "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
317 |
+ cd "${WORKDIR}" || die |
318 |
+ fi |
319 |
+ |
320 |
+ default |
321 |
+} |
322 |
+ |
323 |
+python_prepare_all() { |
324 |
+ # Fails because of warnings |
325 |
+ sed -i 's/test_dumpdata_proxy_with_concrete/_&/' tests/fixtures/tests.py |
326 |
+ |
327 |
+ distutils-r1_python_prepare_all |
328 |
+} |
329 |
+ |
330 |
+python_test() { |
331 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
332 |
+ # and don't work with ${BUILD_DIR}/lib. |
333 |
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
334 |
+ die "Tests fail with ${EPYTHON}" |
335 |
+} |
336 |
+ |
337 |
+python_install_all() { |
338 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
339 |
+ bashcomp_alias ${PN}-admin django-admin.py |
340 |
+ |
341 |
+ distutils-r1_python_install_all |
342 |
+} |
343 |
+ |
344 |
+pkg_postinst() { |
345 |
+ optfeature_header "Additional Backend support can be enabled via:" |
346 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
347 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
348 |
+ optfeature_header |
349 |
+ optfeature "GEO Django" "sci-libs/gdal[geos]" |
350 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
351 |
+ optfeature "ImageField Support" dev-python/pillow |
352 |
+ optfeature "Password encryption" dev-python/bcrypt |
353 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
354 |
+} |