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 A48A41581EE for ; Thu, 03 Apr 2025 08:00:32 +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 8F7653432C3 for ; Thu, 03 Apr 2025 08:00:32 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 00FE71104C9; Thu, 03 Apr 2025 07:59:54 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 EA4691104C9 for ; Thu, 03 Apr 2025 07:59:53 +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 9EDF93432A5 for ; Thu, 03 Apr 2025 07:59:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6DCEB28B3 for ; Thu, 03 Apr 2025 07:59:50 +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: <1743667185.1ba57306b630f281447285f1591103e94c3d1a1f.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.14.ebuild X-VCS-Directories: dev-python/django/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1ba57306b630f281447285f1591103e94c3d1a1f X-VCS-Branch: master Date: Thu, 03 Apr 2025 07:59: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: 0ae7ae8a-bc7c-43f8-8694-e54a7a5080f5 X-Archives-Hash: 7162eddaa9a6a873803e84122da54d19 commit: 1ba57306b630f281447285f1591103e94c3d1a1f Author: Michał Górny gentoo org> AuthorDate: Thu Apr 3 07:20:32 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Apr 3 07:59:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ba57306 dev-python/django: Bump to 5.0.14 Signed-off-by: Michał Górny gentoo.org> dev-python/django/Manifest | 2 + dev-python/django/django-5.0.14.ebuild | 105 +++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index 03a941aaed42..d5799dc267a0 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -2,6 +2,8 @@ DIST Django-4.2.20.checksum.txt 2417 BLAKE2B ac01acf1c7fdba50e81012563d7d5f6d16a DIST Django-4.2.20.tar.gz 10432686 BLAKE2B df53df6f8439cae50c2e568d20b4c46e2ae12d61ea826580b28a9678ae890ad8eade5bcc813dbb6355126aa8760acbaabffe4a6fd386bedb8fef171d1a09fabd SHA512 6f960772cb95d6cb92ffc29ccec8d53d4f65c371359d350a63653c259288de4047302748008be04b9f4945627e9ef6d52dffa32455acbe26441f49872d73eeec DIST Django-5.0.13.checksum.txt 2417 BLAKE2B af989fee87791a29b6b5e0f37bbbc509c71b429c6b9fa4e3994a77db39aba118a1ab2da872864e8fe302ed0c923a19441996187ed45c9f0c9b56a40d0107624a SHA512 e395c2677e2a844e59979cc88b232be92f0c2459879c8bf391a166cdd04b6e501b07b3741817bf2cebfdd83b157d5b7b346a4a3ba88fe1787cb402abfcdfc1c6 DIST Django-5.0.13.tar.gz 10643726 BLAKE2B 53dbf4e395cda2ed776a281805ad26ab40c15930497cceee85c92dccc50ee0c3d8d6e24fbe3ac48034de271955beae1412f912bd3cc21f196273df806f4c4168 SHA512 6fd976497941715dda659a093d38312d8aeceec7dc71308247845230fee00cd917c7559c3085d0a5c70e577bd89589254b26d6bdcbd728084446602f725ab696 +DIST Django-5.0.14.checksum.txt 2417 BLAKE2B f1798e24a4a290907adc83ac89aea70660026780b9accfc3487d4625d637e17af1347f0f3e6af727b3d4385f0371584edab1c806d07121c77a223c4941f2b441 SHA512 0149a3fdc99a9c2efb7d4e418be354660158e1ec75584c2b5455dfea6d326f3c04030f5414cb1e357d4ca62e225261ca797d6a31ff489260d14b2147401774c4 +DIST Django-5.0.14.tar.gz 10644306 BLAKE2B d19b9695c98116ddae26d6b0c3a6a53e0aa4786b1d74d7fd4f429c1d6d6289d39b106416651db46eff14a3af2fe0da30ebc3c68c5c1567f1a0eed058bd00551d SHA512 53751e7ad38368d947c2b0d0743f3bfa11cef70638c905eb435eee3638aef70ca7656b917b7ef7d78800183075b1f76410def4b3ce553a7a177b8ab7f013490e DIST Django-5.1.7.checksum.txt 2407 BLAKE2B 8ed1a118ab754dfbe9978c28771c9a4925f27038407288d536289021b1c798d643f043c01f41e914216548deb222eac1cead1975bf5bc484982b09534918b91d SHA512 46f6b85df08fda9e91d225b02ccf10919fac6e7ff16151a53840c90bdb85b351dc627996f8f16a827d7f3dc01f24bbd94378e8ce8f09700783ea9bde1519a911 DIST Django-5.1.7.tar.gz 10716510 BLAKE2B 0ed9a8e75715ab60da23e57b83931dd9a06360723439df6e2dd9690ad25ed688a13a1c3ebe35426325d612a0f6cded076dd3efb3a56f5f9e717854abacc36a11 SHA512 8c0d2d79eab1c60f4a50c94e5f584f0ed70835a8b3ac64f4c5c0397fc186cf8e9188926ad08545323a139976efc207c8429faa7f0b5948b21cef98482124980a DIST Django-5.1.8.checksum.txt 2374 BLAKE2B 04d648a0186ac8a4caced8035bd2653e37975953ea0bc8b310a4bb6c3fff16ad77f006227b4c4ac0fdc5135b552b9a29b1982ae2d04586c519b6208f595d28b3 SHA512 744dc873ab2ac84f16eb2d6ecb2df2211a48076649b8c0b7f9adebaced092125981eb6011d1d2e35c017cb955206bd09149fa39c284b22ae6c76b3d820ed1357 diff --git a/dev-python/django/django-5.0.14.ebuild b/dev-python/django/django-5.0.14.ebuild new file mode 100644 index 000000000000..8a72cab7558e --- /dev/null +++ b/dev-python/django/django-5.0.14.ebuild @@ -0,0 +1,105 @@ +# 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 + +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-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 +}