1 |
commit: 374a9389903b14befff45a3cce2cd4845640b2bd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 3 04:44:12 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 05:32:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=374a9389 |
7 |
|
8 |
dev-python/django: Bump to 4.1.3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/django/Manifest | 2 + |
13 |
dev-python/django/django-4.1.3.ebuild | 103 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 105 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
17 |
index 59eb487e62a4..f71282342c2b 100644 |
18 |
--- a/dev-python/django/Manifest |
19 |
+++ b/dev-python/django/Manifest |
20 |
@@ -4,3 +4,5 @@ DIST Django-4.0.8.checksum.txt 2552 BLAKE2B af7551bddb966e8e6d338b486c3d2aa5139b |
21 |
DIST Django-4.0.8.tar.gz 10427857 BLAKE2B cbbba3b3044d60fcd6d240e1a181c00d65c1122dc464c86391e39a1eaa866703f41310401f3de291e427eb075dc141fbbc503f414e3627e16715e87f2c10e5c8 SHA512 6357cfc673eb0b993d88b6bed5e43bfea8e0c71d31b141033d06cfe45e91591739ac5c6c57a82cde0216104acb7b21c8c32c1c1bfacad3f62737c8ad10ee175a |
22 |
DIST Django-4.1.2.checksum.txt 2552 BLAKE2B 3786a5824ce981fa66e4173b4fe985ccca4084c3bf2a67cce05d527768c54afec69efb2cd79578fff3dfdcf6dcf26536208dc1ae203348e0648a1d2b27373469 SHA512 01bd342832d626efc03f0704b2e7a8287830cf8ccde53b0d8b9d20c10eb10b6d799611e143196f121b43967e72e08a2db032fec81638c3d58e541ccbd598bb1e |
23 |
DIST Django-4.1.2.tar.gz 10509111 BLAKE2B a6786e214967a3a789fd42218e3422f6985efa8e0f4be807d6afb1dd293ef37a201850af1728e72ae0bf429da3aac41dbfa95926f426e9bfe4b3f7f77a6e2934 SHA512 734d782777269b714f6648509d010649e7df2790e438ab2439ba1c4fc1cc9d37626b77ea9d60806c215ab666feb4555b1360ebcdc8cb16e85da8c950b262bbd7 |
24 |
+DIST Django-4.1.3.checksum.txt 2547 BLAKE2B d4a0c921360871495c16c9f44c0b7fef43729d30c2f4fbdb83c73bafd91532734ec597ff67190df4b4c6a66f2c61967a4fd4a8a51d24a3509550db46f1afec49 SHA512 3271a7cf74d457fb740c27f0c162789d40c9e443d92cf5a63d5fc2c1d2080221732aa74a1b896ac06106d5e625f1d2f0b764f72be05062977c9aeb8fa7932497 |
25 |
+DIST Django-4.1.3.tar.gz 10476258 BLAKE2B 9c4865ba86f846a017a7f382320c965fa67f56dbe660a1bf0e974d5cbde21f6c8a88f80675d884d03424e9cd4f1d89af0c9f76be135e875e003f45b1cff5b604 SHA512 3bc77444f22b9dc029d5f45b6481224b99afe41f43d6306db69d01ca5ba24ed05f6c3bd7b3f5320dd96e6d79a47ac1c8f45a86cd8d3822432be4e73b006026ca |
26 |
|
27 |
diff --git a/dev-python/django/django-4.1.3.ebuild b/dev-python/django/django-4.1.3.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..5a30981b4f33 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/django/django-4.1.3.ebuild |
32 |
@@ -0,0 +1,103 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+DISTUTILS_USE_PEP517=setuptools |
39 |
+PYTHON_COMPAT=( python3_{8..11} ) |
40 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
41 |
+ |
42 |
+inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
43 |
+ |
44 |
+DESCRIPTION="High-level Python web framework" |
45 |
+HOMEPAGE=" |
46 |
+ https://www.djangoproject.com/ |
47 |
+ https://github.com/django/django/ |
48 |
+ https://pypi.org/project/Django/ |
49 |
+" |
50 |
+SRC_URI=" |
51 |
+ https://media.djangoproject.com/releases/$(ver_cut 1-2)/${P^}.tar.gz |
52 |
+ verify-sig? ( https://media.djangoproject.com/pgp/${P^}.checksum.txt ) |
53 |
+" |
54 |
+S="${WORKDIR}/${P^}" |
55 |
+ |
56 |
+LICENSE="BSD" |
57 |
+# admin fonts: Roboto (media-fonts/roboto) |
58 |
+LICENSE+=" Apache-2.0" |
59 |
+# admin icons, jquery, xregexp.js |
60 |
+LICENSE+=" MIT" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
63 |
+IUSE="doc sqlite test" |
64 |
+RESTRICT="!test? ( test )" |
65 |
+ |
66 |
+RDEPEND=" |
67 |
+ <dev-python/asgiref-4[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/asgiref-3.5.2[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}] |
70 |
+ $(python_gen_cond_dep ' |
71 |
+ dev-python/backports-zoneinfo[${PYTHON_USEDEP}] |
72 |
+ ' 3.8) |
73 |
+" |
74 |
+BDEPEND=" |
75 |
+ test? ( |
76 |
+ $(python_gen_impl_dep sqlite) |
77 |
+ ${RDEPEND} |
78 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
79 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
80 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
81 |
+ dev-python/pillow[webp,${PYTHON_USEDEP}] |
82 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
83 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
84 |
+ dev-python/tblib[${PYTHON_USEDEP}] |
85 |
+ sys-devel/gettext |
86 |
+ !!<dev-python/ipython-7.21.0-r1 |
87 |
+ !!=dev-python/ipython-7.22.0-r0 |
88 |
+ ) |
89 |
+ verify-sig? ( >=sec-keys/openpgp-keys-django-20201201 ) |
90 |
+" |
91 |
+ |
92 |
+PATCHES=( |
93 |
+ "${FILESDIR}"/${PN}-4.0-bashcomp.patch |
94 |
+) |
95 |
+ |
96 |
+distutils_enable_sphinx docs --no-autodoc |
97 |
+ |
98 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
99 |
+ |
100 |
+src_unpack() { |
101 |
+ if use verify-sig; then |
102 |
+ cd "${DISTDIR}" || die |
103 |
+ verify-sig_verify_signed_checksums \ |
104 |
+ "${P^}.checksum.txt" sha256 "${P^}.tar.gz" |
105 |
+ cd "${WORKDIR}" || die |
106 |
+ fi |
107 |
+ |
108 |
+ default |
109 |
+} |
110 |
+ |
111 |
+python_test() { |
112 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
113 |
+ # and don't work with ${BUILD_DIR}/lib. |
114 |
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
115 |
+ die "Tests fail with ${EPYTHON}" |
116 |
+} |
117 |
+ |
118 |
+python_install_all() { |
119 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
120 |
+ bashcomp_alias ${PN}-admin django-admin.py |
121 |
+ |
122 |
+ distutils-r1_python_install_all |
123 |
+} |
124 |
+ |
125 |
+pkg_postinst() { |
126 |
+ optfeature_header "Additional Backend support can be enabled via:" |
127 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
128 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
129 |
+ optfeature_header |
130 |
+ optfeature "GEO Django" "sci-libs/gdal[geos]" |
131 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
132 |
+ optfeature "ImageField Support" dev-python/pillow |
133 |
+ optfeature "Password encryption" dev-python/bcrypt |
134 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
135 |
+} |