Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/django/
Date: Thu, 02 Aug 2018 03:11:44
Message-Id: 1533179083.8e19e0560b5a505cbbabda20240db0502263c219.vdupras@gentoo
1 commit: 8e19e0560b5a505cbbabda20240db0502263c219
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 2 03:03:10 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 2 03:04:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e19e056
7
8 dev-python/django: bump to 2.1
9
10 * EAPI 7
11 * Drop py34
12 * Add py37
13 * Drop webapps
14
15 Inheriting webapps doesn't make sense. This isn't a webapp, it's a
16 library. Because django was abandoned before I took over maintenance, I
17 highly doubt that the package was used for anything serious, so there
18 isn't much to break by this removal.
19
20 The only thing that webapps did was copy admin media in some place for
21 easy HTTP static serving, but that isn't even what you would want to do
22 in a django webapp. You would rather run "collectstatic" on the whole
23 app and serve the result, which would include admin media, over HTTP.
24
25 Package-Manager: Portage-2.3.44, Repoman-2.3.10
26
27 dev-python/django/Manifest | 1 +
28 dev-python/django/django-2.1.ebuild | 87 +++++++++++++++++++++++++++++++++++++
29 2 files changed, 88 insertions(+)
30
31 diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
32 index a64a8d232d8..fa19778180d 100644
33 --- a/dev-python/django/Manifest
34 +++ b/dev-python/django/Manifest
35 @@ -2,3 +2,4 @@ DIST Django-1.11.14.tar.gz 7850578 BLAKE2B b858ab51d40812979ec04cffc459ce137a5f5
36 DIST Django-1.11.15.tar.gz 7843843 BLAKE2B b7713de8136302d8d95929ed449ab01173e28c0d5d20529eaae9d6bd6d323f53b674a4fb6e8398da4b57a223f10ef63e7961accc8fd777313f18b4e2b0f225ed SHA512 4ea18c59f7c74d0b6deb9d292d5de068c6dcc53d9596f321f5a7e823ff5fe423cc8d69c88bf53e3acd9c36c4ecc4447148243a127d5114a4894b0fd4d449f37e
37 DIST Django-1.8.19.tar.gz 7359244 BLAKE2B 1c7b857f864527cf5b9cac8e08599e1f4f3306a828bcc253e0e59755da6d464592e627eb3743687b0410d308b3d089359dd79af0146b02e6db7f5eca43f04401 SHA512 cec71f4a1aaa3fcfc43a035e9fcd8d6fabde7aade43491f9205942cbeb251ae394e49ec6b5b2403b74c24b069064d44ae6070b151c0c949b940f2d46aa87774e
38 DIST Django-2.0.8.tar.gz 7987343 BLAKE2B ab35f50ce1911cb9603c7ac85e7ab01e6019ce9a2dac4cd733b11f35722368946ff3a130c3c791da4d49cf609b5747b4c5de64e29e27a8e12abb7f9e29cd363b SHA512 ac3cc3f58cb977518c6f549834beb35677c2d5541cfb5723045b98165926e826178cb33737c52a0f999be24bc38b84dde489a5f91d1c8d51b8338aa611acb518
39 +DIST Django-2.1.tar.gz 8583964 BLAKE2B 92a48bbdd45fa94c7b43961bf22bd5521019bf0c9f37f6685c8916d9d1886b77522fb58d7db27989a713445b51e15858161e5b99e636cdadc23860d2d0a8ef56 SHA512 1c75f0ad8ef353fb38d245034f108df5554cc27073f44ef920576b5dba3d2dd685d8905c0bde1701d43cb01b4c9dbb2bfa7c38c57fae3208af5be616d26d39cb
40
41 diff --git a/dev-python/django/django-2.1.ebuild b/dev-python/django/django-2.1.ebuild
42 new file mode 100644
43 index 00000000000..87201aa293d
44 --- /dev/null
45 +++ b/dev-python/django/django-2.1.ebuild
46 @@ -0,0 +1,87 @@
47 +# Copyright 1999-2018 Gentoo Foundation
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +PYTHON_COMPAT=( python3_{5,6,7} )
53 +PYTHON_REQ_USE='sqlite?,threads(+)'
54 +
55 +inherit bash-completion-r1 distutils-r1 eutils
56 +
57 +MY_PN="Django"
58 +MY_P="${MY_PN}-${PV}"
59 +
60 +DESCRIPTION="High-level Python web framework"
61 +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/"
62 +SRC_URI="https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz"
63 +
64 +LICENSE="BSD"
65 +# admin fonts: Roboto (media-fonts/roboto)
66 +LICENSE+=" Apache-2.0"
67 +# admin icons, jquery, xregexp.js
68 +LICENSE+=" MIT"
69 +SLOT="0"
70 +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
71 +IUSE="doc sqlite test"
72 +
73 +RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]"
74 +BDEPEND="
75 + dev-python/setuptools[${PYTHON_USEDEP}]
76 + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
77 + test? (
78 + $(python_gen_impl_dep sqlite)
79 + dev-python/docutils[${PYTHON_USEDEP}]
80 + dev-python/numpy[${PYTHON_USEDEP}]
81 + dev-python/pillow[${PYTHON_USEDEP}]
82 + dev-python/pyyaml[${PYTHON_USEDEP}]
83 + dev-python/mock[${PYTHON_USEDEP}]
84 + )"
85 +
86 +S="${WORKDIR}/${MY_P}"
87 +
88 +PATCHES=(
89 + "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch
90 +)
91 +
92 +python_prepare_all() {
93 + # Prevent d'loading in the doc build
94 + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die
95 +
96 + distutils-r1_python_prepare_all
97 +}
98 +
99 +python_compile_all() {
100 + use doc && emake -C docs html
101 +}
102 +
103 +python_test() {
104 + # Tests have non-standard assumptions about PYTHONPATH,
105 + # and don't work with ${BUILD_DIR}/lib.
106 + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \
107 + || die "Tests fail with ${EPYTHON}"
108 +}
109 +
110 +python_install_all() {
111 + newbashcomp extras/django_bash_completion ${PN}-admin
112 + bashcomp_alias ${PN}-admin django-admin.py
113 +
114 + if use doc; then
115 + rm -fr docs/_build/html/_sources || die
116 + local HTML_DOCS=( docs/_build/html/. )
117 + fi
118 +
119 + distutils-r1_python_install_all
120 +}
121 +
122 +pkg_postinst() {
123 + elog "Additional Backend support can be enabled via"
124 + optfeature "MySQL backend support" dev-python/mysqlclient
125 + optfeature "PostgreSQL backend support" dev-python/psycopg:2
126 + echo ""
127 + elog "Other features can be enhanced by"
128 + optfeature "GEO Django" sci-libs/gdal[geos]
129 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
130 + optfeature "ImageField Support" dev-python/pillow
131 + optfeature "Password encryption" dev-python/bcrypt
132 + optfeature "High-level abstractions for Django forms" dev-python/django-formtools
133 +}