From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1697115-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 45B2715824A for <garchives@archives.gentoo.org>; Thu, 5 Dec 2024 05:39:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BC44E08AB; Thu, 5 Dec 2024 05:39:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE779E08AB for <gentoo-commits@lists.gentoo.org>; Thu, 5 Dec 2024 05:39:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0624D340C3C for <gentoo-commits@lists.gentoo.org>; Thu, 5 Dec 2024 05:39:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D6C991F28 for <gentoo-commits@lists.gentoo.org>; Thu, 5 Dec 2024 05:39:29 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org> Message-ID: <1733374442.a62ed2c05caf9fc954c36264f4973d55884d2190.mgorny@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-5.0.10.ebuild X-VCS-Directories: dev-python/django/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a62ed2c05caf9fc954c36264f4973d55884d2190 X-VCS-Branch: master Date: Thu, 5 Dec 2024 05:39:29 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6335210a-377f-4b01-8a19-34a051be1d43 X-Archives-Hash: 32423618ec84862116726b10067c4270 commit: a62ed2c05caf9fc954c36264f4973d55884d2190 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Dec 5 04:54:02 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Dec 5 04:54:02 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a62ed2c0 dev-python/django: Bump to 5.0.10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/django/Manifest | 2 + dev-python/django/django-5.0.10.ebuild | 105 +++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index 688a07c56312..9afb71ef627d 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -1,5 +1,7 @@ DIST Django-4.2.16.checksum.txt 2584 BLAKE2B c4808af742372d281b391a511fd32904cf56b87603fea5b8ee03e48b1c55d64f03c196fbfbee5b652ef08be6304cd7d2ab9b11535f3d368fbe03f6b8e3cc1b40 SHA512 f031b4beb360ba5184bdb8fa5ee35c0c7b779abb08ecb61b175965450345d3fa3d99f2862b5be7a0b5887ef42c7e65dde0506ede855cdd25e1992cea50847d1a DIST Django-4.2.16.tar.gz 10436023 BLAKE2B 67a35f9f625d10fe4bdaff8365532468a76a37ce04a9baf4b6140092b2fb5e2dcb164dbd70e313db3ab567ebd44ebaf3f55a47e12c50c765cf5518968ad63f67 SHA512 a4abe599af711f745f24a559943f67a168cd40f6c7345f2188817e748f9a463e434c463426ca99b80fdaa5580423248c35ff4fcfd35f3364abdf5279094e3f5c +DIST Django-5.0.10.checksum.txt 2420 BLAKE2B 714bee82a128c2e6dc64a7d387a9021c3ff38abf128cd896718401f8c79dad72554446a178e8f6a8b742ef8825c93b81976316edac9fd39e2e60ad5dbb539e30 SHA512 d5df887ca330b0aa5b1a7a42c565fa790abfda6541cd8d3addaf4b8c43261a80eaff9d07157983db78081f96a81fa793c295d4e9c497bf9bd6a502e2beca9f39 +DIST Django-5.0.10.tar.gz 10651802 BLAKE2B 44c7107df7f73db662ccbc8e6fedfd52b4c27dd46cf37f0770cca65feb663847bcf1040703a5d14e60814d9f5bc4d7a604032131c2693dd733230a20d56f2793 SHA512 438a917b786e8d7496ebafbadca9a2cab14b4001f1ed80c7220b867459fd5cea9bd7cd4693a26bbaab728ac66c31b74b77b35081c284577812aa78d7255c1270 DIST Django-5.0.9.checksum.txt 2574 BLAKE2B e3bef5a7fdfa8a383cc1d185dff3e8818dee0005f6cd8e16866bee6990c8b3687c31ca2df67be29033b706e1dea86495b0e74c18d3cb0c6fec563085ffaa3497 SHA512 00e16ce374ebb02966bc7b00a207a5635c36173950ef230f3f8c70a2ddfa59d9a8dd6827f3dbb1c7aeb0da5f14dd39430a2d1bacd00fa80d02e2610ad76a7bbe DIST Django-5.0.9.tar.gz 10646283 BLAKE2B 898e7af1cde9c48589019c095a554f07ee3b92b2d26ff9d960a5cec05347664de608d8c12831f187fc8172e7f5dce947164419e937b26754691da4fec602ee2e SHA512 7d27bfdc07a79abe2a82a5579f27241384e507649006951a8e7d59d8ea627f6b240a13671ed4e61be58402a07d7b3359ca6df1ad69cc00876135810a543b249a DIST Django-5.1.3.checksum.txt 2553 BLAKE2B dd8f2e988f51210594b0d16d55c9ec7dbe9db7327a56894d6f8f0c0ac7ead103ba78e34d9279af7a2bd1f662e5441aad9b74c35726b05211516798eda658ed94 SHA512 6f30aa4646455c3b1da4f8536b7b0e906f0ca3dd6cc0403f3f5d47268df0c3b4a922be12ebbe8b0025e46aa9e5d598d261582a7e6fedf4b7f2990a02a4895fb2 diff --git a/dev-python/django/django-5.0.10.ebuild b/dev-python/django/django-5.0.10.ebuild new file mode 100644 index 000000000000..581c1138addd --- /dev/null +++ b/dev-python/django/django-5.0.10.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..13} ) +PYTHON_REQ_USE='sqlite?,threads(+)' + +inherit bash-completion-r1 distutils-r1 multiprocessing optfeature verify-sig + +DESCRIPTION="High-level Python web framework" +HOMEPAGE=" + https://www.djangoproject.com/ + https://github.com/django/django/ + https://pypi.org/project/Django/ +" +SRC_URI=" + https://media.djangoproject.com/releases/$(ver_cut 1-2)/${P^}.tar.gz + https://dev.gentoo.org/~mgorny/dist/python/django-5.0-pypy3.patch.xz + verify-sig? ( https://media.djangoproject.com/pgp/${P^}.checksum.txt ) +" +S="${WORKDIR}/${P^}" + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" +IUSE="doc sqlite test" +RESTRICT="!test? ( test )" + +RDEPEND=" + <dev-python/asgiref-4[${PYTHON_USEDEP}] + >=dev-python/asgiref-3.7.0[${PYTHON_USEDEP}] + >=dev-python/sqlparse-0.3.1[${PYTHON_USEDEP}] + sys-libs/timezone-data +" +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + ${RDEPEND} + >=dev-python/docutils-0.19[${PYTHON_USEDEP}] + >=dev-python/jinja2-2.11.0[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/selenium-4.8.0[${PYTHON_USEDEP}] + >=dev-python/tblib-1.5.0[${PYTHON_USEDEP}] + sys-devel/gettext + ) + verify-sig? ( >=sec-keys/openpgp-keys-django-20240807 ) +" + +PATCHES=( + "${FILESDIR}"/django-4.0-bashcomp.patch + "${WORKDIR}"/django-5.0-pypy3.patch + # https://github.com/django/django/commit/3426a5c33c36266af42128ee9eca4921e68ea876 + "${FILESDIR}"/django-5.0.6-py313.patch + # https://code.djangoproject.com/ticket/35661 + "${FILESDIR}"/django-5.1-more-pypy3.patch +) + +distutils_enable_sphinx docs --no-autodoc + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/django.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "${P^}.checksum.txt" sha256 "${P^}.tar.gz" + cd "${WORKDIR}" || die + fi + + default +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite \ + -v2 --parallel="${EPYTEST_JOBS:-$(makeopts_jobs)}" || + die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature_header "Additional Backend support can be enabled via:" + optfeature "MySQL backend support" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:0 + optfeature_header + 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 +}