Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/django/
Date: Thu, 04 Jun 2020 06:24:11
Message-Id: 1591251831.93da93e705323d49c2744dbe58e58b3d9f1000d8.mgorny@gentoo
1 commit: 93da93e705323d49c2744dbe58e58b3d9f1000d8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 4 06:14:09 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 4 06:23:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93da93e7
7
8 dev-python/django: Bump to 2.2.13
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.13.ebuild | 77 ++++++++++++++++++++++++++++++++++
14 2 files changed, 78 insertions(+)
15
16 diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
17 index 9bb5555c94e..d34f51aa56d 100644
18 --- a/dev-python/django/Manifest
19 +++ b/dev-python/django/Manifest
20 @@ -1,3 +1,4 @@
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-2.2.13.tar.gz 8879757 BLAKE2B 4a7986805c6a3674d47aa82b97f31ae63968dd7c0f12db672207cd1d97076acb681fe44e730147122911684b36d7f1e9d5ea18c054d4c40c68b460300fd9294b SHA512 6daf3486d2f19eb159193df77a7525e5173ba5889ad5c587a6ec6bbf02c4ea94fa90b9a30a5310932fc9353a22c413208ab724c05740f844eccfe610da3ca68a
24 DIST Django-3.0.6.tar.gz 9070990 BLAKE2B 9f918f64baecc5fe18ec08293da0f81a5e6ba9dc034b7e43f11ac9e67fa8d16c155878342babad9fca8ed30caf5ec3335756e2e0312c463b46a23b4db92fd4a0 SHA512 4c92c51386919c389037d6c6d1de3cb6ec443bd1f216f20797fb20fb24ea8d021701a03805ba693deadfa82b1aee38ae0d7fc03cae94cd744b1d1fa47ddc46ad
25
26 diff --git a/dev-python/django/django-2.2.13.ebuild b/dev-python/django/django-2.2.13.ebuild
27 new file mode 100644
28 index 00000000000..2166d02e126
29 --- /dev/null
30 +++ b/dev-python/django/django-2.2.13.ebuild
31 @@ -0,0 +1,77 @@
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,7,8} )
39 +PYTHON_REQ_USE='sqlite?,threads(+)'
40 +
41 +inherit bash-completion-r1 distutils-r1 eutils
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 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
58 +IUSE="doc sqlite test"
59 +RESTRICT="!test? ( test )"
60 +
61 +RDEPEND="
62 + dev-python/pytz[${PYTHON_USEDEP}]
63 + dev-python/sqlparse[${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 +PATCHES=(
78 + "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch
79 +)
80 +
81 +distutils_enable_sphinx docs --no-autodoc
82 +
83 +python_test() {
84 + # Tests have non-standard assumptions about PYTHONPATH,
85 + # and don't work with ${BUILD_DIR}/lib.
86 + PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 ||
87 + die "Tests fail with ${EPYTHON}"
88 +}
89 +
90 +python_install_all() {
91 + newbashcomp extras/django_bash_completion ${PN}-admin
92 + bashcomp_alias ${PN}-admin django-admin.py
93 +
94 + distutils-r1_python_install_all
95 +}
96 +
97 +pkg_postinst() {
98 + elog "Additional Backend support can be enabled via"
99 + optfeature "MySQL backend support" dev-python/mysqlclient
100 + optfeature "PostgreSQL backend support" dev-python/psycopg:2
101 + echo ""
102 + elog "Other features can be enhanced by"
103 + optfeature "GEO Django" "sci-libs/gdal[geos]"
104 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
105 + optfeature "ImageField Support" dev-python/pillow
106 + optfeature "Password encryption" dev-python/bcrypt
107 + optfeature "High-level abstractions for Django forms" dev-python/django-formtools
108 +}