summaryrefslogtreecommitdiff
path: root/dev-python/django
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-23 14:53:16 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-23 14:53:16 +0100
commit2508f64d6edae6ffd910973df8285893a791b64a (patch)
tree67efa16bf12692d496ec018a6f60dba9c7dfd2d9 /dev-python/django
parentc9aaa2ff911ee95adca22bcd9264e8ecfa3d5149 (diff)
gentoo auto-resync : 23:07:2023 - 14:53:16
Diffstat (limited to 'dev-python/django')
-rw-r--r--dev-python/django/Manifest2
-rw-r--r--dev-python/django/django-4.2.3-r1.ebuild98
-rw-r--r--dev-python/django/files/django-4.2.3-py312.patch25
3 files changed, 125 insertions, 0 deletions
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
index 8c7d7b90b30f..6f868065db93 100644
--- a/dev-python/django/Manifest
+++ b/dev-python/django/Manifest
@@ -2,6 +2,7 @@ AUX django-3.1-bashcomp.patch 2085 BLAKE2B 36a0aa4d3413f13089ac104f5d3f98ecbb152
AUX django-3.2.19-py311.patch 7776 BLAKE2B 387f602318cbf9cdc7edfb2c63a2fe05d3559c3773defae5a5aaf30aef5fe46aadd5c764273d4b7af59132a57caf28cc0463c70eac680105103ba824009eba16 SHA512 5d94f45e92d8ac020aeda1c682e9c5cc60f4c82920dcdf46ef777e76c880e6ca81ec70daabd09cde4ce769fbbc13ac63d1a3763d7eeeeff53102bc31890166ca
AUX django-3.2.20-urlsplit.patch 4567 BLAKE2B fc167eeba60856cde358a37239eda0cc77c856bed76597505d934c71a88f838e4c001adb2593abdc98a8e4f0bfd90e1e9ea86b3a25fc8bc1d9cf8f556b046afd SHA512 0f26a0118897f2cdcdbbbaf02b1fe9c2e2ad7b680f15e19cff2b69a242a0108975d1b9029f78a49db75090ee292c12d14f2b0618fd91aacc97cd18cf5190e86c
AUX django-4.0-bashcomp.patch 2021 BLAKE2B f04c83b500a92ea8ef9609225191e38a41b3349a295beca8f8575ab05395d0cf37e1aefe295004b11c1bcf34cce9074ac7d274034cb50e1ae43e2fcb5d6952b2 SHA512 2215dca4120023b0fd839738bd602443c49e9adaa98d182bc74081ebe70613649c2dc11e2b5f6242701dceac25755adb8605774895091360b56ed1195a7e629e
+AUX django-4.2.3-py312.patch 948 BLAKE2B 3244e7de8b118cd7ae07d3bc829ebb53c137552b6bcd7beebc5c47d9bde1e3b35853cacc5073688dc29c70ca70dcd8a4c573b0ba0209aa629aeb140bce51d3ee SHA512 4af5229ea2971a806cff9fca80359c9af276c10f3d3aa308e09c4bb7a621de14465cdd5de1c401586498a312449d37992d30f1c28d6e27c9f046ab539501ae55
DIST Django-3.2.20.checksum.txt 2559 BLAKE2B db638871c5fd57d05000fd4765a8a0d1b2cc198ec7879fbcd76a11021b0cecd334cea50f27cd0215143fb735429e7aba6638f9783a632009054226b2acd2080c SHA512 dc82a2ead2cd9167a0d0309475d57e0a63b0f35bb2dae4f0a2240c3ab2f3425a748eb7cc66cca678904b1907192457fb3fbc867119329d3daf1fd4230f9a615e
DIST Django-3.2.20.tar.gz 9831078 BLAKE2B 3591081804dd08188f41ce0b2013b4d7a9adc992b8136ad76ff7a9c49436e6d26e659136e3463c40b380f441448aba8ead4de3e3c7726ec6908830719bef8dcd SHA512 32555552e3929718c998ecb7ca2f39b94bbce378cd3c2b633d497fdf58e435fc7a0a89e22bdfdfcb8e5e6884d909103c0f4b545ee0c01fe58a0ba9dd6eed992b
DIST Django-4.1.10.checksum.txt 2559 BLAKE2B 103d1de6ec0da3a2440ea339388e2525ef5770f896be2383cf1828315e2c04ff8f5f8efe4d705dfcb905d453c25b8660410d4ab1b9d61331bc150a16ad857a28 SHA512 f23599dd06889a49c4fbb0c8c7b8f39ebaecbcb02c88ef95cdf33ea0c6563f3cf5c924d8b9a8b81e7b5aa17b6a1469b95e422faa7a53eb759bff516e053f302c
@@ -10,5 +11,6 @@ DIST Django-4.2.3.checksum.txt 2549 BLAKE2B 8cd57d91bc05c4ae7c5fad7682668cb132c5
DIST Django-4.2.3.tar.gz 10419003 BLAKE2B 393cf4d01865a6ff84de5d18860bedea6a28c8df9e1a3769026b308215e9373bf2c8d86e75914d76e2d104b5c1411aff0757682e0129b1dbef29a5dd3836bbc6 SHA512 33c84a3fe16f8188a2c8090177d6bfd235004271ee1cee9c840e33dd22f60e0d54276c0dbc4127faaba82ae7d6a219a07c5638b19c701c3f36db238d2aae33f0
EBUILD django-3.2.20.ebuild 3025 BLAKE2B 24d95da51e360bcf21cdd0ad5bafcab5a4ca771a75035b3c26e8bb68e7d4cf636c30af4c4ba577d2b1a19837ce63823e22129f5dc7be4a493ff2e052d9ba1170 SHA512 7250d22b1dc66870111897dedc912c90f70704c75e6a93fda08b8c20db525c8937b218a318b45410a2bf44b64153c5e4435062575b3ad0074708ba0bf51a3b87
EBUILD django-4.1.10.ebuild 2648 BLAKE2B 6f8dd38c7c971d2a491b823aacdff02484827e70be698f415ad3472bced34ea2d74ee934a17f13f43e7362888275bf8aec750231d6f75c6740745a1c0afe849f SHA512 d57119bd84757b49b8bff391e85f9d0bdfae6e9e3d83dd12e560d0a92ab59e1608a0f08700d7e7e30c936d68433f58052723c171b543823e9eb09e1e2d43fa95
+EBUILD django-4.2.3-r1.ebuild 2688 BLAKE2B 2c765a1ae3203b164b8c5c5219fe55f803d70dad99da296048f5c6daa8ac8ac752f8a3a3e3fe168f776b6caf4f0144579395b745b86bcb17dd1fbad026849260 SHA512 a7a4711f1b99c58b9eaa4bd83999692c378f3b2ee1afff06c6016c7ccc40bfaf979514a1ecc87f908f4c0803c504de0301a9bc2790a3977ac04011ab3327f8fa
EBUILD django-4.2.3.ebuild 2648 BLAKE2B e1ac83acb3a8f0385742ecf9f2893dee986350aa61c57be142d8432269086a38887093d85186b35c96cf59b7e49bd015229ef026987663e64c89e6cd4900bbef SHA512 1bf63b2bfdef28a83f37fe15f920978232f882c4ebac84deb551ef614ddd6c535c0d238c2477287efd335ba7df5f5a78bd770787eeec83bcc0c19a04b4e4b5a3
MISC metadata.xml 400 BLAKE2B 6b3414ac734f078d90c82b44edd2f9f70e494e98da8a3d874d18006ae5e0eb5f7060b98b402094d6045e800bf525586f2566e6f554a8b2999cce37bdcc5472a0 SHA512 1cf0bb6ef93da3abbd1a66878462b1b8672a9b8fccd7f968b427e429caa6ecf30cb703a6060d621ccad1ba77b927d2b0e632b04b0a47975918ccbfcc5f2b85f7
diff --git a/dev-python/django/django-4.2.3-r1.ebuild b/dev-python/django/django-4.2.3-r1.ebuild
new file mode 100644
index 000000000000..f51d9733c439
--- /dev/null
+++ b/dev-python/django/django-4.2.3-r1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE='sqlite?,threads(+)'
+
+inherit bash-completion-r1 distutils-r1 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
+ 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 ~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}]
+"
+BDEPEND="
+ test? (
+ $(python_gen_impl_dep sqlite)
+ ${RDEPEND}
+ dev-python/docutils[${PYTHON_USEDEP}]
+ dev-python/jinja[${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-20230606 )
+"
+
+PATCHES=(
+ "${FILESDIR}"/django-4.0-bashcomp.patch
+ "${FILESDIR}"/django-4.2.3-py312.patch
+)
+
+distutils_enable_sphinx docs --no-autodoc
+
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/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 ||
+ 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:2
+ 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
+}
diff --git a/dev-python/django/files/django-4.2.3-py312.patch b/dev-python/django/files/django-4.2.3-py312.patch
new file mode 100644
index 000000000000..7989f8e7cbcc
--- /dev/null
+++ b/dev-python/django/files/django-4.2.3-py312.patch
@@ -0,0 +1,25 @@
+This is a hack to get the tests to pass prior to:
+
+[e83a88566a71a2353cebc35992c110be0f8628af] Fixed #32172 -- Adapted signals to allow async handlers.
+
+diff --git a/django/test/signals.py b/django/test/signals.py
+index 94a5161e82..1358101b98 100644
+--- a/django/test/signals.py
++++ b/django/test/signals.py
+@@ -14,6 +14,7 @@ from django.utils import timezone
+ from django.utils.formats import FORMAT_SETTINGS, reset_format_cache
+ from django.utils.functional import empty
+ from django.utils.module_loading import import_string
++from django.utils.version import PY312
+
+ template_rendered = Signal()
+
+@@ -183,7 +184,7 @@ def complex_setting_changed(*, enter, setting, **kwargs):
+ # this stacklevel shows the line containing the override_settings call.
+ warnings.warn(
+ f"Overriding setting {setting} can lead to unexpected behavior.",
+- stacklevel=6,
++ stacklevel=5 if PY312 else 6,
+ )
+
+