1 |
commit: 18e80c1390384fd9da00c8f2f3f6a8a88389ecff |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 6 07:21:47 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 6 07:33:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18e80c13 |
7 |
|
8 |
dev-python/django: Remove vulnerable versions |
9 |
|
10 |
Bug: https://bugs.gentoo.org/788130 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
dev-python/django/Manifest | 8 --- |
14 |
dev-python/django/django-2.2.20.ebuild | 93 -------------------------- |
15 |
dev-python/django/django-3.0.14-r1.ebuild | 106 ------------------------------ |
16 |
dev-python/django/django-3.1.8-r1.ebuild | 99 ---------------------------- |
17 |
dev-python/django/django-3.2.ebuild | 95 -------------------------- |
18 |
5 files changed, 401 deletions(-) |
19 |
|
20 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
21 |
index 8af0f7cca7f..0f3bdddc585 100644 |
22 |
--- a/dev-python/django/Manifest |
23 |
+++ b/dev-python/django/Manifest |
24 |
@@ -1,14 +1,6 @@ |
25 |
-DIST Django-2.2.20.checksum.txt 2553 BLAKE2B 93b0cb2abdf105a0755b960d5047e473a9a70abf89a73d37e86b846227be377b5b0b9f581cd0c18bdcdf92a7968e3e1cac8203558395c76d40e6b6bf899d2e46 SHA512 d573cfd94ea30ae3403d4e59232421f7f26b3c45c5485497b1b9706f1c41b98dbe31c13c02b24ed66bbf34063fa3ac867eaebc4ebc9da2df5f19a190138b2e3d |
26 |
-DIST Django-2.2.20.tar.gz 9182853 BLAKE2B e1f3e685bad3b81ea687ff2b63b8cc874e8bc29a87ee8287104f50914839a9cf6c144693787fe175f84b0fb6d05378fc2382b047c1d02f944dd1609410e95576 SHA512 1d72805b3b80c9bc33a99e213f610aaf9ef90cdefa2341d7970499e831a69d2b26e5ce1e1ba1f9452b64ec768bb3f002968ebc7e26b99d5f8a07cd89b72b6870 |
27 |
DIST Django-2.2.21.checksum.txt 2557 BLAKE2B 76c1588760de34bdd4274eb12abcb60dd476ef1057dd7679ae76f8b7fe916c40c26ab19a821075523c5ae886802af7aa267efafe3d8192ad14ac18557651f5cf SHA512 83d4893e83eaf271f783c177549f8267a2d84969a6d87447f3cb9d9cb36d9acb48564867644c7d95763f9a3888dd9d8647233733b92b432c54e4472f8c34a5fd |
28 |
DIST Django-2.2.21.tar.gz 9209871 BLAKE2B 616215d43fc879bd4f01fb6fec7f3fa47c4630bcc961c8606c01a6e25c2ff27dfdf886db7dc03f8445b52957c1ad858fb8bb5e7cd25c97a927646bba436399de SHA512 37d1f58c23907792e49c827fe1efe4345fd5d74ca85b44d1f492d45c9f4f7cc9ebfbd59dc6a142bb24b666fb89e2ee62a3bc3e2242cd25d5c1e801a3f07a2589 |
29 |
-DIST Django-3.0.14.checksum.txt 2553 BLAKE2B 142b407d6573cac8d07a140370123ce3996433742a67907cedff340741f36b0f82fb577a671929a938967b810d25cf2f491ff85241e6a25782e216eb5571c89f SHA512 3c0ec40c42b23d0213df540eeecb3d8dfc8590ccdbd2c5e8fab598a09dff0408364ea3c8836963e94205e0086c96bd64b8a049a62b9250c6b0c5850cf8d834db |
30 |
-DIST Django-3.0.14.tar.gz 9259569 BLAKE2B 454b91900a9d8cf81f6227adb465e4f9e0da16e4ddab40fa4a1c66ab131832088dd89be129ec97fd70dc8725e826e7da2c657c87c2339db64dd3eba410a91eb3 SHA512 d503f99417479e5c8be928981c14517c519adc88923efaec691cf090b4d9de77424d9ca5dae09a29dae4cb5e962cd86bbfb39cc86c3e910d45bc1757cf169d4a |
31 |
-DIST Django-3.1.8.checksum.txt 2544 BLAKE2B e62097ab681f16fb9732b656a05edc77673e3eefd81112bb7d362857c81f3d3f16baeb354e48f5989be8044df11440436ea39315d8c5f573968e93a54d310a3e SHA512 7c41575a3ee18f0db07b51a02ec780cf51a4cd375879c368f1b3dca405b13d1fec303bd2b85a38732c4a371c8aee7ec49fa5e12d3e1c88295a8c5e6e65f7b9c7 |
32 |
-DIST Django-3.1.8.tar.gz 9651582 BLAKE2B 00d0b80f2508df0d68e4009297f1251138419da0ded8ba51e85596399ffb456ac7351ed212d0f88a317ebb6b706c5ef3ee39579d9029d567ecdcf3a3af992212 SHA512 2b4df8595778b1436fe0077514f3a51d3e298fcdfb7751c8ba8bb7125ece3199a8269b2da96cdcdb230a39707e122a6d8f48444598fb624d5f5c312b12c2d7cc |
33 |
DIST Django-3.1.9.checksum.txt 2548 BLAKE2B 2b733f7ef48b861fd97136a4efa034420e956e506020336ffaec4de7aa7d967d88bcfc5d8574afde317a74f95703378489109334569a84e163fcc635c59378ee SHA512 4558df4393661deb44c0b0c4658aeef3757e8e16dab98b177d0f5102398530dc96d526a955e4f7c88b2d0c40af544e7f9f6deb8d2697c4626c19e16f1860fb06 |
34 |
DIST Django-3.1.9.tar.gz 9673018 BLAKE2B 6212bb48b31566ed2d87f2bdf7922b6e3e93df06b4f8f7ddb1fd20a1a7465856ccc280dad6885f1d2fbf90c6c1919cbc0830416e82e4123fee1c116561d0631c SHA512 7df6afd2539407727a250a981488c80450b882772ecf0edb778182a828d4c80a47b668e64e6e2adc8d21fcab92aef5322cfae3f386369688087774708e75fa13 |
35 |
DIST Django-3.2.1.checksum.txt 2548 BLAKE2B 2f5feeffd4cc664e5ef97de2ae1428a9f432f4480fee846bf8abefbecdd4e418736ca700481e3fc6f114d6c62ff083dae60cefee4e5d8481f97f013fba1e0242 SHA512 32cfa9d890059fda32bbd0062b0333bad4b1b616bd555a99870fad09e7d3c662117b4fd5fb98ac7e634daf199434c2f58fdaeb28d895cf714ae05fbf7eef1b91 |
36 |
DIST Django-3.2.1.tar.gz 9820723 BLAKE2B 968104e3a42310effe8a81b46eb7e17b97aa8f92fddaeef6a1dbee49947d9711daf0c71628fb9c4384a4e7bcb63041a15151f71a368f20934db80513967f0ea2 SHA512 5f3f80047cdcb6c9a07ca0dc9d6d83d190c8c0215311f39e6e441384659c92e4fa42bf4677d297a4ba8520a0bfbd78c4b2ca13cf467c1e1220c0c6a3131ba444 |
37 |
-DIST Django-3.2.checksum.txt 2532 BLAKE2B f36a277a983bed99905a61ab19bff11e50ac253838ec2d9d03fb9a88541d5da530dab60817e6286dcd022cf28ce136c410b06bdd96b96547199d039b3dad922f SHA512 fae42d25963618b68f39218c6c2ed70bf5b0785568e0a7e34a6613015dcf34f433fe571866478dafa601e83150dc10b766186c820e18fd57c213867208fb6800 |
38 |
-DIST Django-3.2.tar.gz 9819119 BLAKE2B 5fdc0a3ee9be8b084427f4fcb226616360eaed110066aa721136045c7139683f94488434c6079e450eec65b06551e3c18d4963ae30eae06acf483a39762c6c82 SHA512 126b9e9e848ed049721163a770af062e829c11d38c8be64288287149e494ac20bb2ecec28055c36cb515fec8c4e574c4e9923b3d7bbccc548a843ce7ff7fd004 |
39 |
|
40 |
diff --git a/dev-python/django/django-2.2.20.ebuild b/dev-python/django/django-2.2.20.ebuild |
41 |
deleted file mode 100644 |
42 |
index 27e7c933884..00000000000 |
43 |
--- a/dev-python/django/django-2.2.20.ebuild |
44 |
+++ /dev/null |
45 |
@@ -1,93 +0,0 @@ |
46 |
-# Copyright 1999-2021 Gentoo Authors |
47 |
-# Distributed under the terms of the GNU General Public License v2 |
48 |
- |
49 |
-EAPI=7 |
50 |
- |
51 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
52 |
-PYTHON_COMPAT=( python3_{7..9} ) |
53 |
-PYTHON_REQ_USE='sqlite?,threads(+)' |
54 |
- |
55 |
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
56 |
- |
57 |
-MY_P=${P^} |
58 |
-DESCRIPTION="High-level Python web framework" |
59 |
-HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
60 |
-SRC_URI=" |
61 |
- https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
62 |
- verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
63 |
-S="${WORKDIR}/${MY_P}" |
64 |
- |
65 |
-LICENSE="BSD" |
66 |
-# admin fonts: Roboto (media-fonts/roboto) |
67 |
-LICENSE+=" Apache-2.0" |
68 |
-# admin icons, jquery, xregexp.js |
69 |
-LICENSE+=" MIT" |
70 |
-SLOT="0" |
71 |
-KEYWORDS="amd64 arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
72 |
-IUSE="doc sqlite test" |
73 |
-RESTRICT="!test? ( test )" |
74 |
- |
75 |
-RDEPEND=" |
76 |
- dev-python/pytz[${PYTHON_USEDEP}] |
77 |
- >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
78 |
-BDEPEND=" |
79 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
80 |
- test? ( |
81 |
- $(python_gen_impl_dep sqlite) |
82 |
- ${RDEPEND} |
83 |
- dev-python/docutils[${PYTHON_USEDEP}] |
84 |
- dev-python/jinja[${PYTHON_USEDEP}] |
85 |
- dev-python/numpy[${PYTHON_USEDEP}] |
86 |
- dev-python/pillow[webp,${PYTHON_USEDEP}] |
87 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
88 |
- dev-python/selenium[${PYTHON_USEDEP}] |
89 |
- dev-python/tblib[${PYTHON_USEDEP}] |
90 |
- sys-devel/gettext |
91 |
- ) |
92 |
- verify-sig? ( app-crypt/openpgp-keys-django ) |
93 |
-" |
94 |
- |
95 |
-PATCHES=( |
96 |
- "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch |
97 |
-) |
98 |
- |
99 |
-distutils_enable_sphinx docs --no-autodoc |
100 |
- |
101 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
102 |
- |
103 |
-src_unpack() { |
104 |
- if use verify-sig; then |
105 |
- cd "${DISTDIR}" || die |
106 |
- verify-sig_verify_signed_checksums \ |
107 |
- "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
108 |
- cd "${WORKDIR}" || die |
109 |
- fi |
110 |
- |
111 |
- default |
112 |
-} |
113 |
- |
114 |
-python_test() { |
115 |
- # Tests have non-standard assumptions about PYTHONPATH, |
116 |
- # and don't work with ${BUILD_DIR}/lib. |
117 |
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
118 |
- die "Tests fail with ${EPYTHON}" |
119 |
-} |
120 |
- |
121 |
-python_install_all() { |
122 |
- newbashcomp extras/django_bash_completion ${PN}-admin |
123 |
- bashcomp_alias ${PN}-admin django-admin.py |
124 |
- |
125 |
- distutils-r1_python_install_all |
126 |
-} |
127 |
- |
128 |
-pkg_postinst() { |
129 |
- optfeature_header "Additional Backend support can be enabled via:" |
130 |
- optfeature "MySQL backend support" dev-python/mysqlclient |
131 |
- optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
132 |
- optfeature_header |
133 |
- optfeature "GEO Django" "sci-libs/gdal[geos]" |
134 |
- optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
135 |
- optfeature "ImageField Support" dev-python/pillow |
136 |
- optfeature "Password encryption" dev-python/bcrypt |
137 |
- optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
138 |
-} |
139 |
|
140 |
diff --git a/dev-python/django/django-3.0.14-r1.ebuild b/dev-python/django/django-3.0.14-r1.ebuild |
141 |
deleted file mode 100644 |
142 |
index 82d86f809c9..00000000000 |
143 |
--- a/dev-python/django/django-3.0.14-r1.ebuild |
144 |
+++ /dev/null |
145 |
@@ -1,106 +0,0 @@ |
146 |
-# Copyright 1999-2021 Gentoo Authors |
147 |
-# Distributed under the terms of the GNU General Public License v2 |
148 |
- |
149 |
-EAPI=7 |
150 |
- |
151 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
152 |
-PYTHON_COMPAT=( python3_{7..9} ) |
153 |
-PYTHON_REQ_USE='sqlite?,threads(+)' |
154 |
- |
155 |
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
156 |
- |
157 |
-MY_P=${P^} |
158 |
-DESCRIPTION="High-level Python web framework" |
159 |
-HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
160 |
-SRC_URI=" |
161 |
- https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
162 |
- verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
163 |
-S="${WORKDIR}/${MY_P}" |
164 |
- |
165 |
-LICENSE="BSD" |
166 |
-# admin fonts: Roboto (media-fonts/roboto) |
167 |
-LICENSE+=" Apache-2.0" |
168 |
-# admin icons, jquery, xregexp.js |
169 |
-LICENSE+=" MIT" |
170 |
-SLOT="0" |
171 |
-KEYWORDS="amd64 arm64 ~ppc ~ppc64 x86" |
172 |
-IUSE="doc sqlite test" |
173 |
-RESTRICT="!test? ( test )" |
174 |
- |
175 |
-RDEPEND=" |
176 |
- || ( |
177 |
- >=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}] |
178 |
- <dev-python/asgiref-3.3.2[${PYTHON_USEDEP}] |
179 |
- ) |
180 |
- dev-python/pytz[${PYTHON_USEDEP}] |
181 |
- >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
182 |
-BDEPEND=" |
183 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
184 |
- test? ( |
185 |
- $(python_gen_impl_dep sqlite) |
186 |
- ${RDEPEND} |
187 |
- dev-python/docutils[${PYTHON_USEDEP}] |
188 |
- dev-python/jinja[${PYTHON_USEDEP}] |
189 |
- dev-python/numpy[${PYTHON_USEDEP}] |
190 |
- dev-python/pillow[webp,${PYTHON_USEDEP}] |
191 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
192 |
- dev-python/selenium[${PYTHON_USEDEP}] |
193 |
- dev-python/tblib[${PYTHON_USEDEP}] |
194 |
- sys-devel/gettext |
195 |
- !!<dev-python/ipython-7.21.0-r1 |
196 |
- !!=dev-python/ipython-7.22.0-r0 |
197 |
- ) |
198 |
- verify-sig? ( app-crypt/openpgp-keys-django ) |
199 |
-" |
200 |
- |
201 |
-PATCHES=( |
202 |
- "${FILESDIR}"/${PN}-3.0.6-bashcomp.patch |
203 |
-) |
204 |
- |
205 |
-distutils_enable_sphinx docs --no-autodoc |
206 |
- |
207 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
208 |
- |
209 |
-src_unpack() { |
210 |
- if use verify-sig; then |
211 |
- cd "${DISTDIR}" || die |
212 |
- verify-sig_verify_signed_checksums \ |
213 |
- "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
214 |
- cd "${WORKDIR}" || die |
215 |
- fi |
216 |
- |
217 |
- default |
218 |
-} |
219 |
- |
220 |
-src_prepare() { |
221 |
- # do not bind to a specific version |
222 |
- # https://bugs.gentoo.org/750695 |
223 |
- sed -i -e 's:asgiref ~= 3.2:asgiref:' setup.py || die |
224 |
- distutils-r1_src_prepare |
225 |
-} |
226 |
- |
227 |
-python_test() { |
228 |
- # Tests have non-standard assumptions about PYTHONPATH, |
229 |
- # and don't work with ${BUILD_DIR}/lib. |
230 |
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
231 |
- die "Tests fail with ${EPYTHON}" |
232 |
-} |
233 |
- |
234 |
-python_install_all() { |
235 |
- newbashcomp extras/django_bash_completion ${PN}-admin |
236 |
- bashcomp_alias ${PN}-admin django-admin.py |
237 |
- |
238 |
- distutils-r1_python_install_all |
239 |
-} |
240 |
- |
241 |
-pkg_postinst() { |
242 |
- optfeature_header "Additional Backend support can be enabled via:" |
243 |
- optfeature "MySQL backend support" dev-python/mysqlclient |
244 |
- optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
245 |
- optfeature_header |
246 |
- optfeature "GEO Django" "sci-libs/gdal[geos]" |
247 |
- optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
248 |
- optfeature "ImageField Support" dev-python/pillow |
249 |
- optfeature "Password encryption" dev-python/bcrypt |
250 |
- optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
251 |
-} |
252 |
|
253 |
diff --git a/dev-python/django/django-3.1.8-r1.ebuild b/dev-python/django/django-3.1.8-r1.ebuild |
254 |
deleted file mode 100644 |
255 |
index 13ba49adbdd..00000000000 |
256 |
--- a/dev-python/django/django-3.1.8-r1.ebuild |
257 |
+++ /dev/null |
258 |
@@ -1,99 +0,0 @@ |
259 |
-# Copyright 1999-2021 Gentoo Authors |
260 |
-# Distributed under the terms of the GNU General Public License v2 |
261 |
- |
262 |
-EAPI=7 |
263 |
- |
264 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
265 |
-PYTHON_COMPAT=( python3_{7..9} ) |
266 |
-PYTHON_REQ_USE='sqlite?,threads(+)' |
267 |
- |
268 |
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
269 |
- |
270 |
-MY_P=${P^} |
271 |
-DESCRIPTION="High-level Python web framework" |
272 |
-HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
273 |
-SRC_URI=" |
274 |
- https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
275 |
- verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
276 |
-S="${WORKDIR}/${MY_P}" |
277 |
- |
278 |
-LICENSE="BSD" |
279 |
-# admin fonts: Roboto (media-fonts/roboto) |
280 |
-LICENSE+=" Apache-2.0" |
281 |
-# admin icons, jquery, xregexp.js |
282 |
-LICENSE+=" MIT" |
283 |
-SLOT="0" |
284 |
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~sparc x86 ~x64-macos" |
285 |
-IUSE="doc sqlite test" |
286 |
-RESTRICT="!test? ( test )" |
287 |
- |
288 |
-RDEPEND=" |
289 |
- || ( |
290 |
- >=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}] |
291 |
- <dev-python/asgiref-3.3.2[${PYTHON_USEDEP}] |
292 |
- ) |
293 |
- dev-python/pytz[${PYTHON_USEDEP}] |
294 |
- >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
295 |
-BDEPEND=" |
296 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
297 |
- test? ( |
298 |
- $(python_gen_impl_dep sqlite) |
299 |
- ${RDEPEND} |
300 |
- dev-python/docutils[${PYTHON_USEDEP}] |
301 |
- dev-python/jinja[${PYTHON_USEDEP}] |
302 |
- dev-python/numpy[${PYTHON_USEDEP}] |
303 |
- dev-python/pillow[webp,${PYTHON_USEDEP}] |
304 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
305 |
- dev-python/selenium[${PYTHON_USEDEP}] |
306 |
- dev-python/tblib[${PYTHON_USEDEP}] |
307 |
- sys-devel/gettext |
308 |
- !!<dev-python/ipython-7.21.0-r1 |
309 |
- !!=dev-python/ipython-7.22.0-r0 |
310 |
- ) |
311 |
- verify-sig? ( >=app-crypt/openpgp-keys-django-20201201 ) |
312 |
-" |
313 |
- |
314 |
-PATCHES=( |
315 |
- "${FILESDIR}"/${PN}-3.1-bashcomp.patch |
316 |
-) |
317 |
- |
318 |
-distutils_enable_sphinx docs --no-autodoc |
319 |
- |
320 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
321 |
- |
322 |
-src_unpack() { |
323 |
- if use verify-sig; then |
324 |
- cd "${DISTDIR}" || die |
325 |
- verify-sig_verify_signed_checksums \ |
326 |
- "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
327 |
- cd "${WORKDIR}" || die |
328 |
- fi |
329 |
- |
330 |
- default |
331 |
-} |
332 |
- |
333 |
-python_test() { |
334 |
- # Tests have non-standard assumptions about PYTHONPATH, |
335 |
- # and don't work with ${BUILD_DIR}/lib. |
336 |
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
337 |
- die "Tests fail with ${EPYTHON}" |
338 |
-} |
339 |
- |
340 |
-python_install_all() { |
341 |
- newbashcomp extras/django_bash_completion ${PN}-admin |
342 |
- bashcomp_alias ${PN}-admin django-admin.py |
343 |
- |
344 |
- distutils-r1_python_install_all |
345 |
-} |
346 |
- |
347 |
-pkg_postinst() { |
348 |
- optfeature_header "Additional Backend support can be enabled via:" |
349 |
- optfeature "MySQL backend support" dev-python/mysqlclient |
350 |
- optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
351 |
- optfeature_header |
352 |
- optfeature "GEO Django" "sci-libs/gdal[geos]" |
353 |
- optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
354 |
- optfeature "ImageField Support" dev-python/pillow |
355 |
- optfeature "Password encryption" dev-python/bcrypt |
356 |
- optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
357 |
-} |
358 |
|
359 |
diff --git a/dev-python/django/django-3.2.ebuild b/dev-python/django/django-3.2.ebuild |
360 |
deleted file mode 100644 |
361 |
index 5e1427cbf5d..00000000000 |
362 |
--- a/dev-python/django/django-3.2.ebuild |
363 |
+++ /dev/null |
364 |
@@ -1,95 +0,0 @@ |
365 |
-# Copyright 1999-2021 Gentoo Authors |
366 |
-# Distributed under the terms of the GNU General Public License v2 |
367 |
- |
368 |
-EAPI=7 |
369 |
- |
370 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
371 |
-PYTHON_COMPAT=( python3_{7..9} ) |
372 |
-PYTHON_REQ_USE='sqlite?,threads(+)' |
373 |
- |
374 |
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
375 |
- |
376 |
-MY_P=${P^} |
377 |
-DESCRIPTION="High-level Python web framework" |
378 |
-HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
379 |
-SRC_URI=" |
380 |
- https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
381 |
- verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
382 |
-S="${WORKDIR}/${MY_P}" |
383 |
- |
384 |
-LICENSE="BSD" |
385 |
-# admin fonts: Roboto (media-fonts/roboto) |
386 |
-LICENSE+=" Apache-2.0" |
387 |
-# admin icons, jquery, xregexp.js |
388 |
-LICENSE+=" MIT" |
389 |
-SLOT="0" |
390 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos" |
391 |
-IUSE="doc sqlite test" |
392 |
-RESTRICT="!test? ( test )" |
393 |
- |
394 |
-RDEPEND=" |
395 |
- >=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}] |
396 |
- dev-python/pytz[${PYTHON_USEDEP}] |
397 |
- >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
398 |
-BDEPEND=" |
399 |
- test? ( |
400 |
- $(python_gen_impl_dep sqlite) |
401 |
- ${RDEPEND} |
402 |
- dev-python/docutils[${PYTHON_USEDEP}] |
403 |
- dev-python/jinja[${PYTHON_USEDEP}] |
404 |
- dev-python/numpy[${PYTHON_USEDEP}] |
405 |
- dev-python/pillow[webp,${PYTHON_USEDEP}] |
406 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
407 |
- dev-python/selenium[${PYTHON_USEDEP}] |
408 |
- dev-python/tblib[${PYTHON_USEDEP}] |
409 |
- sys-devel/gettext |
410 |
- !!<dev-python/ipython-7.21.0-r1 |
411 |
- !!=dev-python/ipython-7.22.0-r0 |
412 |
- ) |
413 |
- verify-sig? ( >=app-crypt/openpgp-keys-django-20201201 ) |
414 |
-" |
415 |
- |
416 |
-PATCHES=( |
417 |
- "${FILESDIR}"/${PN}-3.1-bashcomp.patch |
418 |
-) |
419 |
- |
420 |
-distutils_enable_sphinx docs --no-autodoc |
421 |
- |
422 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
423 |
- |
424 |
-src_unpack() { |
425 |
- if use verify-sig; then |
426 |
- cd "${DISTDIR}" || die |
427 |
- verify-sig_verify_signed_checksums \ |
428 |
- "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
429 |
- cd "${WORKDIR}" || die |
430 |
- fi |
431 |
- |
432 |
- default |
433 |
-} |
434 |
- |
435 |
-python_test() { |
436 |
- # Tests have non-standard assumptions about PYTHONPATH, |
437 |
- # and don't work with ${BUILD_DIR}/lib. |
438 |
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
439 |
- die "Tests fail with ${EPYTHON}" |
440 |
-} |
441 |
- |
442 |
-python_install_all() { |
443 |
- newbashcomp extras/django_bash_completion ${PN}-admin |
444 |
- bashcomp_alias ${PN}-admin django-admin.py |
445 |
- |
446 |
- distutils-r1_python_install_all |
447 |
-} |
448 |
- |
449 |
-pkg_postinst() { |
450 |
- optfeature_header "Additional Backend support can be enabled via:" |
451 |
- optfeature "MySQL backend support" dev-python/mysqlclient |
452 |
- optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
453 |
- optfeature_header |
454 |
- optfeature "GEO Django" "sci-libs/gdal[geos]" |
455 |
- optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
456 |
- optfeature "ImageField Support" dev-python/pillow |
457 |
- optfeature "Password encryption" dev-python/bcrypt |
458 |
- optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
459 |
-} |