summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-01-15 05:26:19 +0100
committerMichał Górny <mgorny@gentoo.org>2025-01-15 05:26:19 +0100
commit945a3a612b7c04e563c7c3f2145bc2dddb14c56d (patch)
treee05e9c4e3ebbf7364e8f3cee867bf2288c4ac53e /dev-python
parentapp-admin/awscli: Bump to 1.36.40 (diff)
downloadgentoo-945a3a612b7c04e563c7c3f2145bc2dddb14c56d.tar.gz
gentoo-945a3a612b7c04e563c7c3f2145bc2dddb14c56d.tar.bz2
gentoo-945a3a612b7c04e563c7c3f2145bc2dddb14c56d.zip
dev-python/django: Bump to 5.0.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/django/Manifest2
-rw-r--r--dev-python/django/django-5.0.11.ebuild105
2 files changed, 107 insertions, 0 deletions
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
index 1c3027b0fa8d..6a8c4572ae20 100644
--- a/dev-python/django/Manifest
+++ b/dev-python/django/Manifest
@@ -2,6 +2,8 @@ DIST Django-4.2.17.checksum.txt 2420 BLAKE2B ad0f88aba31f6e78d7ce3624614e2515b48
DIST Django-4.2.17.tar.gz 10437674 BLAKE2B c67e5cd8d52c418358bf4bc1bc9c01fcdfa3a923e956515e7bd833e2e83417d44075c07ce3d4f46e3c7c0c563d2636f1d716da17fb4cee656c4880121596e7fe SHA512 0811b9416800f3f03fe7eab38f836e130dad67d61117573220b74622e2d47ed71928a200878fe88c444fc5ad33db9e48d0549dfcfeb5482e466278818591ff9c
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
+DIST Django-5.0.11.tar.gz 10635979 BLAKE2B b55d539d541c661ebe0e4e3db21b89de3fb4a32dc1d07d6bae1be6cd22b82bf4c5692eb23ddb2d4425140ecdcab272d6fb5629c1b525b7fdad1469eb40376a8e SHA512 a43b3245a8e4f1b315ac75128f0d24cf4202471a9dce6791e1fffc88580427c7823c4abfeab6bfee821ff44407728089f563180525eb6bc172bf52858dce867e
DIST Django-5.1.4.checksum.txt 2410 BLAKE2B a83e84895865d76c44751ba2f2ee8abcf77172b6ba3653b44515fe9ff4c9d29e0f2c2f9a621d42bca303858b733a04746cd50a6ed8c3fe68996b537d1ec9358d SHA512 829b4317e1c754b990ea4510e2e35e0a63230bae88dba6a02de5fbf5c4d65809a544cfa64cc1626e4cc4e68dc8400d7374177e7210cb05bc007e59cb56cbb87b
DIST Django-5.1.4.tar.gz 10716397 BLAKE2B 678df9c8905a27d1c902c7065ffb1da83771c55117c23ba058931347c3be5362269e4accb30bc88299dff30e0bafd2286eab31745244793a861e61d49f7e23bd SHA512 252c185b82da60fb8b1be9c284e8912f5f2846f10a314bc5e611a24e499ea31d7dc29b31a4de16ee3329b1e6861d7faf02b65a043e8a2a28328541105a1e7dc3
DIST Django-5.1.5.checksum.txt 2573 BLAKE2B af41ffe32d60f10c99b558d32dbcf8658fe6ccadf21168afa6812ec9f40d6a0d2024cde733a26d515d90a025e8814c10ab745679133ed1f13a0ffbed8ce59319 SHA512 70c4af1a339a0b195b3788c10425ef83480274ba3efe5344bfa43d8245d681ed2622f48d62c284ad4bbeb77fb5132308197dfe1d308d027ea650c452e6454d90
diff --git a/dev-python/django/django-5.0.11.ebuild b/dev-python/django/django-5.0.11.ebuild
new file mode 100644
index 000000000000..2a1838f4d431
--- /dev/null
+++ b/dev-python/django/django-5.0.11.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 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
+}