1 |
commit: de71bc9c19e92eb74ac7cfaa742e699400f7c9dc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 2 06:03:36 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 2 06:39:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de71bc9c |
7 |
|
8 |
dev-python/django: Bump to 3.1.1 |
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.1.ebuild | 81 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 82 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
17 |
index 57dec56fe01..bf956b19ab0 100644 |
18 |
--- a/dev-python/django/Manifest |
19 |
+++ b/dev-python/django/Manifest |
20 |
@@ -2,4 +2,5 @@ DIST Django-2.2.13.tar.gz 8879757 BLAKE2B 4a7986805c6a3674d47aa82b97f31ae63968dd |
21 |
DIST Django-2.2.15.tar.gz 9023679 BLAKE2B 9619d0ac45a8256a1e605f447b89df6266d67d98969baffd41a9184165e14d57d4edfb898f64a6633cc0f4c23b24a35b16cb446c920d8baf58f771c69d8697ee SHA512 bb91e5b621be54570f8c7676f820ff93fbf0546dea79e035eebd60b70c5c872b0de65395a4606f07af7b9c77de2cf218aaef8ff489fcfabaf5c9b75d28e42dc2 |
22 |
DIST Django-3.0.8.tar.gz 9080731 BLAKE2B b3276527c9c5eba18b380204c498ebd5724e5211640ead9e05284eb013f907ce6799125b29e2030bc37ecd5a1022e6eb3f193eca5e2c6520adef630d6d2114a9 SHA512 92d169fb37883355f1898fc13b54b6732ec14d71f77e4b91db30dd9bfb5df8b34c1c9566af6ddc37e00a9e3eadd38b6a51ff604a4da4285167f66b55215be301 |
23 |
DIST Django-3.0.9.tar.gz 9081099 BLAKE2B 502f9cf1fafff50d92c771e845319f5406722cdb8ca0570688bb96e7fbc765cee319325b0340b722afeb0a304316d30408ca92154623ad4934877cbdc8ee9259 SHA512 1244b9cff26b9e8d9a3d611e0a39981bd1a46d68fa734a58ba12fd51eeb023fb053605372d7b41b51027e4e609f1870d25f7e0584d0449ceeb8d877f674e49b4 |
24 |
+DIST Django-3.1.1.tar.gz 9250616 BLAKE2B 220c53873a70bb30f0ea9b48a70ba71b2de517c11f238e6dc2be20b0e85c99dfdb2ea3b9cfe7b164c7141e0857f19d9d8f93390d7ef36bf34e915ccdb449e8f6 SHA512 5da4282c2ae712ecb2da654a99d46cd60c99aced90f75e681d5a0765b8c08669f27b6c38287bfe7bac028f12ae0643e2be06742752bdc83c62daf82fee60281f |
25 |
DIST Django-3.1.tar.gz 9382872 BLAKE2B 31f2a45cf31f87401ac1834be81cf207ca48f720bf6d6885b774fb51f42616be1346b8ab71d6c0b605d99bc7422f27b21665729b78e00c9cc0ba9cf3e4d788f3 SHA512 31f0821966f4ebc6b2a719b69f1137a32a7228414221e8938a66c9b940465c008761bd380ba9ea603e3693d38c233d6f23afe0cbe5647eb2478844ce2d0e7fd4 |
26 |
|
27 |
diff --git a/dev-python/django/django-3.1.1.ebuild b/dev-python/django/django-3.1.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..722cccf60e2 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/django/django-3.1.1.ebuild |
32 |
@@ -0,0 +1,81 @@ |
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..9} ) |
40 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
41 |
+ |
42 |
+inherit bash-completion-r1 distutils-r1 eutils |
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 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
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 |
+# gettext: https://code.djangoproject.com/ticket/31850 |
67 |
+BDEPEND=" |
68 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
69 |
+ test? ( |
70 |
+ $(python_gen_impl_dep sqlite) |
71 |
+ ${RDEPEND} |
72 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
73 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
74 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
75 |
+ dev-python/pillow[webp,${PYTHON_USEDEP}] |
76 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
77 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
78 |
+ dev-python/tblib[${PYTHON_USEDEP}] |
79 |
+ <sys-devel/gettext-0.21 |
80 |
+ )" |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}"/${PN}-3.1-bashcomp.patch |
84 |
+) |
85 |
+ |
86 |
+distutils_enable_sphinx docs --no-autodoc |
87 |
+ |
88 |
+python_test() { |
89 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
90 |
+ # and don't work with ${BUILD_DIR}/lib. |
91 |
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
92 |
+ die "Tests fail with ${EPYTHON}" |
93 |
+} |
94 |
+ |
95 |
+python_install_all() { |
96 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
97 |
+ bashcomp_alias ${PN}-admin django-admin.py |
98 |
+ |
99 |
+ distutils-r1_python_install_all |
100 |
+} |
101 |
+ |
102 |
+pkg_postinst() { |
103 |
+ elog "Additional Backend support can be enabled via" |
104 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
105 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
106 |
+ echo "" |
107 |
+ elog "Other features can be enhanced by" |
108 |
+ optfeature "GEO Django" "sci-libs/gdal[geos]" |
109 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
110 |
+ optfeature "ImageField Support" dev-python/pillow |
111 |
+ optfeature "Password encryption" dev-python/bcrypt |
112 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
113 |
+} |