1 |
commit: d9e32c2b783aadc8a7d1953b0db3b2cfd3ccacc3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 2 09:19:34 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 2 09:48:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9e32c2b |
7 |
|
8 |
dev-python/django: Bump to 2.2.17 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/django/Manifest | 1 + |
13 |
dev-python/django/django-2.2.17.ebuild | 80 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 81 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
17 |
index bfc7019b205..369f5017a99 100644 |
18 |
--- a/dev-python/django/Manifest |
19 |
+++ b/dev-python/django/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST Django-2.2.16.tar.gz 8884774 BLAKE2B e65074c44e35921f6c40ca9e2a5fee53ce9a956a7503b96a33c8dbb4588bb0928d2e2b605f1117c3c75cdc84d6c7d1bfe52f4e7888fbe300adb5411a55b0ac27 SHA512 eabcdfc17e27c579001e4739268abd13bebbb018db1a7dbe4fb8482d32320b85bd16b3b18428084c0df947094f23f7cb4b12a3a55bc370748d7d8746af22bc3b |
22 |
+DIST Django-2.2.17.tar.gz 8885492 BLAKE2B 30046adc54c31e0e8dac3c573da58e8536246ba6fc5675ec5ad5efc4b170331b893ffe766e7eb404b445d5b37e018e1ac9e2b8e659a5f10c4c165ec9ef5c00d1 SHA512 4ba1e12332cafaa49a087494f9e85e992a414ad153ef935fcf50f1a533ac9c7049a421140552f77b3dbf41c51a4f42aca13dc5f8f479049c21037c541a34320b |
23 |
DIST Django-3.0.10.tar.gz 8958332 BLAKE2B 0ff17da9d9175b080d81e334e46ec6daaec5e4cd48f5d9a614c84b448a6d4b93d304b3fd25bcee665d65f589a8f94cf83f002bbd7a27975d23e3516286784e01 SHA512 fcce2815f966a5eb0f7986c16d065b352c73ea2ea4fc1422d440487d84162c5a93aa45b9173ba5d62d6caee2e976a9ac818f228b47ed7f4f50deda27bac995e9 |
24 |
DIST Django-3.1.1.tar.gz 9250616 BLAKE2B 220c53873a70bb30f0ea9b48a70ba71b2de517c11f238e6dc2be20b0e85c99dfdb2ea3b9cfe7b164c7141e0857f19d9d8f93390d7ef36bf34e915ccdb449e8f6 SHA512 5da4282c2ae712ecb2da654a99d46cd60c99aced90f75e681d5a0765b8c08669f27b6c38287bfe7bac028f12ae0643e2be06742752bdc83c62daf82fee60281f |
25 |
DIST Django-3.1.2.tar.gz 9387482 BLAKE2B 77e330b4b42f85ef416e90a2690c6315f2a8d30b5705f64b86f62daabe3ff60b24d9fcf8a1276e7425e5cf0e03833a5ca601d15dc3e1aa32f7b5d7a9792302da SHA512 39115e942c26c9af27c4079f590e15caa86cc5c0e012873d7be23809e39de178b2dd935919dee21bbee153bccb17463abcece1db3b1f7dfa95b7b55879488876 |
26 |
|
27 |
diff --git a/dev-python/django/django-2.2.17.ebuild b/dev-python/django/django-2.2.17.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..c9d03c703ed |
30 |
--- /dev/null |
31 |
+++ b/dev-python/django/django-2.2.17.ebuild |
32 |
@@ -0,0 +1,80 @@ |
33 |
+# Copyright 1999-2020 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_{6..8} ) |
40 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
41 |
+ |
42 |
+inherit bash-completion-r1 distutils-r1 optfeature |
43 |
+ |
44 |
+MY_PN="Django" |
45 |
+MY_P="${MY_PN}-${PV}" |
46 |
+ |
47 |
+DESCRIPTION="High-level Python web framework" |
48 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
49 |
+SRC_URI="https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz" |
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 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
59 |
+IUSE="doc sqlite test" |
60 |
+RESTRICT="!test? ( test )" |
61 |
+ |
62 |
+RDEPEND=" |
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}-2.0.7-bashcomp.patch |
82 |
+ "${FILESDIR}"/django-gettext-0.21.patch |
83 |
+) |
84 |
+ |
85 |
+distutils_enable_sphinx docs --no-autodoc |
86 |
+ |
87 |
+python_test() { |
88 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
89 |
+ # and don't work with ${BUILD_DIR}/lib. |
90 |
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
91 |
+ die "Tests fail with ${EPYTHON}" |
92 |
+} |
93 |
+ |
94 |
+python_install_all() { |
95 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
96 |
+ bashcomp_alias ${PN}-admin django-admin.py |
97 |
+ |
98 |
+ distutils-r1_python_install_all |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ elog "Additional Backend support can be enabled via" |
103 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
104 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
105 |
+ elog |
106 |
+ elog "Other features can be enhanced by" |
107 |
+ optfeature "GEO Django" "sci-libs/gdal[geos]" |
108 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
109 |
+ optfeature "ImageField Support" dev-python/pillow |
110 |
+ optfeature "Password encryption" dev-python/bcrypt |
111 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
112 |
+} |