1 |
commit: 46fb316bf34ef42112569e3ceb59a3564ca4280f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 16:28:50 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 17:04:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46fb316b |
7 |
|
8 |
dev-python/django: Bump to 3.1.6 |
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.1.6.ebuild | 95 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 97 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
17 |
index 4475355a756..5863a878b88 100644 |
18 |
--- a/dev-python/django/Manifest |
19 |
+++ b/dev-python/django/Manifest |
20 |
@@ -6,3 +6,5 @@ DIST Django-3.1.4.checksum.txt 2466 BLAKE2B 635ddd40b542890aef29f53df0fad172e484 |
21 |
DIST Django-3.1.4.tar.gz 9392125 BLAKE2B b583442de50c358e70a49b9ef557d43211e6faee17933a44012dbb9f0dac3ccbf0a91e01a2b8b798fff7ae05100199e9e9c94a81748b41ea13e49d12bb510617 SHA512 02cfaabb25e5f932dcbf659faba2f0afe298e4bee4f510f7adebfff181bdd13c3a0b08e8ce379bcc59326d904be8699db4ce31065d93566b93cad758365207f5 |
22 |
DIST Django-3.1.5.checksum.txt 2428 BLAKE2B 69347177b3c8c592a0b9df832c8f0abebdd4f1ff420f95f63310eb41d3614b241dc8f01b71abfec12faa006a8e69310d31cd68425f57ecf7a02948e83c65e0b3 SHA512 93d3e0de057518b60d9da2c1193ec59a8601f53b5d81a09fa4f6866336fbff85b81c01711eb07544fce30fe17e6dec89e5a5d6a66a929d451bca77cfe172bf19 |
23 |
DIST Django-3.1.5.tar.gz 9257571 BLAKE2B 0ec618753d922e64b2f0e75506843383568c0013a8f7528cf10e9ee49ffc7be8a3effda39c27497510728a16d276db5c620bab22b5a001a86cafdb4d4e2560ea SHA512 b8f0e034fcd282d6e4a9e42565da5d5f4750c900264bed10e72b8c1866370f75fd1bc856d22950e1d3ad03229c38559989a26ccc9f1252ea31d407410134a548 |
24 |
+DIST Django-3.1.6.checksum.txt 2547 BLAKE2B 509254e5d24cdddfb452d922554db12a16ee1c5840d61d17f57c7b209aa71e3b8c8279efec35508cafd059836601d85bca16a33c618b466c438fc323bcbab720 SHA512 d9dd2763285ae9da7cf24bff957ed2cc78ab088fa34ad45fe176bd869fb892a0e50d2b67fb6a0fcda08f85c68602a3b1f76c265e3776d762f2ee1f96f0dd116f |
25 |
+DIST Django-3.1.6.tar.gz 9645871 BLAKE2B 96269d5977d422e62637a956ea8b1af7abc4647350aa4c913e986a7104843d2a4d6c6425deabe2358e819692a721caa18002448b780d4384493bf9078bfbabd1 SHA512 fe5baef4aee51cc84292d1f4d3681cff8170c1307aa172b86faa15771af2c3e0b4dbb24ae671ad8ed31c53ab38ed99c64b5deb69d77fc268d8a232f3463c3221 |
26 |
|
27 |
diff --git a/dev-python/django/django-3.1.6.ebuild b/dev-python/django/django-3.1.6.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..e6482b2c0bd |
30 |
--- /dev/null |
31 |
+++ b/dev-python/django/django-3.1.6.ebuild |
32 |
@@ -0,0 +1,95 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
+PYTHON_COMPAT=( python3_{7..9} ) |
40 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
41 |
+ |
42 |
+inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
43 |
+ |
44 |
+MY_P=${P^} |
45 |
+DESCRIPTION="High-level Python web framework" |
46 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
47 |
+SRC_URI=" |
48 |
+ https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
49 |
+ verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
50 |
+S="${WORKDIR}/${MY_P}" |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+# admin fonts: Roboto (media-fonts/roboto) |
54 |
+LICENSE+=" Apache-2.0" |
55 |
+# admin icons, jquery, xregexp.js |
56 |
+LICENSE+=" MIT" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos" |
59 |
+IUSE="doc sqlite test" |
60 |
+RESTRICT="!test? ( test )" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ dev-python/asgiref[${PYTHON_USEDEP}] |
64 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
66 |
+BDEPEND=" |
67 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
68 |
+ test? ( |
69 |
+ $(python_gen_impl_dep sqlite) |
70 |
+ ${RDEPEND} |
71 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
72 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
73 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
74 |
+ dev-python/pillow[webp,${PYTHON_USEDEP}] |
75 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
76 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
77 |
+ dev-python/tblib[${PYTHON_USEDEP}] |
78 |
+ sys-devel/gettext |
79 |
+ ) |
80 |
+ verify-sig? ( >=app-crypt/openpgp-keys-django-20201201 ) |
81 |
+" |
82 |
+ |
83 |
+PATCHES=( |
84 |
+ "${FILESDIR}"/${PN}-3.1-bashcomp.patch |
85 |
+) |
86 |
+ |
87 |
+distutils_enable_sphinx docs --no-autodoc |
88 |
+ |
89 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
90 |
+ |
91 |
+src_unpack() { |
92 |
+ if use verify-sig; then |
93 |
+ cd "${DISTDIR}" || die |
94 |
+ verify-sig_verify_signed_checksums \ |
95 |
+ "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
96 |
+ cd "${WORKDIR}" || die |
97 |
+ fi |
98 |
+ |
99 |
+ default |
100 |
+} |
101 |
+ |
102 |
+python_test() { |
103 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
104 |
+ # and don't work with ${BUILD_DIR}/lib. |
105 |
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
106 |
+ die "Tests fail with ${EPYTHON}" |
107 |
+} |
108 |
+ |
109 |
+python_install_all() { |
110 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
111 |
+ bashcomp_alias ${PN}-admin django-admin.py |
112 |
+ |
113 |
+ distutils-r1_python_install_all |
114 |
+} |
115 |
+ |
116 |
+pkg_postinst() { |
117 |
+ elog "Additional Backend support can be enabled via" |
118 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
119 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
120 |
+ elog |
121 |
+ elog "Other features can be enhanced by" |
122 |
+ optfeature "GEO Django" "sci-libs/gdal[geos]" |
123 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
124 |
+ optfeature "ImageField Support" dev-python/pillow |
125 |
+ optfeature "Password encryption" dev-python/bcrypt |
126 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
127 |
+} |