1 |
commit: 72d7d2e8b3e7e83e13fe0d6cbb28349c7b6fd875 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 5 19:51:33 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 5 20:22:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72d7d2e8 |
7 |
|
8 |
dev-python/django: Bump to 3.0.6 |
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.0.6.ebuild | 74 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
17 |
index a8a7efe0bd6..9bb5555c94e 100644 |
18 |
--- a/dev-python/django/Manifest |
19 |
+++ b/dev-python/django/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST Django-2.2.11.tar.gz 9010479 BLAKE2B 9df126f62368c43a64fcdbf9d3831c78dd37e41eb88670517eeec84043083cc437d95301d86798b5945313b515d63bd12cba8484e74b6da2311af2e86ce87adc SHA512 b33ece4606e5a23626caee121018522166a0e1f32bd41ea4eb3d4c1f624943990a07e04c5a4f5d52958e733790178474e9314d346ce1e4d5d6e49ac2a700c857 |
22 |
DIST Django-2.2.12.tar.gz 8877061 BLAKE2B 7d92e7f871606aaacc82528f3d7c26d134a7b1216ae983a8da93cde20eac65729eaea1de8d3a7a598df8f9f228c3d20a5da9cb53a149d1064c58824626fd8aaf SHA512 3c01b606e34dd0abe5a03bc55bf7d9328a0da370c22bac4d15c3468512b26ad57fd07d942a2a34129ce18bcc5e86c67e163d0f4d5b7ea47e3e899ba7617ab28c |
23 |
+DIST Django-3.0.6.tar.gz 9070990 BLAKE2B 9f918f64baecc5fe18ec08293da0f81a5e6ba9dc034b7e43f11ac9e67fa8d16c155878342babad9fca8ed30caf5ec3335756e2e0312c463b46a23b4db92fd4a0 SHA512 4c92c51386919c389037d6c6d1de3cb6ec443bd1f216f20797fb20fb24ea8d021701a03805ba693deadfa82b1aee38ae0d7fc03cae94cd744b1d1fa47ddc46ad |
24 |
|
25 |
diff --git a/dev-python/django/django-3.0.6.ebuild b/dev-python/django/django-3.0.6.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..0482e460c9a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/django/django-3.0.6.ebuild |
30 |
@@ -0,0 +1,74 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
37 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
38 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
39 |
+ |
40 |
+inherit bash-completion-r1 distutils-r1 eutils |
41 |
+ |
42 |
+MY_PN="Django" |
43 |
+MY_P="${MY_PN}-${PV}" |
44 |
+ |
45 |
+DESCRIPTION="High-level Python web framework" |
46 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
47 |
+SRC_URI="https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz" |
48 |
+S="${WORKDIR}/${MY_P}" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+# admin fonts: Roboto (media-fonts/roboto) |
52 |
+LICENSE+=" Apache-2.0" |
53 |
+# admin icons, jquery, xregexp.js |
54 |
+LICENSE+=" MIT" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64 ~x86" |
57 |
+IUSE="doc sqlite test" |
58 |
+RESTRICT="!test? ( test )" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ dev-python/asgiref[${PYTHON_USEDEP}] |
62 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
64 |
+BDEPEND=" |
65 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
66 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
67 |
+ test? ( |
68 |
+ $(python_gen_impl_dep sqlite) |
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/tblib[${PYTHON_USEDEP}] |
75 |
+ )" |
76 |
+ |
77 |
+distutils_enable_sphinx docs |
78 |
+ |
79 |
+python_test() { |
80 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
81 |
+ # and don't work with ${BUILD_DIR}/lib. |
82 |
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
83 |
+ die "Tests fail with ${EPYTHON}" |
84 |
+} |
85 |
+ |
86 |
+python_install_all() { |
87 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
88 |
+ bashcomp_alias ${PN}-admin django-admin.py |
89 |
+ |
90 |
+ distutils-r1_python_install_all |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ elog "Additional Backend support can be enabled via" |
95 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
96 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
97 |
+ echo "" |
98 |
+ elog "Other features can be enhanced by" |
99 |
+ optfeature "GEO Django" "sci-libs/gdal[geos]" |
100 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
101 |
+ optfeature "ImageField Support" dev-python/pillow |
102 |
+ optfeature "Password encryption" dev-python/bcrypt |
103 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
104 |
+} |