From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 0479A1584F2 for ; Thu, 20 Mar 2025 06:50:03 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E415D34328B for ; Thu, 20 Mar 2025 06:50:02 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id B92C6110479; Thu, 20 Mar 2025 06:49:30 +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 bobolink.gentoo.org (Postfix) with ESMTPS id B48C4110478 for ; Thu, 20 Mar 2025 06:49:30 +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 590303432F2 for ; Thu, 20 Mar 2025 06:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8D06A28E1 for ; Thu, 20 Mar 2025 06:49:26 +0000 (UTC) From: "Michał Górny" 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" Message-ID: <1742453357.0ec162f461114a5b7b68c48e7d39c3315e397b04.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.2_rc1.ebuild X-VCS-Directories: dev-python/django/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0ec162f461114a5b7b68c48e7d39c3315e397b04 X-VCS-Branch: master Date: Thu, 20 Mar 2025 06:49:26 +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: 11bcaa03-de9e-485e-996b-6f8500f4e296 X-Archives-Hash: 91ef54e3f6d1078309427a008fe26d90 commit: 0ec162f461114a5b7b68c48e7d39c3315e397b04 Author: Michał Górny gentoo org> AuthorDate: Thu Mar 20 05:45:02 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Mar 20 06:49:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ec162f4 dev-python/django: Bump to 5.2_rc1 Signed-off-by: Michał Górny gentoo.org> dev-python/django/Manifest | 2 + dev-python/django/django-5.2_rc1.ebuild | 99 +++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index aa397703fe06..5fbda51204a0 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -6,5 +6,7 @@ DIST Django-5.1.7.checksum.txt 2407 BLAKE2B 8ed1a118ab754dfbe9978c28771c9a4925f2 DIST Django-5.1.7.tar.gz 10716510 BLAKE2B 0ed9a8e75715ab60da23e57b83931dd9a06360723439df6e2dd9690ad25ed688a13a1c3ebe35426325d612a0f6cded076dd3efb3a56f5f9e717854abacc36a11 SHA512 8c0d2d79eab1c60f4a50c94e5f584f0ed70835a8b3ac64f4c5c0397fc186cf8e9188926ad08545323a139976efc207c8429faa7f0b5948b21cef98482124980a DIST Django-5.2b1.checksum.txt 2411 BLAKE2B ed45a877cfb217909b59351bc9b51e8b4d757b3bb812da4597056f79ff86d9d453dad815e4c5932b6b159e51ca696d982ae4cd8bdd78d53f0b9a058643b5e0d2 SHA512 f0a306a337fe54a6e8ab88a8196c5a9da8af0d03c825034f4141ca1e95cbf9092a30c6a346590e9a4b44c4a299178ecbbaacc86d81c58b7d14dc8eb9743f0343 DIST Django-5.2b1.tar.gz 10816962 BLAKE2B 8308cecd8870f9ca3ac96aab370d5f9eba4d4a9c580a19f7214a9bf504eee5c2388f46164a33113126364ffdf1e5f13cf9f30c73c49fb5c6eefe255aed4a30c2 SHA512 212b92758ab32fa29d4a60517a09ee7068fbbc4f8893a4473797641d104fa3c21b20b4dea6ec64471b07991da7d3749226f169ac7fee76651896b4518f016180 +DIST Django-5.2rc1.checksum.txt 2385 BLAKE2B 071ce02b5834ecb0273e3ef18ed457da50b6d191ea58cb1941c4bec7b00ef19149bc1eeddf20005fbe762d26b491ad694ee0ece4a915257a0d9cd6231f43fe71 SHA512 03bc004144844c1e0002007083af17efec222f1ec86b2d698a87cc85332e6b5c8c958790dfcc0e131ffe0ad2de43c909aecc8998436e4f9f9ec7cf161c046961 +DIST Django-5.2rc1.tar.gz 10817143 BLAKE2B 36e87232346fe176783786a2476005523017d89410457a2c9b7943ba1f54e5d6c26ad16b4d28cc9088a90af5233758e11f0adffeaf980b4546fa488ba7aa47f9 SHA512 78424f84b83a89d678f78c07fe01b8a1a26dfc10a2e64cc15c68a342dd382be8a538d959302f6a878a59a9a2b3c5607d008b9fd8e809982396282ee73533abec DIST django-4.2.17-pypy3.patch.xz 5900 BLAKE2B 2a564fc31d8e2f3def5a532d3bca1a4426a496c659192f602d659e0c1a5f5882978baedb384cc3b67fda8c836513ce43aece80db1528c8e8b6e9ca420f7572ce SHA512 9c9d935aff6db7230a26931b5e7f5f94f3b5ff4fc8f7d4201178571de9d9c7929a0e1e558cc2d9b54b8ee91f85819a5680d24fad6251620515a4a020e3b2d66d DIST django-5.0-pypy3.patch.xz 6124 BLAKE2B 7eba7cc70b30743cf4e186a2c5b0f27c13f49114a7a80bcaa2b25fdd7a959583c115a302c9bc6da97c32f6401cf8f3616818ba759190d317c5b033a0f0088766 SHA512 c550e2b2c1243d13cd1f4908f4b6df606355d1491e3bf72042e4b4777a4474306ff0f67b1c2eb4ab4d137cc85bde52dcdbd54bec245d2ba2e092545be8a2993b diff --git a/dev-python/django/django-5.2_rc1.ebuild b/dev-python/django/django-5.2_rc1.ebuild new file mode 100644 index 000000000000..73f7eac6d58d --- /dev/null +++ b/dev-python/django/django-5.2_rc1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} ) +PYTHON_REQ_USE='sqlite?,threads(+)' + +inherit bash-completion-r1 distutils-r1 multiprocessing optfeature verify-sig + +MY_P=${PN^}-${PV/_} +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)/${MY_P}.tar.gz + verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +IUSE="doc sqlite test" +RESTRICT="!test? ( test )" + +RDEPEND=" + =dev-python/asgiref-3.8.1[${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 +) + +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 \ + "${MY_P}.checksum.txt" sha256 "${MY_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 +}