1 |
commit: b1ff5445660d9b30a2c2a525a33849c4f1ce5fea |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 2 09:21:00 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 2 09:48:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1ff5445 |
7 |
|
8 |
dev-python/django: Bump to 3.1.3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/django/Manifest | 1 + |
13 |
dev-python/django/django-3.1.3.ebuild | 88 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 89 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
17 |
index 86b9fd68476..b65e6a77099 100644 |
18 |
--- a/dev-python/django/Manifest |
19 |
+++ b/dev-python/django/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST Django-3.0.10.tar.gz 8958332 BLAKE2B 0ff17da9d9175b080d81e334e46ec6daaec5e4 |
21 |
DIST Django-3.0.11.tar.gz 8958879 BLAKE2B 078ffde9ae186ae8add2136c303ba38a1b38525481b2272384b8a1bb3428dcf6a31991a86b2078aea6cf250808af399acac5461a33c8e1fda5d6bc552eac478f SHA512 d24e8167f3f871f24ea5e288557a49d71f9b5c398c84e8434d5d3dc224ef62775121a016ad89e997fabe88893adc3a83176211d5b9a9730ec23d37d256aa4fb0 |
22 |
DIST Django-3.1.1.tar.gz 9250616 BLAKE2B 220c53873a70bb30f0ea9b48a70ba71b2de517c11f238e6dc2be20b0e85c99dfdb2ea3b9cfe7b164c7141e0857f19d9d8f93390d7ef36bf34e915ccdb449e8f6 SHA512 5da4282c2ae712ecb2da654a99d46cd60c99aced90f75e681d5a0765b8c08669f27b6c38287bfe7bac028f12ae0643e2be06742752bdc83c62daf82fee60281f |
23 |
DIST Django-3.1.2.tar.gz 9387482 BLAKE2B 77e330b4b42f85ef416e90a2690c6315f2a8d30b5705f64b86f62daabe3ff60b24d9fcf8a1276e7425e5cf0e03833a5ca601d15dc3e1aa32f7b5d7a9792302da SHA512 39115e942c26c9af27c4079f590e15caa86cc5c0e012873d7be23809e39de178b2dd935919dee21bbee153bccb17463abcece1db3b1f7dfa95b7b55879488876 |
24 |
+DIST Django-3.1.3.tar.gz 9253273 BLAKE2B 9284b637ea39e028ebabe44de50dacfe6a89621fcc5eea73b7f470fc998faeb361da428be8f3f3e349f25b8629b5a350f3a5b7c35ea50183b285daf63d8944a7 SHA512 0f49316dc61a299a257313c27051852e948337491047bacb2221c9c753a5cf4bafb2ed686311ad5345dd3045260331afccb013c21503891538340225a469d1ad |
25 |
|
26 |
diff --git a/dev-python/django/django-3.1.3.ebuild b/dev-python/django/django-3.1.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..2c544a79688 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/django/django-3.1.3.ebuild |
31 |
@@ -0,0 +1,88 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+PYTHON_COMPAT=( python3_{6..9} ) |
39 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
40 |
+ |
41 |
+inherit bash-completion-r1 distutils-r1 optfeature |
42 |
+ |
43 |
+MY_PN="Django" |
44 |
+MY_P="${MY_PN}-${PV}" |
45 |
+ |
46 |
+DESCRIPTION="High-level Python web framework" |
47 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
48 |
+SRC_URI="https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz" |
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 ~x86" |
58 |
+IUSE="doc sqlite test" |
59 |
+RESTRICT="!test? ( test )" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ dev-python/asgiref[${PYTHON_USEDEP}] |
63 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
65 |
+BDEPEND=" |
66 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
67 |
+ test? ( |
68 |
+ $(python_gen_impl_dep sqlite) |
69 |
+ ${RDEPEND} |
70 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
71 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
72 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
73 |
+ dev-python/pillow[webp,${PYTHON_USEDEP}] |
74 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
75 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
76 |
+ dev-python/tblib[${PYTHON_USEDEP}] |
77 |
+ sys-devel/gettext |
78 |
+ )" |
79 |
+ |
80 |
+PATCHES=( |
81 |
+ "${FILESDIR}"/${PN}-3.1-bashcomp.patch |
82 |
+ "${FILESDIR}"/django-gettext-0.21.patch |
83 |
+) |
84 |
+ |
85 |
+distutils_enable_sphinx docs --no-autodoc |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ # do not bind to a specific version |
89 |
+ # https://bugs.gentoo.org/750695 |
90 |
+ sed -i -e 's:asgiref ~= 3.2.10:asgiref:' setup.cfg || die |
91 |
+ distutils-r1_src_prepare |
92 |
+} |
93 |
+ |
94 |
+python_test() { |
95 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
96 |
+ # and don't work with ${BUILD_DIR}/lib. |
97 |
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
98 |
+ die "Tests fail with ${EPYTHON}" |
99 |
+} |
100 |
+ |
101 |
+python_install_all() { |
102 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
103 |
+ bashcomp_alias ${PN}-admin django-admin.py |
104 |
+ |
105 |
+ distutils-r1_python_install_all |
106 |
+} |
107 |
+ |
108 |
+pkg_postinst() { |
109 |
+ elog "Additional Backend support can be enabled via" |
110 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
111 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
112 |
+ elog |
113 |
+ elog "Other features can be enhanced by" |
114 |
+ optfeature "GEO Django" "sci-libs/gdal[geos]" |
115 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
116 |
+ optfeature "ImageField Support" dev-python/pillow |
117 |
+ optfeature "Password encryption" dev-python/bcrypt |
118 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
119 |
+} |