From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 99F20138337 for ; Mon, 1 Apr 2019 17:52:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D344E08D9; Mon, 1 Apr 2019 17:52:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3E19BE08D9 for ; Mon, 1 Apr 2019 17:52:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E4D8335D2C for ; Mon, 1 Apr 2019 17:52:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C67A588 for ; Mon, 1 Apr 2019 17:52:50 +0000 (UTC) From: "Virgil Dupras" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Virgil Dupras" Message-ID: <1554141003.99a0ad02857be0c42562509a54e868ff9868a821.vdupras@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/django/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/django/Manifest dev-python/django/django-2.2.ebuild X-VCS-Directories: dev-python/django/ X-VCS-Committer: vdupras X-VCS-Committer-Name: Virgil Dupras X-VCS-Revision: 99a0ad02857be0c42562509a54e868ff9868a821 X-VCS-Branch: master Date: Mon, 1 Apr 2019 17:52:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 86c13a58-c8f3-451b-af19-2b6582e84799 X-Archives-Hash: 1c9860e0a25bc2770953aafbf4a7eb7b commit: 99a0ad02857be0c42562509a54e868ff9868a821 Author: Virgil Dupras gentoo org> AuthorDate: Mon Apr 1 17:34:58 2019 +0000 Commit: Virgil Dupras gentoo org> CommitDate: Mon Apr 1 17:50:03 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99a0ad02 dev-python/django: bump to 2.2 Had to drop keywords because of new dependency. Signed-off-by: Virgil Dupras gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 dev-python/django/Manifest | 1 + dev-python/django/django-2.2.ebuild | 90 +++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index 6177108a3c1..9115edf8ea6 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -2,3 +2,4 @@ DIST Django-1.11.20.tar.gz 7846576 BLAKE2B 11423edda7f2f08cc894957da65c746c99ce7 DIST Django-2.0.13.tar.gz 7990057 BLAKE2B 8172d4ac3e74ce41403d3825ca102673e78cfc47c799a05de6543d3e06b69f97ce475b314d78d88226564cc2cafa1cbd1f6237232967ba15d88d94fa83514e1d SHA512 cae1977bec5b23475bb8b3b67444bf3b12edcd212db11e22e4d10456b1ae5d8dcc1734f1f07cb1e19dd39577684b03821cfc247174d687e29ea8fbed7b628727 DIST Django-2.1.7.tar.gz 8608548 BLAKE2B c391fe2ed0fe9a4f4ef45cf828a0a85c16d5ede7c1bdc1ed5fae1185f04052290817900e97f95fa199425c344d91a9d32c7fb7ac8aec5d12152e7f8a39f8136f SHA512 bacbd52c834a14267588f7bcf57f52c246beb9971352e60eb780e28872884e0dd3701256dcd9600ae0faad29f42460391ea973e9fbb3338c2c08baf0d5ca2fe8 DIST Django-2.1.8.tar.gz 8613572 BLAKE2B 543e41f1b4031b624f903f075e95af7e010510f4c265aebd35a5f6b3f074703b3a4b54bc7f2a9752e717ac99d20c42d6e34e556ca619a531cf8c66622ce1419a SHA512 f84fcdf919091a9db6289f25da601ce447382f79118a99f8f316b2479a9325d629f725edb4618300f76e23bd68ae45ff4c6b6576988f109d1a7ba715c73327c3 +DIST Django-2.2.tar.gz 8843237 BLAKE2B 6e2468e655cbb1cf4800dcad11ddb47267e90f6be87667b913703238c8ade13ac4f77ec8fa3b6aaf4b25660d7d19bbbb9935752661f5b94c4e1bccfae324041c SHA512 cab4e31d9ad7bc1765dd922913ade5ced7308cb687374c650358585070f2d19feca47c9135b56e3d686df08a9a80b0af232b79cea18ec229f2a9737af6c1f964 diff --git a/dev-python/django/django-2.2.ebuild b/dev-python/django/django-2.2.ebuild new file mode 100644 index 00000000000..850faaac947 --- /dev/null +++ b/dev-python/django/django-2.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) +PYTHON_REQ_USE='sqlite?,threads(+)' + +inherit bash-completion-r1 distutils-r1 eutils + +MY_PN="Django" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI="https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz" + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc sqlite test" + +RDEPEND=" + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/sqlparse[${PYTHON_USEDEP}]" +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_impl_dep sqlite) + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/tblib[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch +) + +python_prepare_all() { + # Prevent d'loading in the doc build + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + if use doc; then + rm -fr docs/_build/html/_sources || die + local HTML_DOCS=( docs/_build/html/. ) + fi + + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "Additional Backend support can be enabled via" + optfeature "MySQL backend support" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + echo "" + elog "Other features can be enhanced by" + optfeature "GEO Django" sci-libs/gdal[geos] + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt + optfeature "High-level abstractions for Django forms" dev-python/django-formtools +}