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: Fri, 06 Mar 2020 14:39:06
Message-Id: 1583505502.6d93e409fde64132b10dba78b048a4750493a32d.mgorny@gentoo
1 commit: 6d93e409fde64132b10dba78b048a4750493a32d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 6 13:54:28 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 6 14:38:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d93e409
7
8 dev-python/django: Bump to 2.2.11
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.11.ebuild | 77 ++++++++++++++++++++++++++++++++++
14 2 files changed, 78 insertions(+)
15
16 diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
17 index a24eca6d3aa..268a20019d7 100644
18 --- a/dev-python/django/Manifest
19 +++ b/dev-python/django/Manifest
20 @@ -1,4 +1,5 @@
21 DIST Django-2.1.8.tar.gz 8613572 BLAKE2B 543e41f1b4031b624f903f075e95af7e010510f4c265aebd35a5f6b3f074703b3a4b54bc7f2a9752e717ac99d20c42d6e34e556ca619a531cf8c66622ce1419a SHA512 f84fcdf919091a9db6289f25da601ce447382f79118a99f8f316b2479a9325d629f725edb4618300f76e23bd68ae45ff4c6b6576988f109d1a7ba715c73327c3
22 DIST Django-2.1.9.tar.gz 8608747 BLAKE2B d5ef1aacc30067dfe5369655eb23ea67788f22edcf8ba070944c0fb4fdf2fc3628a364d480a3d47bae0339255fb66a3bc27f11eb5f07280812ab5f57b4367c64 SHA512 1f6ad122012d898da52ce44465700d2492ef9002d5c327b25e3edfe2116b8a1143feab79751a581029664311452d52d96fe116d8817edb0ef7d7dbddfc0a5ec7
23 DIST Django-2.2.1.tar.gz 8973889 BLAKE2B 890ab092807a587dbaba69fb6da7a4c53c8e976d3a4c29003549d72dd69c374640df280885a62845dda0d00f432e398747b9ed652aebbd7e3434c07e71d9a80f SHA512 661ed7352847d2167f8d3410b476cb585a269ef5d3afe0cb59cf0c9a2ea22f0572f12825368bc222f33f8c6d4c71767adade97e25b69f5a619795ccb670773e2
24 +DIST Django-2.2.11.tar.gz 9010479 BLAKE2B 9df126f62368c43a64fcdbf9d3831c78dd37e41eb88670517eeec84043083cc437d95301d86798b5945313b515d63bd12cba8484e74b6da2311af2e86ce87adc SHA512 b33ece4606e5a23626caee121018522166a0e1f32bd41ea4eb3d4c1f624943990a07e04c5a4f5d52958e733790178474e9314d346ce1e4d5d6e49ac2a700c857
25 DIST Django-2.2.2.tar.gz 8841523 BLAKE2B fc498c19caed7fc8766b015df3049ce325886ebcebf02a1f6618c13ea9d12dea56ad65b860f3b0dee0b6532d97e754bb8cca2c3f0a375c630c28d52a2fd62a2e SHA512 87e0a7b2d0e6d6149c746a7cd5547351ba002c6eaedac160e72544b429d41b133da5c36256a07155b7b4743969e9ff4c3ac890c9925db428117f68a67104df0f
26
27 diff --git a/dev-python/django/django-2.2.11.ebuild b/dev-python/django/django-2.2.11.ebuild
28 new file mode 100644
29 index 00000000000..e336a179343
30 --- /dev/null
31 +++ b/dev-python/django/django-2.2.11.ebuild
32 @@ -0,0 +1,77 @@
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,7,8} )
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 ~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/python-sqlparse[${PYTHON_USEDEP}]"
65 +BDEPEND="
66 + dev-python/setuptools[${PYTHON_USEDEP}]
67 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
68 + test? (
69 + $(python_gen_impl_dep sqlite)
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/tblib[${PYTHON_USEDEP}]
76 + )"
77 +
78 +PATCHES=(
79 + "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch
80 +)
81 +
82 +distutils_enable_sphinx docs
83 +
84 +python_test() {
85 + # Tests have non-standard assumptions about PYTHONPATH,
86 + # and don't work with ${BUILD_DIR}/lib.
87 + PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 ||
88 + die "Tests fail with ${EPYTHON}"
89 +}
90 +
91 +python_install_all() {
92 + newbashcomp extras/django_bash_completion ${PN}-admin
93 + bashcomp_alias ${PN}-admin django-admin.py
94 +
95 + distutils-r1_python_install_all
96 +}
97 +
98 +pkg_postinst() {
99 + elog "Additional Backend support can be enabled via"
100 + optfeature "MySQL backend support" dev-python/mysqlclient
101 + optfeature "PostgreSQL backend support" dev-python/psycopg:2
102 + echo ""
103 + elog "Other features can be enhanced by"
104 + optfeature "GEO Django" "sci-libs/gdal[geos]"
105 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
106 + optfeature "ImageField Support" dev-python/pillow
107 + optfeature "Password encryption" dev-python/bcrypt
108 + optfeature "High-level abstractions for Django forms" dev-python/django-formtools
109 +}