1 |
commit: 3e4be03473437a468baf1e4ecee6789334dfe6dc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 1 14:14:15 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 1 14:41:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e4be034 |
7 |
|
8 |
dev-python/django: Bump to 3.2.5 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/django/Manifest | 2 + |
13 |
dev-python/django/django-3.2.5.ebuild | 103 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 105 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
17 |
index 8ef2e04741b..5f05b17c07d 100644 |
18 |
--- a/dev-python/django/Manifest |
19 |
+++ b/dev-python/django/Manifest |
20 |
@@ -4,3 +4,5 @@ DIST Django-3.1.12.checksum.txt 2558 BLAKE2B fe31c76517811b5a69bbab6a44966059b40 |
21 |
DIST Django-3.1.12.tar.gz 9676259 BLAKE2B 91781b77b63591a9fc1dffbe341b5400898ccce6267b18236f8680e86f02bb70cc4ab3297fb504e5a809947bd7e68795286b875f319a60ad501d38f4af1f17a7 SHA512 7b58d0bd6ccd6a3222bd58e87ee26646e75b807f284cb259baa5442514c249b3d7695ed0c61e5cc544e121d06a102c5ea1b40694d17e7d4dd3a8437891284c0a |
22 |
DIST Django-3.2.4.checksum.txt 2549 BLAKE2B d7f9e0fb88d9913c611ab3e5c0c276e135d2f2dbf2ad27043a46a9c57ecfd7e7f774b1d60630f47a53fdf455e63b2deb32b4f9caed77f33732cf85c92dc03108 SHA512 67e67719eb24fdf47da9611eb18184283657dca398eaf52963e17b2ff29a2687921171b1c68853fb7e17307d03c01be0d2554931c8bff38e2252c371f81e40b9 |
23 |
DIST Django-3.2.4.tar.gz 9824343 BLAKE2B 25123c228171953e057fe6ba75afadc49c49567e167045c292606e914538f58f9628e48485f611afaacd7e173f36c720391c06662f8dcd796e966f7557f60216 SHA512 5891f77c884cb4bc74f4c9759e2e7be463fc0c661b8dd4d889be0ec46919e59b81f5ce1585c28075b15f03355e66d4b8e7b09001f0c2bea15f8c8aac77d1ea16 |
24 |
+DIST Django-3.2.5.checksum.txt 2543 BLAKE2B 4a07a518bdde4670dc3bf079d8d3cfa32b6580cc06f18306a2127463f3a6a2d8f2a50c4562092439c7c99ccf80dde160b061180826c94d4e1064d5064ff500fe SHA512 b073ff758843f72b6467dae7580941774de9702db02a6fab303cb696cb22c84ca961885792e8ec85545294610f34a4eb52ac3f6521c190d2c339c1957ab4156a |
25 |
+DIST Django-3.2.5.tar.gz 9806547 BLAKE2B d804d758f95f18aac5c44cba9bd9248efa56cba91bea5db2ac89e8c2202ac1fd088b61d6cc98eb7d6d33a95f85983b801c6cc26a3231986a8cf224a0bbeb8a7c SHA512 03d4eee650a857bed298658c68b916beb74690d16b4b28d649c52a7c2d8a61e92f53136d2de3a77fabe1dd01c0e6b3033befc6842f39c222793fb590b1020c13 |
26 |
|
27 |
diff --git a/dev-python/django/django-3.2.5.ebuild b/dev-python/django/django-3.2.5.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..4b43dfbf9ef |
30 |
--- /dev/null |
31 |
+++ b/dev-python/django/django-3.2.5.ebuild |
32 |
@@ -0,0 +1,103 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
40 |
+ |
41 |
+inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
42 |
+ |
43 |
+MY_P=${P^} |
44 |
+DESCRIPTION="High-level Python web framework" |
45 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
46 |
+SRC_URI=" |
47 |
+ https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
48 |
+ verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
49 |
+S="${WORKDIR}/${MY_P}" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+# admin fonts: Roboto (media-fonts/roboto) |
53 |
+LICENSE+=" Apache-2.0" |
54 |
+# admin icons, jquery, xregexp.js |
55 |
+LICENSE+=" MIT" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
58 |
+IUSE="doc sqlite test" |
59 |
+RESTRICT="!test? ( test )" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ >=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}] |
63 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
65 |
+BDEPEND=" |
66 |
+ test? ( |
67 |
+ $(python_gen_impl_dep sqlite) |
68 |
+ ${RDEPEND} |
69 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
70 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
71 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
72 |
+ dev-python/pillow[webp,${PYTHON_USEDEP}] |
73 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
74 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
75 |
+ dev-python/tblib[${PYTHON_USEDEP}] |
76 |
+ sys-devel/gettext |
77 |
+ !!<dev-python/ipython-7.21.0-r1 |
78 |
+ !!=dev-python/ipython-7.22.0-r0 |
79 |
+ ) |
80 |
+ verify-sig? ( >=app-crypt/openpgp-keys-django-20201201 ) |
81 |
+" |
82 |
+ |
83 |
+PATCHES=( |
84 |
+ "${FILESDIR}"/${PN}-3.1-bashcomp.patch |
85 |
+ # From https://github.com/django/django/pull/14228 |
86 |
+ "${FILESDIR}"/${PN}-3.2.3-py310-repr.patch |
87 |
+) |
88 |
+ |
89 |
+distutils_enable_sphinx docs --no-autodoc |
90 |
+ |
91 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
92 |
+ |
93 |
+src_unpack() { |
94 |
+ if use verify-sig; then |
95 |
+ cd "${DISTDIR}" || die |
96 |
+ verify-sig_verify_signed_checksums \ |
97 |
+ "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
98 |
+ cd "${WORKDIR}" || die |
99 |
+ fi |
100 |
+ |
101 |
+ default |
102 |
+} |
103 |
+ |
104 |
+python_prepare_all() { |
105 |
+ # Fails because of warnings |
106 |
+ sed -i 's/test_dumpdata_proxy_with_concrete/_&/' tests/fixtures/tests.py |
107 |
+ |
108 |
+ distutils-r1_python_prepare_all |
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 |
+} |