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: Tue, 04 Jun 2019 12:42:33
Message-Id: 1559652123.95406eaaac59a9ba1b81c7513b5db884c2156323.vdupras@gentoo
1 commit: 95406eaaac59a9ba1b81c7513b5db884c2156323
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 4 12:42:03 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 4 12:42:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95406eaa
7
8 dev-python/django: bump to 1.11.21/2.1.9/2.2.2
9
10 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
11 Package-Manager: Portage-2.3.66, Repoman-2.3.11
12
13 dev-python/django/Manifest | 3 +
14 dev-python/django/django-1.11.21.ebuild | 112 ++++++++++++++++++++++++++++++++
15 dev-python/django/django-2.1.9.ebuild | 87 +++++++++++++++++++++++++
16 dev-python/django/django-2.2.2.ebuild | 90 +++++++++++++++++++++++++
17 4 files changed, 292 insertions(+)
18
19 diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
20 index 6e0ddfef523..86e9ef6d1a0 100644
21 --- a/dev-python/django/Manifest
22 +++ b/dev-python/django/Manifest
23 @@ -1,3 +1,6 @@
24 DIST Django-1.11.20.tar.gz 7846576 BLAKE2B 11423edda7f2f08cc894957da65c746c99ce7ce5399ff236972cce627e347cbc4a43c7ff75282318fac2ac8f65fc4db691ac9fe8e04059b0de4f1bfe31278382 SHA512 5a0fff6c9b90a08e98dee6d4d090047adb900a8f6a061f98e685e8998bfe3d97fe7a90aa7d4d2feae67026fb6e4441393d50cb5ab295604ed362a080b987f062
25 +DIST Django-1.11.21.tar.gz 7847136 BLAKE2B 940734dc980901cb13fd90ef38815556d41e94a9fb1ac3a0e36e786b4a8df549ec2bce8a114ffbff1133a066ee8423c7beaccc7c774985df0aa1def1ebab58c1 SHA512 c91a1189b6b8fbbb1470f870b09c1c553e860d3b8c0977240399524a830d5403929f14b4e4b689354080748aab1c70587ad56e265f4ac0b3bdc2714d01adbbc4
26 DIST Django-2.1.8.tar.gz 8613572 BLAKE2B 543e41f1b4031b624f903f075e95af7e010510f4c265aebd35a5f6b3f074703b3a4b54bc7f2a9752e717ac99d20c42d6e34e556ca619a531cf8c66622ce1419a SHA512 f84fcdf919091a9db6289f25da601ce447382f79118a99f8f316b2479a9325d629f725edb4618300f76e23bd68ae45ff4c6b6576988f109d1a7ba715c73327c3
27 +DIST Django-2.1.9.tar.gz 8608747 BLAKE2B d5ef1aacc30067dfe5369655eb23ea67788f22edcf8ba070944c0fb4fdf2fc3628a364d480a3d47bae0339255fb66a3bc27f11eb5f07280812ab5f57b4367c64 SHA512 1f6ad122012d898da52ce44465700d2492ef9002d5c327b25e3edfe2116b8a1143feab79751a581029664311452d52d96fe116d8817edb0ef7d7dbddfc0a5ec7
28 DIST Django-2.2.1.tar.gz 8973889 BLAKE2B 890ab092807a587dbaba69fb6da7a4c53c8e976d3a4c29003549d72dd69c374640df280885a62845dda0d00f432e398747b9ed652aebbd7e3434c07e71d9a80f SHA512 661ed7352847d2167f8d3410b476cb585a269ef5d3afe0cb59cf0c9a2ea22f0572f12825368bc222f33f8c6d4c71767adade97e25b69f5a619795ccb670773e2
29 +DIST Django-2.2.2.tar.gz 8841523 BLAKE2B fc498c19caed7fc8766b015df3049ce325886ebcebf02a1f6618c13ea9d12dea56ad65b860f3b0dee0b6532d97e754bb8cca2c3f0a375c630c28d52a2fd62a2e SHA512 87e0a7b2d0e6d6149c746a7cd5547351ba002c6eaedac160e72544b429d41b133da5c36256a07155b7b4743969e9ff4c3ac890c9925db428117f68a67104df0f
30
31 diff --git a/dev-python/django/django-1.11.21.ebuild b/dev-python/django/django-1.11.21.ebuild
32 new file mode 100644
33 index 00000000000..4ca57d0835a
34 --- /dev/null
35 +++ b/dev-python/django/django-1.11.21.ebuild
36 @@ -0,0 +1,112 @@
37 +# Copyright 1999-2019 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy )
43 +PYTHON_REQ_USE='sqlite?,threads(+)'
44 +WEBAPP_NO_AUTO_INSTALL="yes"
45 +
46 +inherit bash-completion-r1 distutils-r1 eutils eapi7-ver webapp
47 +
48 +MY_PN="Django"
49 +MY_P="${MY_PN}-${PV}"
50 +
51 +DESCRIPTION="High-level Python web framework"
52 +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/"
53 +SRC_URI="
54 + https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz
55 + mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz
56 + "
57 +
58 +LICENSE="BSD"
59 +# admin fonts: Roboto (media-fonts/roboto)
60 +LICENSE+=" Apache-2.0"
61 +# admin icons, jquery, xregexp.js
62 +LICENSE+=" MIT"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
65 +IUSE="doc sqlite test"
66 +
67 +RDEPEND=""
68 +DEPEND="${RDEPEND}
69 + dev-python/pytz[${PYTHON_USEDEP}]
70 + dev-python/setuptools[${PYTHON_USEDEP}]
71 + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
72 + test? (
73 + $(python_gen_impl_dep sqlite)
74 + dev-python/docutils[${PYTHON_USEDEP}]
75 + dev-python/numpy[$(python_gen_usedep 'python*')]
76 + dev-python/pillow[${PYTHON_USEDEP}]
77 + dev-python/pyyaml[${PYTHON_USEDEP}]
78 + dev-python/mock[${PYTHON_USEDEP}]
79 + virtual/python-enum34[${PYTHON_USEDEP}]
80 + )"
81 +
82 +S="${WORKDIR}/${MY_P}"
83 +
84 +WEBAPP_MANUAL_SLOT="yes"
85 +
86 +PATCHES=(
87 + "${FILESDIR}"/${PN}-1.9-bashcomp.patch
88 +)
89 +
90 +pkg_setup() {
91 + webapp_pkg_setup
92 +}
93 +
94 +python_prepare_all() {
95 + # Prevent d'loading in the doc build
96 + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die
97 +
98 + distutils-r1_python_prepare_all
99 +}
100 +
101 +python_compile_all() {
102 + use doc && emake -C docs html
103 +}
104 +
105 +python_test() {
106 + # Tests have non-standard assumptions about PYTHONPATH,
107 + # and don't work with ${BUILD_DIR}/lib.
108 + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 --parallel 1 \
109 + || die "Tests fail with ${EPYTHON}"
110 +}
111 +
112 +python_install_all() {
113 + newbashcomp extras/django_bash_completion ${PN}-admin
114 + bashcomp_alias ${PN}-admin django-admin.py
115 +
116 + if use doc; then
117 + rm -fr docs/_build/html/_sources || die
118 + local HTML_DOCS=( docs/_build/html/. )
119 + fi
120 +
121 + insinto "${MY_HTDOCSDIR#${EPREFIX}}"
122 + doins -r django/contrib/admin/static/admin/.
123 + distutils-r1_python_install_all
124 +}
125 +
126 +src_install() {
127 + distutils-r1_src_install
128 + webapp_src_install
129 +}
130 +
131 +pkg_postinst() {
132 + elog "Additional Backend support can be enabled via"
133 + optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python
134 + optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient
135 + optfeature "PostgreSQL backend support" dev-python/psycopg:2
136 + echo ""
137 + elog "Other features can be enhanced by"
138 + optfeature "GEO Django" sci-libs/gdal[geos]
139 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
140 + optfeature "ImageField Support" dev-python/pillow
141 + optfeature "Password encryption" dev-python/bcrypt
142 + optfeature "High-level abstractions for Django forms" dev-python/django-formtools
143 + echo ""
144 + elog "A copy of the admin media is available to webapp-config for installation in a"
145 + elog "webroot, as well as the traditional location in python's site-packages dir"
146 + elog "for easy development."
147 + webapp_pkg_postinst
148 +}
149
150 diff --git a/dev-python/django/django-2.1.9.ebuild b/dev-python/django/django-2.1.9.ebuild
151 new file mode 100644
152 index 00000000000..fa8668065c0
153 --- /dev/null
154 +++ b/dev-python/django/django-2.1.9.ebuild
155 @@ -0,0 +1,87 @@
156 +# Copyright 1999-2019 Gentoo Authors
157 +# Distributed under the terms of the GNU General Public License v2
158 +
159 +EAPI=7
160 +
161 +PYTHON_COMPAT=( python3_{5,6,7} )
162 +PYTHON_REQ_USE='sqlite?,threads(+)'
163 +
164 +inherit bash-completion-r1 distutils-r1 eutils
165 +
166 +MY_PN="Django"
167 +MY_P="${MY_PN}-${PV}"
168 +
169 +DESCRIPTION="High-level Python web framework"
170 +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/"
171 +SRC_URI="https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz"
172 +
173 +LICENSE="BSD"
174 +# admin fonts: Roboto (media-fonts/roboto)
175 +LICENSE+=" Apache-2.0"
176 +# admin icons, jquery, xregexp.js
177 +LICENSE+=" MIT"
178 +SLOT="0"
179 +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
180 +IUSE="doc sqlite test"
181 +
182 +RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]"
183 +BDEPEND="
184 + dev-python/setuptools[${PYTHON_USEDEP}]
185 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
186 + test? (
187 + $(python_gen_impl_dep sqlite)
188 + dev-python/docutils[${PYTHON_USEDEP}]
189 + dev-python/numpy[${PYTHON_USEDEP}]
190 + dev-python/pillow[${PYTHON_USEDEP}]
191 + dev-python/pyyaml[${PYTHON_USEDEP}]
192 + dev-python/mock[${PYTHON_USEDEP}]
193 + )"
194 +
195 +S="${WORKDIR}/${MY_P}"
196 +
197 +PATCHES=(
198 + "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch
199 +)
200 +
201 +python_prepare_all() {
202 + # Prevent d'loading in the doc build
203 + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die
204 +
205 + distutils-r1_python_prepare_all
206 +}
207 +
208 +python_compile_all() {
209 + use doc && emake -C docs html
210 +}
211 +
212 +python_test() {
213 + # Tests have non-standard assumptions about PYTHONPATH,
214 + # and don't work with ${BUILD_DIR}/lib.
215 + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \
216 + || die "Tests fail with ${EPYTHON}"
217 +}
218 +
219 +python_install_all() {
220 + newbashcomp extras/django_bash_completion ${PN}-admin
221 + bashcomp_alias ${PN}-admin django-admin.py
222 +
223 + if use doc; then
224 + rm -fr docs/_build/html/_sources || die
225 + local HTML_DOCS=( docs/_build/html/. )
226 + fi
227 +
228 + distutils-r1_python_install_all
229 +}
230 +
231 +pkg_postinst() {
232 + elog "Additional Backend support can be enabled via"
233 + optfeature "MySQL backend support" dev-python/mysqlclient
234 + optfeature "PostgreSQL backend support" dev-python/psycopg:2
235 + echo ""
236 + elog "Other features can be enhanced by"
237 + optfeature "GEO Django" sci-libs/gdal[geos]
238 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
239 + optfeature "ImageField Support" dev-python/pillow
240 + optfeature "Password encryption" dev-python/bcrypt
241 + optfeature "High-level abstractions for Django forms" dev-python/django-formtools
242 +}
243
244 diff --git a/dev-python/django/django-2.2.2.ebuild b/dev-python/django/django-2.2.2.ebuild
245 new file mode 100644
246 index 00000000000..6c6406c92f9
247 --- /dev/null
248 +++ b/dev-python/django/django-2.2.2.ebuild
249 @@ -0,0 +1,90 @@
250 +# Copyright 1999-2019 Gentoo Authors
251 +# Distributed under the terms of the GNU General Public License v2
252 +
253 +EAPI=7
254 +
255 +PYTHON_COMPAT=( python3_{5,6,7} )
256 +PYTHON_REQ_USE='sqlite?,threads(+)'
257 +
258 +inherit bash-completion-r1 distutils-r1 eutils
259 +
260 +MY_PN="Django"
261 +MY_P="${MY_PN}-${PV}"
262 +
263 +DESCRIPTION="High-level Python web framework"
264 +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/"
265 +SRC_URI="https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz"
266 +
267 +LICENSE="BSD"
268 +# admin fonts: Roboto (media-fonts/roboto)
269 +LICENSE+=" Apache-2.0"
270 +# admin icons, jquery, xregexp.js
271 +LICENSE+=" MIT"
272 +SLOT="0"
273 +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
274 +IUSE="doc sqlite test"
275 +
276 +RDEPEND="
277 + dev-python/pytz[${PYTHON_USEDEP}]
278 + dev-python/python-sqlparse[${PYTHON_USEDEP}]"
279 +BDEPEND="
280 + dev-python/setuptools[${PYTHON_USEDEP}]
281 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
282 + test? (
283 + $(python_gen_impl_dep sqlite)
284 + dev-python/docutils[${PYTHON_USEDEP}]
285 + dev-python/jinja[${PYTHON_USEDEP}]
286 + dev-python/numpy[${PYTHON_USEDEP}]
287 + dev-python/pillow[webp,${PYTHON_USEDEP}]
288 + dev-python/pyyaml[${PYTHON_USEDEP}]
289 + dev-python/tblib[${PYTHON_USEDEP}]
290 + )"
291 +
292 +S="${WORKDIR}/${MY_P}"
293 +
294 +PATCHES=(
295 + "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch
296 +)
297 +
298 +python_prepare_all() {
299 + # Prevent d'loading in the doc build
300 + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die
301 +
302 + distutils-r1_python_prepare_all
303 +}
304 +
305 +python_compile_all() {
306 + use doc && emake -C docs html
307 +}
308 +
309 +python_test() {
310 + # Tests have non-standard assumptions about PYTHONPATH,
311 + # and don't work with ${BUILD_DIR}/lib.
312 + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \
313 + || die "Tests fail with ${EPYTHON}"
314 +}
315 +
316 +python_install_all() {
317 + newbashcomp extras/django_bash_completion ${PN}-admin
318 + bashcomp_alias ${PN}-admin django-admin.py
319 +
320 + if use doc; then
321 + rm -fr docs/_build/html/_sources || die
322 + local HTML_DOCS=( docs/_build/html/. )
323 + fi
324 +
325 + distutils-r1_python_install_all
326 +}
327 +
328 +pkg_postinst() {
329 + elog "Additional Backend support can be enabled via"
330 + optfeature "MySQL backend support" dev-python/mysqlclient
331 + optfeature "PostgreSQL backend support" dev-python/psycopg:2
332 + echo ""
333 + elog "Other features can be enhanced by"
334 + optfeature "GEO Django" sci-libs/gdal[geos]
335 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
336 + optfeature "ImageField Support" dev-python/pillow
337 + optfeature "Password encryption" dev-python/bcrypt
338 + optfeature "High-level abstractions for Django forms" dev-python/django-formtools
339 +}