1 |
commit: af6f9816b2f6ae5a2e08fb68752e3de8032f4ff4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 08:46:51 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 08:46:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af6f9816 |
7 |
|
8 |
dev-python/django: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/django/Manifest | 8 -- |
13 |
dev-python/django/django-2.2.28.ebuild | 105 -------------------- |
14 |
dev-python/django/django-3.2.13.ebuild | 109 -------------------- |
15 |
dev-python/django/django-4.0.4.ebuild | 109 -------------------- |
16 |
dev-python/django/django-4.0.5.ebuild | 110 --------------------- |
17 |
.../django/files/django-2.0.7-bashcomp.patch | 41 -------- |
18 |
6 files changed, 482 deletions(-) |
19 |
|
20 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
21 |
index cdbf41a44aae..2820539c0d36 100644 |
22 |
--- a/dev-python/django/Manifest |
23 |
+++ b/dev-python/django/Manifest |
24 |
@@ -1,12 +1,4 @@ |
25 |
-DIST Django-2.2.28.checksum.txt 2554 BLAKE2B 23421008f45040be56c417fb4d31ab8cb72d6d6fb59f12e53de1a7947ffed3a290908a49e7ce08bbb155380472daed93b33c2e90580d3bd0aa3d0d9190478bca SHA512 a7e4b2abf3f3ff79e6a0a55047afc6dcb97a2a27bdd6b25770ad60df3eaa4d260d332ef0b94e63971c500a313c2033127575510e871c5ec648bd045c04353aa1 |
26 |
-DIST Django-2.2.28.tar.gz 9187543 BLAKE2B da6ae04b84a858a678b9740694cf1b638128b783da1aa8443c0e85ea3d7f71104e433de043ff7264575e2df36b6fea7275874ff04391b41eb70ba6c7c78306dc SHA512 228aec6ee8619ff3d0397ff867bd59352900fb95557bd02cfea594b3bc3f813b5bcd13f488b451b0ee79a4d52deab19c5e97aa40f1075ba06db72542d119228e |
27 |
-DIST Django-3.2.13.checksum.txt 2554 BLAKE2B 301d816685f6d97c4a18b4f9d015b063521a7e90a870f1c95ec37ebbc1d4e7311abfee7f7c4aafaa40932334d0eab68fc768dcf21acfffe1d098cabd71ea161a SHA512 ef4a5d0fb8e885cbc2854a4b9b2380dec1cec0e8f6d9bc54179354eb6170755bd6f02268ad5bdc81fdea9d30022422462b0b14894ccc0f37d2e7288aeda83abb |
28 |
-DIST Django-3.2.13.tar.gz 9813985 BLAKE2B eb8319cc225491fc71f719d2eef6daa05114a97b1302093a0cf0f77bb2a51f398e7a034df7aa52c6a64e9796b9cc66b127fccee810cb38508506ba4cd121cfbf SHA512 08f056b18bc04b95d6705cf70c2ecc5be0c1324e0b38582991b907ed5977c4e3d35417ccf4ec06c2436a718e3aae007b015f0d40dd94ce5cfb129a54cceb6578 |
29 |
DIST Django-3.2.14.checksum.txt 2552 BLAKE2B 8949b6bbc05160539ba26e4a9a2b774e450890b1668ee9794b087e97c772a78e010f0f33d7f15b9b43fb749bc7804a6c9ea7f24125b6f93c8af6d408d29e530d SHA512 84de32c72c72f2dd8d7c5e159fb77d82b04fe3cb66f30e808249eb1778305f29c75569c3ebf7e89ffdeca12a68a6f8334830db202f230901ddff1f47a3b03b8f |
30 |
DIST Django-3.2.14.tar.gz 9814965 BLAKE2B d2081621598ca9743b056b752775d8fe87748e7e0ad4e252f9bb0d50bbdd942cf5908aafc7757668a5dd041aafecd94f63b38441e4dbb8e1810babde1aaec436 SHA512 daa18a0a64870789af4627b1cd345fef66d4b227d71cbd9b4766332728c37e3fb17472924c290851f8bc2111efe90c5e22eebf9b6f7a26e77bdc8edaa8e42e16 |
31 |
-DIST Django-4.0.4.checksum.txt 2545 BLAKE2B d82f7b01f49f2b37de3cfd9eb8738e4af69c8eda0c3ed2b6d80a5f876989f36a9335640c5cd5916dcc682fcbf5453c299cb8b3f52e05f2d29413a4c75d274cbc SHA512 9889e086f35192432084fd2ae1104c316e63fa2ab0d34f6954d5eb98b810b5f2e10861a4136c480b54178d2a5453a36f3b893c7720a92f35b44cd578902a8bf9 |
32 |
-DIST Django-4.0.4.tar.gz 10388499 BLAKE2B f839b343bf5c2f83810f2bb22e93a91b18ccc30754589fef2931ebdf29d4600a3bf5493f9e977a3b647097c3a379ea1ef4e0e25366efb54082bc0f43ed00485f SHA512 75ecf5991763237297b458f546d245a25f62272f7013364783aea19469586fa54ce94a16323ac9a6d6b81097f8e962ea7a20f26c7afd8acda842812409215bb1 |
33 |
-DIST Django-4.0.5.checksum.txt 2549 BLAKE2B e0aae25d6e9b15eddc9f6be566d611d03b3cd2aa97020b99372eebbc5183e2f04f27bfc9c1faa9f4b5ec0e4da453a5812a8c8afd7dbb61c10424c458c81bf453 SHA512 45c628253a530df210c94b7c2e8493faaa5eecd68c1f84c4d61936f0f85d590ddc96d64be0313a6353435bed884fde6f6cf0bd54dc04d361dac093f259c5927b |
34 |
-DIST Django-4.0.5.tar.gz 10410720 BLAKE2B 43c8000a54829d639a63a7a17067368b3c6fbda483eae374d4e7f561a3bd3490b754de888e597514f706b1843c8dae2f78453f0efc8eb9a335874993eac44e8f SHA512 915dd5f853544dcd9f85e7d11f50d3f8c34eaf4a6819ec76178bec9466feaf2b386f044fdeebec6bd88366917b8feb6e2512d45b8996c8906326205d4f449f90 |
35 |
DIST Django-4.0.6.checksum.txt 2543 BLAKE2B 4d38a86dc468f1cf9553557073fa6d5aad6875739c5cd3e50dd79954254dc25a0345b32fc771f4db3d566858c58b48d4f0fba434903eae0e0709666627b5e38c SHA512 b701e13371bdc00b61e7ff7f5a2b2d39a9d703616ce79640700e53a252f8aefd8bbf5560b082420bd4ff921110a44ac6a353c61db664b0ee899905d5cf65de59 |
36 |
DIST Django-4.0.6.tar.gz 10389543 BLAKE2B c458b2b2a782d95771df00ed529d4b0ef0f42720f19258d32ea955e90806b61aabf03a5eb39a7a36c5d220af32dd35e78244db4d17a3f074601952905fd5e0fa SHA512 1050511bd9345519d8382a58e4e6ccc39cd41a6777c9575540dcc655f11dd36316cfc2431f94da9ac4a0fa6e41640a9131c8d49df4188a2ffc26f7ff56d40a6a |
37 |
|
38 |
diff --git a/dev-python/django/django-2.2.28.ebuild b/dev-python/django/django-2.2.28.ebuild |
39 |
deleted file mode 100644 |
40 |
index 67a3178ca32c..000000000000 |
41 |
--- a/dev-python/django/django-2.2.28.ebuild |
42 |
+++ /dev/null |
43 |
@@ -1,105 +0,0 @@ |
44 |
-# Copyright 1999-2022 Gentoo Authors |
45 |
-# Distributed under the terms of the GNU General Public License v2 |
46 |
- |
47 |
-EAPI=8 |
48 |
- |
49 |
-DISTUTILS_USE_PEP517=setuptools |
50 |
-PYTHON_COMPAT=( python3_{8..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=" |
58 |
- https://www.djangoproject.com/ |
59 |
- https://pypi.org/project/Django/ |
60 |
-" |
61 |
-SRC_URI=" |
62 |
- https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
63 |
- verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt ) |
64 |
-" |
65 |
-S="${WORKDIR}/${MY_P}" |
66 |
- |
67 |
-LICENSE="BSD" |
68 |
-# admin fonts: Roboto (media-fonts/roboto) |
69 |
-LICENSE+=" Apache-2.0" |
70 |
-# admin icons, jquery, xregexp.js |
71 |
-LICENSE+=" MIT" |
72 |
-SLOT="0" |
73 |
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
74 |
-IUSE="doc sqlite test" |
75 |
-RESTRICT="!test? ( test )" |
76 |
- |
77 |
-RDEPEND=" |
78 |
- dev-python/pytz[${PYTHON_USEDEP}] |
79 |
- >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}] |
80 |
-" |
81 |
-BDEPEND=" |
82 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
83 |
- test? ( |
84 |
- $(python_gen_impl_dep sqlite) |
85 |
- ${RDEPEND} |
86 |
- dev-python/docutils[${PYTHON_USEDEP}] |
87 |
- dev-python/jinja[${PYTHON_USEDEP}] |
88 |
- dev-python/numpy[${PYTHON_USEDEP}] |
89 |
- dev-python/pillow[webp,${PYTHON_USEDEP}] |
90 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
91 |
- dev-python/selenium[${PYTHON_USEDEP}] |
92 |
- dev-python/tblib[${PYTHON_USEDEP}] |
93 |
- sys-devel/gettext |
94 |
- ) |
95 |
- verify-sig? ( sec-keys/openpgp-keys-django ) |
96 |
-" |
97 |
- |
98 |
-PATCHES=( |
99 |
- "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch |
100 |
-) |
101 |
- |
102 |
-distutils_enable_sphinx docs --no-autodoc |
103 |
- |
104 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
105 |
- |
106 |
-src_unpack() { |
107 |
- if use verify-sig; then |
108 |
- cd "${DISTDIR}" || die |
109 |
- verify-sig_verify_signed_checksums \ |
110 |
- "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
111 |
- cd "${WORKDIR}" || die |
112 |
- fi |
113 |
- |
114 |
- default |
115 |
-} |
116 |
- |
117 |
-python_prepare_all() { |
118 |
- # TODO: this suddenly started failing |
119 |
- sed -i -e 's:test_custom_fields:_&:' tests/inspectdb/tests.py || die |
120 |
- |
121 |
- distutils-r1_python_prepare_all |
122 |
-} |
123 |
- |
124 |
-python_test() { |
125 |
- # Tests have non-standard assumptions about PYTHONPATH, |
126 |
- # and don't work with ${BUILD_DIR}/lib. |
127 |
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
128 |
- die "Tests fail with ${EPYTHON}" |
129 |
-} |
130 |
- |
131 |
-python_install_all() { |
132 |
- newbashcomp extras/django_bash_completion ${PN}-admin |
133 |
- bashcomp_alias ${PN}-admin django-admin.py |
134 |
- |
135 |
- distutils-r1_python_install_all |
136 |
-} |
137 |
- |
138 |
-pkg_postinst() { |
139 |
- optfeature_header "Additional Backend support can be enabled via:" |
140 |
- optfeature "MySQL backend support" dev-python/mysqlclient |
141 |
- optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
142 |
- optfeature_header |
143 |
- optfeature "GEO Django" "sci-libs/gdal[geos]" |
144 |
- optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
145 |
- optfeature "ImageField Support" dev-python/pillow |
146 |
- optfeature "Password encryption" dev-python/bcrypt |
147 |
- optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
148 |
-} |
149 |
|
150 |
diff --git a/dev-python/django/django-3.2.13.ebuild b/dev-python/django/django-3.2.13.ebuild |
151 |
deleted file mode 100644 |
152 |
index b83663879072..000000000000 |
153 |
--- a/dev-python/django/django-3.2.13.ebuild |
154 |
+++ /dev/null |
155 |
@@ -1,109 +0,0 @@ |
156 |
-# Copyright 1999-2022 Gentoo Authors |
157 |
-# Distributed under the terms of the GNU General Public License v2 |
158 |
- |
159 |
-EAPI=8 |
160 |
- |
161 |
-DISTUTILS_USE_PEP517=setuptools |
162 |
-PYTHON_COMPAT=( python3_{8..10} ) |
163 |
-PYTHON_REQ_USE='sqlite?,threads(+)' |
164 |
- |
165 |
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
166 |
- |
167 |
-MY_P=${P^} |
168 |
-DESCRIPTION="High-level Python web framework" |
169 |
-HOMEPAGE=" |
170 |
- https://www.djangoproject.com/ |
171 |
- https://pypi.org/project/Django/ |
172 |
-" |
173 |
-SRC_URI=" |
174 |
- https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
175 |
- verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt ) |
176 |
-" |
177 |
-S="${WORKDIR}/${MY_P}" |
178 |
- |
179 |
-LICENSE="BSD" |
180 |
-# admin fonts: Roboto (media-fonts/roboto) |
181 |
-LICENSE+=" Apache-2.0" |
182 |
-# admin icons, jquery, xregexp.js |
183 |
-LICENSE+=" MIT" |
184 |
-SLOT="0" |
185 |
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86 ~x64-macos" |
186 |
-IUSE="doc sqlite test" |
187 |
-RESTRICT="!test? ( test )" |
188 |
- |
189 |
-RDEPEND=" |
190 |
- >=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}] |
191 |
- dev-python/pytz[${PYTHON_USEDEP}] |
192 |
- >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}] |
193 |
-" |
194 |
-BDEPEND=" |
195 |
- test? ( |
196 |
- $(python_gen_impl_dep sqlite) |
197 |
- ${RDEPEND} |
198 |
- dev-python/docutils[${PYTHON_USEDEP}] |
199 |
- dev-python/jinja[${PYTHON_USEDEP}] |
200 |
- dev-python/numpy[${PYTHON_USEDEP}] |
201 |
- dev-python/pillow[webp,${PYTHON_USEDEP}] |
202 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
203 |
- dev-python/selenium[${PYTHON_USEDEP}] |
204 |
- dev-python/tblib[${PYTHON_USEDEP}] |
205 |
- sys-devel/gettext |
206 |
- !!<dev-python/ipython-7.21.0-r1 |
207 |
- !!=dev-python/ipython-7.22.0-r0 |
208 |
- ) |
209 |
- verify-sig? ( >=sec-keys/openpgp-keys-django-20201201 ) |
210 |
-" |
211 |
- |
212 |
-PATCHES=( |
213 |
- "${FILESDIR}"/${PN}-3.1-bashcomp.patch |
214 |
-) |
215 |
- |
216 |
-distutils_enable_sphinx docs --no-autodoc |
217 |
- |
218 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
219 |
- |
220 |
-src_unpack() { |
221 |
- if use verify-sig; then |
222 |
- cd "${DISTDIR}" || die |
223 |
- verify-sig_verify_signed_checksums \ |
224 |
- "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
225 |
- cd "${WORKDIR}" || die |
226 |
- fi |
227 |
- |
228 |
- default |
229 |
-} |
230 |
- |
231 |
-python_prepare_all() { |
232 |
- # Fails because of warnings |
233 |
- sed -i 's/test_dumpdata_proxy_with_concrete/_&/' tests/fixtures/tests.py || die |
234 |
- # TODO: this suddenly started failing |
235 |
- sed -i -e 's:test_custom_fields:_&:' tests/inspectdb/tests.py || die |
236 |
- |
237 |
- distutils-r1_python_prepare_all |
238 |
-} |
239 |
- |
240 |
-python_test() { |
241 |
- # Tests have non-standard assumptions about PYTHONPATH, |
242 |
- # and don't work with ${BUILD_DIR}/lib. |
243 |
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
244 |
- die "Tests fail with ${EPYTHON}" |
245 |
-} |
246 |
- |
247 |
-python_install_all() { |
248 |
- newbashcomp extras/django_bash_completion ${PN}-admin |
249 |
- bashcomp_alias ${PN}-admin django-admin.py |
250 |
- |
251 |
- distutils-r1_python_install_all |
252 |
-} |
253 |
- |
254 |
-pkg_postinst() { |
255 |
- optfeature_header "Additional Backend support can be enabled via:" |
256 |
- optfeature "MySQL backend support" dev-python/mysqlclient |
257 |
- optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
258 |
- optfeature_header |
259 |
- optfeature "GEO Django" "sci-libs/gdal[geos]" |
260 |
- optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
261 |
- optfeature "ImageField Support" dev-python/pillow |
262 |
- optfeature "Password encryption" dev-python/bcrypt |
263 |
- optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
264 |
-} |
265 |
|
266 |
diff --git a/dev-python/django/django-4.0.4.ebuild b/dev-python/django/django-4.0.4.ebuild |
267 |
deleted file mode 100644 |
268 |
index 623879d088f5..000000000000 |
269 |
--- a/dev-python/django/django-4.0.4.ebuild |
270 |
+++ /dev/null |
271 |
@@ -1,109 +0,0 @@ |
272 |
-# Copyright 1999-2022 Gentoo Authors |
273 |
-# Distributed under the terms of the GNU General Public License v2 |
274 |
- |
275 |
-EAPI=8 |
276 |
- |
277 |
-DISTUTILS_USE_PEP517=setuptools |
278 |
-PYTHON_COMPAT=( python3_{8..10} ) |
279 |
-PYTHON_REQ_USE='sqlite?,threads(+)' |
280 |
- |
281 |
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
282 |
- |
283 |
-MY_P=${P^} |
284 |
-DESCRIPTION="High-level Python web framework" |
285 |
-HOMEPAGE=" |
286 |
- https://www.djangoproject.com/ |
287 |
- https://pypi.org/project/Django/ |
288 |
-" |
289 |
-SRC_URI=" |
290 |
- https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
291 |
- verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt ) |
292 |
-" |
293 |
-S="${WORKDIR}/${MY_P}" |
294 |
- |
295 |
-LICENSE="BSD" |
296 |
-# admin fonts: Roboto (media-fonts/roboto) |
297 |
-LICENSE+=" Apache-2.0" |
298 |
-# admin icons, jquery, xregexp.js |
299 |
-LICENSE+=" MIT" |
300 |
-SLOT="0" |
301 |
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86 ~x64-macos" |
302 |
-IUSE="doc sqlite test" |
303 |
-RESTRICT="!test? ( test )" |
304 |
- |
305 |
-RDEPEND=" |
306 |
- >=dev-python/asgiref-3.4.1[${PYTHON_USEDEP}] |
307 |
- >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}] |
308 |
- $(python_gen_cond_dep ' |
309 |
- dev-python/backports-zoneinfo[${PYTHON_USEDEP}] |
310 |
- ' 3.8) |
311 |
-" |
312 |
-BDEPEND=" |
313 |
- test? ( |
314 |
- $(python_gen_impl_dep sqlite) |
315 |
- ${RDEPEND} |
316 |
- dev-python/docutils[${PYTHON_USEDEP}] |
317 |
- dev-python/jinja[${PYTHON_USEDEP}] |
318 |
- dev-python/numpy[${PYTHON_USEDEP}] |
319 |
- dev-python/pillow[webp,${PYTHON_USEDEP}] |
320 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
321 |
- dev-python/selenium[${PYTHON_USEDEP}] |
322 |
- dev-python/tblib[${PYTHON_USEDEP}] |
323 |
- sys-devel/gettext |
324 |
- !!<dev-python/ipython-7.21.0-r1 |
325 |
- !!=dev-python/ipython-7.22.0-r0 |
326 |
- ) |
327 |
- verify-sig? ( >=sec-keys/openpgp-keys-django-20201201 ) |
328 |
-" |
329 |
- |
330 |
-PATCHES=( |
331 |
- "${FILESDIR}"/${PN}-4.0-bashcomp.patch |
332 |
-) |
333 |
- |
334 |
-distutils_enable_sphinx docs --no-autodoc |
335 |
- |
336 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
337 |
- |
338 |
-src_unpack() { |
339 |
- if use verify-sig; then |
340 |
- cd "${DISTDIR}" || die |
341 |
- verify-sig_verify_signed_checksums \ |
342 |
- "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
343 |
- cd "${WORKDIR}" || die |
344 |
- fi |
345 |
- |
346 |
- default |
347 |
-} |
348 |
- |
349 |
-src_prepare() { |
350 |
- # TODO: this suddenly started failing |
351 |
- sed -i -e 's:test_custom_fields:_&:' tests/inspectdb/tests.py || die |
352 |
- |
353 |
- distutils-r1_src_prepare |
354 |
-} |
355 |
- |
356 |
-python_test() { |
357 |
- # Tests have non-standard assumptions about PYTHONPATH, |
358 |
- # and don't work with ${BUILD_DIR}/lib. |
359 |
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
360 |
- die "Tests fail with ${EPYTHON}" |
361 |
-} |
362 |
- |
363 |
-python_install_all() { |
364 |
- newbashcomp extras/django_bash_completion ${PN}-admin |
365 |
- bashcomp_alias ${PN}-admin django-admin.py |
366 |
- |
367 |
- distutils-r1_python_install_all |
368 |
-} |
369 |
- |
370 |
-pkg_postinst() { |
371 |
- optfeature_header "Additional Backend support can be enabled via:" |
372 |
- optfeature "MySQL backend support" dev-python/mysqlclient |
373 |
- optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
374 |
- optfeature_header |
375 |
- optfeature "GEO Django" "sci-libs/gdal[geos]" |
376 |
- optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
377 |
- optfeature "ImageField Support" dev-python/pillow |
378 |
- optfeature "Password encryption" dev-python/bcrypt |
379 |
- optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
380 |
-} |
381 |
|
382 |
diff --git a/dev-python/django/django-4.0.5.ebuild b/dev-python/django/django-4.0.5.ebuild |
383 |
deleted file mode 100644 |
384 |
index 16e1a7824c10..000000000000 |
385 |
--- a/dev-python/django/django-4.0.5.ebuild |
386 |
+++ /dev/null |
387 |
@@ -1,110 +0,0 @@ |
388 |
-# Copyright 1999-2022 Gentoo Authors |
389 |
-# Distributed under the terms of the GNU General Public License v2 |
390 |
- |
391 |
-EAPI=8 |
392 |
- |
393 |
-DISTUTILS_USE_PEP517=setuptools |
394 |
-PYTHON_COMPAT=( python3_{8..11} ) |
395 |
-PYTHON_REQ_USE='sqlite?,threads(+)' |
396 |
- |
397 |
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
398 |
- |
399 |
-MY_P=${P^} |
400 |
-DESCRIPTION="High-level Python web framework" |
401 |
-HOMEPAGE=" |
402 |
- https://www.djangoproject.com/ |
403 |
- https://pypi.org/project/Django/ |
404 |
-" |
405 |
-SRC_URI=" |
406 |
- https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
407 |
- verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt ) |
408 |
-" |
409 |
-S="${WORKDIR}/${MY_P}" |
410 |
- |
411 |
-LICENSE="BSD" |
412 |
-# admin fonts: Roboto (media-fonts/roboto) |
413 |
-LICENSE+=" Apache-2.0" |
414 |
-# admin icons, jquery, xregexp.js |
415 |
-LICENSE+=" MIT" |
416 |
-SLOT="0" |
417 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
418 |
-IUSE="doc sqlite test" |
419 |
-RESTRICT="!test? ( test )" |
420 |
- |
421 |
-RDEPEND=" |
422 |
- >=dev-python/asgiref-3.4.1[${PYTHON_USEDEP}] |
423 |
- >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}] |
424 |
- $(python_gen_cond_dep ' |
425 |
- dev-python/backports-zoneinfo[${PYTHON_USEDEP}] |
426 |
- ' 3.8) |
427 |
-" |
428 |
-BDEPEND=" |
429 |
- test? ( |
430 |
- $(python_gen_impl_dep sqlite) |
431 |
- ${RDEPEND} |
432 |
- dev-python/docutils[${PYTHON_USEDEP}] |
433 |
- dev-python/jinja[${PYTHON_USEDEP}] |
434 |
- dev-python/numpy[${PYTHON_USEDEP}] |
435 |
- dev-python/pillow[webp,${PYTHON_USEDEP}] |
436 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
437 |
- dev-python/selenium[${PYTHON_USEDEP}] |
438 |
- dev-python/tblib[${PYTHON_USEDEP}] |
439 |
- sys-devel/gettext |
440 |
- !!<dev-python/ipython-7.21.0-r1 |
441 |
- !!=dev-python/ipython-7.22.0-r0 |
442 |
- ) |
443 |
- verify-sig? ( >=sec-keys/openpgp-keys-django-20201201 ) |
444 |
-" |
445 |
- |
446 |
-PATCHES=( |
447 |
- "${FILESDIR}"/${PN}-4.0-bashcomp.patch |
448 |
- "${FILESDIR}"/django-4.0.5-py311.patch |
449 |
-) |
450 |
- |
451 |
-distutils_enable_sphinx docs --no-autodoc |
452 |
- |
453 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
454 |
- |
455 |
-src_unpack() { |
456 |
- if use verify-sig; then |
457 |
- cd "${DISTDIR}" || die |
458 |
- verify-sig_verify_signed_checksums \ |
459 |
- "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
460 |
- cd "${WORKDIR}" || die |
461 |
- fi |
462 |
- |
463 |
- default |
464 |
-} |
465 |
- |
466 |
-src_prepare() { |
467 |
- # TODO: this suddenly started failing |
468 |
- sed -i -e 's:test_custom_fields:_&:' tests/inspectdb/tests.py || die |
469 |
- |
470 |
- distutils-r1_src_prepare |
471 |
-} |
472 |
- |
473 |
-python_test() { |
474 |
- # Tests have non-standard assumptions about PYTHONPATH, |
475 |
- # and don't work with ${BUILD_DIR}/lib. |
476 |
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
477 |
- die "Tests fail with ${EPYTHON}" |
478 |
-} |
479 |
- |
480 |
-python_install_all() { |
481 |
- newbashcomp extras/django_bash_completion ${PN}-admin |
482 |
- bashcomp_alias ${PN}-admin django-admin.py |
483 |
- |
484 |
- distutils-r1_python_install_all |
485 |
-} |
486 |
- |
487 |
-pkg_postinst() { |
488 |
- optfeature_header "Additional Backend support can be enabled via:" |
489 |
- optfeature "MySQL backend support" dev-python/mysqlclient |
490 |
- optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
491 |
- optfeature_header |
492 |
- optfeature "GEO Django" "sci-libs/gdal[geos]" |
493 |
- optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
494 |
- optfeature "ImageField Support" dev-python/pillow |
495 |
- optfeature "Password encryption" dev-python/bcrypt |
496 |
- optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
497 |
-} |
498 |
|
499 |
diff --git a/dev-python/django/files/django-2.0.7-bashcomp.patch b/dev-python/django/files/django-2.0.7-bashcomp.patch |
500 |
deleted file mode 100644 |
501 |
index 2d886fe6481c..000000000000 |
502 |
--- a/dev-python/django/files/django-2.0.7-bashcomp.patch |
503 |
+++ /dev/null |
504 |
@@ -1,41 +0,0 @@ |
505 |
---- a/extras/django_bash_completion |
506 |
-+++ b/extras/django_bash_completion |
507 |
-@@ -37,37 +37,4 @@ _django_completion() |
508 |
- COMP_CWORD=$COMP_CWORD \ |
509 |
- DJANGO_AUTO_COMPLETE=1 $1 ) ) |
510 |
- } |
511 |
--complete -F _django_completion -o default django-admin.py manage.py django-admin |
512 |
-- |
513 |
--_python_django_completion() |
514 |
--{ |
515 |
-- if [[ ${COMP_CWORD} -ge 2 ]]; then |
516 |
-- local PYTHON_EXE=${COMP_WORDS[0]##*/} |
517 |
-- echo $PYTHON_EXE | egrep "python([3-9]\.[0-9])?" >/dev/null 2>&1 |
518 |
-- if [[ $? == 0 ]]; then |
519 |
-- local PYTHON_SCRIPT=${COMP_WORDS[1]##*/} |
520 |
-- echo $PYTHON_SCRIPT | egrep "manage\.py|django-admin(\.py)?" >/dev/null 2>&1 |
521 |
-- if [[ $? == 0 ]]; then |
522 |
-- COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]:1}" \ |
523 |
-- COMP_CWORD=$(( COMP_CWORD-1 )) \ |
524 |
-- DJANGO_AUTO_COMPLETE=1 ${COMP_WORDS[*]} ) ) |
525 |
-- fi |
526 |
-- fi |
527 |
-- fi |
528 |
--} |
529 |
-- |
530 |
--# Support for multiple interpreters. |
531 |
--unset pythons |
532 |
--if command -v whereis &>/dev/null; then |
533 |
-- python_interpreters=$(whereis python | cut -d " " -f 2-) |
534 |
-- for python in $python_interpreters; do |
535 |
-- [[ $python != *-config ]] && pythons="${pythons} ${python##*/}" |
536 |
-- done |
537 |
-- unset python_interpreters |
538 |
-- pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ") |
539 |
--else |
540 |
-- pythons=python |
541 |
--fi |
542 |
-- |
543 |
--complete -F _python_django_completion -o default $pythons |
544 |
--unset pythons |
545 |
-+complete -F _django_completion -o default django-admin.py django-admin |