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: Mon, 03 Dec 2018 21:18:00
Message-Id: 1543871845.9d36960d7ff7c0f89097d89f1c7eaabc682077b5.vdupras@gentoo
1 commit: 9d36960d7ff7c0f89097d89f1c7eaabc682077b5
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 3 21:17:25 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 3 21:17:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d36960d
7
8 dev-python/django: bump to 1.11.17 and 2.1.4
9
10 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-python/django/Manifest | 2 +
14 dev-python/django/django-1.11.17.ebuild | 112 ++++++++++++++++++++++++++++++++
15 dev-python/django/django-2.1.4.ebuild | 87 +++++++++++++++++++++++++
16 3 files changed, 201 insertions(+)
17
18 diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
19 index ae48d9cfd73..abdc43a40c8 100644
20 --- a/dev-python/django/Manifest
21 +++ b/dev-python/django/Manifest
22 @@ -1,3 +1,5 @@
23 DIST Django-1.11.16.tar.gz 7852514 BLAKE2B a881caa6c31c80d6b0146cb49a08ba63ebfba21637747328adb8ec3afada2182b72c46576a79cc9e163546e5b980a2be516d842492517319deb0a4f5512ad605 SHA512 bf1329ac364c9037fd6cecd0e8565c8bd8d830343671f9ce5415a10e70da37256667675b3f97e4d2508a8a912fa7a06ca7f585586ac18e6734c939bc41a8b455
24 +DIST Django-1.11.17.tar.gz 7853439 BLAKE2B f6218ee690e505921d229193540b4166771465213aee3a3b239da6a88c1a7e166d182750192f984be7369e82c3ae172a9d858d7d30e9eb7cff4a467b543372e2 SHA512 ecf798ce8037d79dbbe673ad583e6414c9a24b807442feb967927b78cacb467f7f5c20e938116829d9b0df0563ee110a8d07294fd40b99dbd6356c8bae151bd6
25 DIST Django-2.0.9.tar.gz 7992507 BLAKE2B c6f1d79401007d2c83553e885d5e32c7890b3f1ed53c948ea4c55cc2a0272c06d0b7fdafef7be5042ab26b3f8c3ffef64f6f01f49d6e615503f8bfad99b66c3a SHA512 7a766ce0240b19a18dc5a9a4682630c4ce90fa6ed0d02a97303088a990d09e097b609220f4e2806854585724f483cb2ae7e4f29bfd1898f3a0d6e758c2f4ea4a
26 DIST Django-2.1.3.tar.gz 8611851 BLAKE2B dc0c2bf994ef883d34d66d3d0f4e77d20f5a25671053831e4138e5431ec7ec8c89ba64d7ae4a58e034e01093276cd61a2d833319d28283cbd9ad8d6ae4b9b2d4 SHA512 b83732d8c0230bda0a29db92acd3e4e7531f9adb3a0d10f37c40288c08ccaa5d7d49184bd5ea000b991eaf8a196b317648c200c147a6e8f503ce42189344cee9
27 +DIST Django-2.1.4.tar.gz 8611886 BLAKE2B 1deedd3c13c65a7f6ae2262ef1e894046e3151dc7bcd6da274d6e87e60db326cc28a51c62627d00c6feee3807ff8dd13823edf8b4494f0d1499272998f350748 SHA512 a2dc6fb7514f8d79aff98aeb0bd0edb1ede36ed2368e553fded8b58765092d6a2efcf2e9429bb9c7d2c16d466e46a9ff18aaf5911a7dd868f42569c1e82831aa
28
29 diff --git a/dev-python/django/django-1.11.17.ebuild b/dev-python/django/django-1.11.17.ebuild
30 new file mode 100644
31 index 00000000000..aaa15de9067
32 --- /dev/null
33 +++ b/dev-python/django/django-1.11.17.ebuild
34 @@ -0,0 +1,112 @@
35 +# Copyright 1999-2018 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy )
41 +PYTHON_REQ_USE='sqlite?,threads(+)'
42 +WEBAPP_NO_AUTO_INSTALL="yes"
43 +
44 +inherit bash-completion-r1 distutils-r1 eutils eapi7-ver webapp
45 +
46 +MY_PN="Django"
47 +MY_P="${MY_PN}-${PV}"
48 +
49 +DESCRIPTION="High-level Python web framework"
50 +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/"
51 +SRC_URI="
52 + https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz
53 + mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz
54 + "
55 +
56 +LICENSE="BSD"
57 +# admin fonts: Roboto (media-fonts/roboto)
58 +LICENSE+=" Apache-2.0"
59 +# admin icons, jquery, xregexp.js
60 +LICENSE+=" MIT"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
63 +IUSE="doc sqlite test"
64 +
65 +RDEPEND=""
66 +DEPEND="${RDEPEND}
67 + dev-python/pytz[${PYTHON_USEDEP}]
68 + dev-python/setuptools[${PYTHON_USEDEP}]
69 + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
70 + test? (
71 + $(python_gen_impl_dep sqlite)
72 + dev-python/docutils[${PYTHON_USEDEP}]
73 + dev-python/numpy[$(python_gen_usedep 'python*')]
74 + dev-python/pillow[${PYTHON_USEDEP}]
75 + dev-python/pyyaml[${PYTHON_USEDEP}]
76 + dev-python/mock[${PYTHON_USEDEP}]
77 + virtual/python-enum34[${PYTHON_USEDEP}]
78 + )"
79 +
80 +S="${WORKDIR}/${MY_P}"
81 +
82 +WEBAPP_MANUAL_SLOT="yes"
83 +
84 +PATCHES=(
85 + "${FILESDIR}"/${PN}-1.9-bashcomp.patch
86 +)
87 +
88 +pkg_setup() {
89 + webapp_pkg_setup
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 --parallel 1 \
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 + insinto "${MY_HTDOCSDIR#${EPREFIX}}"
120 + doins -r django/contrib/admin/static/admin/.
121 + distutils-r1_python_install_all
122 +}
123 +
124 +src_install() {
125 + distutils-r1_src_install
126 + webapp_src_install
127 +}
128 +
129 +pkg_postinst() {
130 + elog "Additional Backend support can be enabled via"
131 + optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python
132 + optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient
133 + optfeature "PostgreSQL backend support" dev-python/psycopg:2
134 + echo ""
135 + elog "Other features can be enhanced by"
136 + optfeature "GEO Django" sci-libs/gdal[geos]
137 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
138 + optfeature "ImageField Support" dev-python/pillow
139 + optfeature "Password encryption" dev-python/bcrypt
140 + optfeature "High-level abstractions for Django forms" dev-python/django-formtools
141 + echo ""
142 + elog "A copy of the admin media is available to webapp-config for installation in a"
143 + elog "webroot, as well as the traditional location in python's site-packages dir"
144 + elog "for easy development."
145 + webapp_pkg_postinst
146 +}
147
148 diff --git a/dev-python/django/django-2.1.4.ebuild b/dev-python/django/django-2.1.4.ebuild
149 new file mode 100644
150 index 00000000000..da954608dac
151 --- /dev/null
152 +++ b/dev-python/django/django-2.1.4.ebuild
153 @@ -0,0 +1,87 @@
154 +# Copyright 1999-2018 Gentoo Authors
155 +# Distributed under the terms of the GNU General Public License v2
156 +
157 +EAPI=7
158 +
159 +PYTHON_COMPAT=( python3_{5,6,7} )
160 +PYTHON_REQ_USE='sqlite?,threads(+)'
161 +
162 +inherit bash-completion-r1 distutils-r1 eutils
163 +
164 +MY_PN="Django"
165 +MY_P="${MY_PN}-${PV}"
166 +
167 +DESCRIPTION="High-level Python web framework"
168 +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/"
169 +SRC_URI="https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz"
170 +
171 +LICENSE="BSD"
172 +# admin fonts: Roboto (media-fonts/roboto)
173 +LICENSE+=" Apache-2.0"
174 +# admin icons, jquery, xregexp.js
175 +LICENSE+=" MIT"
176 +SLOT="0"
177 +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
178 +IUSE="doc sqlite test"
179 +
180 +RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]"
181 +BDEPEND="
182 + dev-python/setuptools[${PYTHON_USEDEP}]
183 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
184 + test? (
185 + $(python_gen_impl_dep sqlite)
186 + dev-python/docutils[${PYTHON_USEDEP}]
187 + dev-python/numpy[${PYTHON_USEDEP}]
188 + dev-python/pillow[${PYTHON_USEDEP}]
189 + dev-python/pyyaml[${PYTHON_USEDEP}]
190 + dev-python/mock[${PYTHON_USEDEP}]
191 + )"
192 +
193 +S="${WORKDIR}/${MY_P}"
194 +
195 +PATCHES=(
196 + "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch
197 +)
198 +
199 +python_prepare_all() {
200 + # Prevent d'loading in the doc build
201 + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die
202 +
203 + distutils-r1_python_prepare_all
204 +}
205 +
206 +python_compile_all() {
207 + use doc && emake -C docs html
208 +}
209 +
210 +python_test() {
211 + # Tests have non-standard assumptions about PYTHONPATH,
212 + # and don't work with ${BUILD_DIR}/lib.
213 + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \
214 + || die "Tests fail with ${EPYTHON}"
215 +}
216 +
217 +python_install_all() {
218 + newbashcomp extras/django_bash_completion ${PN}-admin
219 + bashcomp_alias ${PN}-admin django-admin.py
220 +
221 + if use doc; then
222 + rm -fr docs/_build/html/_sources || die
223 + local HTML_DOCS=( docs/_build/html/. )
224 + fi
225 +
226 + distutils-r1_python_install_all
227 +}
228 +
229 +pkg_postinst() {
230 + elog "Additional Backend support can be enabled via"
231 + optfeature "MySQL backend support" dev-python/mysqlclient
232 + optfeature "PostgreSQL backend support" dev-python/psycopg:2
233 + echo ""
234 + elog "Other features can be enhanced by"
235 + optfeature "GEO Django" sci-libs/gdal[geos]
236 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
237 + optfeature "ImageField Support" dev-python/pillow
238 + optfeature "Password encryption" dev-python/bcrypt
239 + optfeature "High-level abstractions for Django forms" dev-python/django-formtools
240 +}