commit:     d0fe4e31fc24b7da03fe96e486f1bee1c4294c23
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 15 04:26:53 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 15 04:26:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0fe4e31

dev-python/django: Bump to 4.2.18

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/django/Manifest             |   2 +
 dev-python/django/django-4.2.18.ebuild | 103 +++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+)

diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
index 6a8c4572ae20..74e9ac30b28b 100644
--- a/dev-python/django/Manifest
+++ b/dev-python/django/Manifest
@@ -1,5 +1,7 @@
 DIST Django-4.2.17.checksum.txt 2420 BLAKE2B 
ad0f88aba31f6e78d7ce3624614e2515b48f4f22546ca637197a1b7561f831bd5742bd6823d311f34f801a271efdc92dc37cb73a99fea9a1b1bf43db2901134e
 SHA512 
c5ddbadff0b56e87037d72416f80d55e6525b173c79d06dc92d4e7c2a5fb5e631ea396be11dca94d16865dc8e17cc4f4bde6c0612fa36ca12b8c872557bbdb15
 DIST Django-4.2.17.tar.gz 10437674 BLAKE2B 
c67e5cd8d52c418358bf4bc1bc9c01fcdfa3a923e956515e7bd833e2e83417d44075c07ce3d4f46e3c7c0c563d2636f1d716da17fb4cee656c4880121596e7fe
 SHA512 
0811b9416800f3f03fe7eab38f836e130dad67d61117573220b74622e2d47ed71928a200878fe88c444fc5ad33db9e48d0549dfcfeb5482e466278818591ff9c
+DIST Django-4.2.18.checksum.txt 2583 BLAKE2B 
93f616de52243945fd8498c91dd27c92d10bab4d1782e2fe23f44f86fa9bfd72bc0fa088713948c9efad82bbfc84ee6bf2a981a4c8e8c3dfc7c9e59b9529e6a4
 SHA512 
a90bbf3e86c072d022cf462b15b69e60dbe2077982131451a105e4e1cac3222bbfba31c06839fdf5880698eef2a8d3a742def2a786a771f06c3a665d8631b2ad
+DIST Django-4.2.18.tar.gz 10428204 BLAKE2B 
45c2059e89ce988596120894e62c76ceb5054d2b7bbdc18befe7a0a54b4d19c3b5850b3d4dfed14950f2fb323a5b0196bee3a4d1520fcbfe9e734da6b9cdc2c4
 SHA512 
74469711d0238583c46cadd42737b9002417010796b713a0750c1f28ea17c9c6b2d33e0136fcc5556029a78e0c24b617ae366cb667051c09552298faee791609
 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.11.checksum.txt 2583 BLAKE2B 
e7cc6ed8c4f3d9398eb892cfb6e4d6b983485128180099ad069e0594f8a398ce8127cf934bd738df826d61ffd66d2c0cb27f4ac27630a3f3d2f20edf30e44f00
 SHA512 
16bdb35fa566db8995233841e53cc793a4656604f351913ad97b470b4044d9476a9bda094493d170d63d637d4f2cc1a22b3b372005f05ed043b1d1b56c6137f2

diff --git a/dev-python/django/django-4.2.18.ebuild 
b/dev-python/django/django-4.2.18.ebuild
new file mode 100644
index 000000000000..132ee16f15d3
--- /dev/null
+++ b/dev-python/django/django-4.2.18.ebuild
@@ -0,0 +1,103 @@
+# 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 python3_{10..12} )
+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-4.2.17-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="~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.6.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[${PYTHON_USEDEP}]
+               dev-python/jinja2[${PYTHON_USEDEP}]
+               dev-python/numpy[${PYTHON_USEDEP}]
+               dev-python/pillow[webp,${PYTHON_USEDEP}]
+               dev-python/pyyaml[${PYTHON_USEDEP}]
+               dev-python/selenium[${PYTHON_USEDEP}]
+               dev-python/tblib[${PYTHON_USEDEP}]
+               sys-devel/gettext
+       )
+       verify-sig? ( >=sec-keys/openpgp-keys-django-20240807 )
+"
+
+PATCHES=(
+       "${FILESDIR}"/django-4.0-bashcomp.patch
+       "${WORKDIR}"/django-4.2.17-pypy3.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
+}

Reply via email to