summaryrefslogtreecommitdiff
path: root/dev-python/django
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-04-04 01:34:29 +0100
committerV3n3RiX <venerix@koprulu.sector>2025-04-04 01:34:29 +0100
commit74dcbf5a63cafe2678e2a397e1002dd691425200 (patch)
tree5e08b1abdce069a7da83f1ca4cbe2ae4af56b161 /dev-python/django
parent476528d7a16cfe2435b30ebd74783eea6925db5f (diff)
gentoo auto-resync : 04:04:2025 - 01:34:28
Diffstat (limited to 'dev-python/django')
-rw-r--r--dev-python/django/Manifest9
-rw-r--r--dev-python/django/django-5.0.14.ebuild105
-rw-r--r--dev-python/django/django-5.1.8.ebuild99
-rw-r--r--dev-python/django/django-5.2.ebuild99
4 files changed, 312 insertions, 0 deletions
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
index 39f43456a334..7a6908f2bde6 100644
--- a/dev-python/django/Manifest
+++ b/dev-python/django/Manifest
@@ -5,8 +5,14 @@ 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
+DIST Django-5.1.8.tar.gz 10723602 BLAKE2B 351380015b98e585c19e16922ed5178a43aef131f07847f1a2b4d48fcf4331d4b58664f7e53ac4665865ae3b8abd809572af1aa2e92b822e75e6b002213d0b27 SHA512 d61ee20eaa37da1f172f0e25b3c4a7cfdbc01a1432ae8ae053040db5ca80faf35a7f998dc8a8c67db60eeb4bdec0794a532b7acca4969f3d0713ce6249de1249
+DIST Django-5.2.checksum.txt 2354 BLAKE2B 8e4029505bcf9e96865efb3bd3c118462b7db47b47674f0ca43ad10eedfb62081bf15b75288e3f4ed80287abd291dc224ff4875de728c36d15008fc391833184 SHA512 bd167d04cd252df76a396bd33b6e3ab75dec5515f3d21a06dccad0d320173118bbb075f21393eae219779034a24fc8b49a81c18c376a8b3e6e0a174e222a6fc9
+DIST Django-5.2.tar.gz 10824891 BLAKE2B 99f24ce1ced59ce281ff3f70a772f61fae449a9acb503284a490b896415b163addbec2e4732b4d736c6a4a3d435b4d519cab4dafa21215349db96bcc718da0d2 SHA512 b2b676b622ab2b4d52a7eebf23dd0660756c263830e850e49ff55a81657877eab5dcb2005829a904177231645f93edd0d60f1317b29d5484c02d7539135c972f
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
@@ -15,7 +21,10 @@ DIST django-4.2.17-pypy3.patch.xz 5900 BLAKE2B 2a564fc31d8e2f3def5a532d3bca1a442
DIST django-5.0-pypy3.patch.xz 6124 BLAKE2B 7eba7cc70b30743cf4e186a2c5b0f27c13f49114a7a80bcaa2b25fdd7a959583c115a302c9bc6da97c32f6401cf8f3616818ba759190d317c5b033a0f0088766 SHA512 c550e2b2c1243d13cd1f4908f4b6df606355d1491e3bf72042e4b4777a4474306ff0f67b1c2eb4ab4d137cc85bde52dcdbd54bec245d2ba2e092545be8a2993b
EBUILD django-4.2.20.ebuild 2948 BLAKE2B a36b859b15474299ae7ca7516cdf3042a7a7bb59a77d42a82cfe2efffcc31eaa5700774cb29d3fb9cc3143e5cfb8389545382d0bfdb9a80d1c9deebe59d44182 SHA512 fd32a1061eca8b5ec85c88925f4eaeca6804d01e5235f6fa872ecfde20f23395d3b388e7a42ac95d78f5c9872d4553c60f618beb1c6f5883e80ddc4266ef4ee1
EBUILD django-5.0.13.ebuild 3105 BLAKE2B 21c1c6e24c03dc494e27644b1ad49e0612f6d8b9aec30943166b47025c5bc6cd0ff594c99209b24cb549ae97767746dc457750bfa9108057d02c253ed502eb2e SHA512 5cfcbe177e4f332102746771ac9ba88d5ab155e3f3579c72439d658d81630867f00fb6d285ac49100c6e13a2751327d2c2c258a48746cbb0468850ee98c1a217
+EBUILD django-5.0.14.ebuild 3112 BLAKE2B 4ccba4255712daf318d99fa384d1e088c9c6198347d37c9cd8a033115773a5c0bad55d7296fc99e203bb94ceb27796c9314264d04486f99004caa3c0d26c2a0f SHA512 83261f8d26c60d076ebab3c5175e2ffb9f8ad02506f8eb8e74134f4993f24303f1103ff457a40098d7c1fabac1f28f79cc0e1e59d556db7db23212fee7060838
EBUILD django-5.1.7.ebuild 2784 BLAKE2B 4f8ebd82647af5e086e09253cf71a57dfef2501c86ce218e65c884ebf46c523ce8f1903e4883b2d23fae515a5a917cf55a66580691aa2372ca760730c121cf0c SHA512 68bd43022e227c94dfce8bc90c32b4e2beed8022eda842d5919bed8c161eb4ebe4fc411d2a8822dadd6bb2dee4a85a25e82fbb0aa34d0783b7188aff02304695
+EBUILD django-5.1.8.ebuild 2791 BLAKE2B dd12d4b36ec2d5e4c674eb972c4063bfcbd2fba4f2cf45c78a8bd18b76d6dfd1680903955dca922b161bfa2ef3ee2ec6630bffe76210dd3a3a4a5fc23d3f75de SHA512 55e4f2cccfd9dda99e37eb3ba65408664ff9180033f26c59accde7cec19ea1905d328e2c374cb7d99de06e41ede7b55712d402b57feddab096e8d587b6a29037
+EBUILD django-5.2.ebuild 2733 BLAKE2B 56ec48731f1b80a832872c94ecb90eacb98608e8e9e68ae267ba591688d13297aee621c5dc59af00d65cbb8f7027469bb3bca773a711b415631fbb018807fe0f SHA512 2f9b0376459e718925ec583d525f00c503fd8f994af28a0b3014c04970b4613d8bd61d2cbdd4b1e413ab9e2339ead4f4aae3314bd82aa7eb52a0176d435310e3
EBUILD django-5.2_beta1.ebuild 2739 BLAKE2B 3962c92ff06e8400493c6d0d404fa40d641b13a070030a99ad22022bb4da9c37858a18556fdbd1aed35551303c4dd0abc18ec63060fc14bc684fbde1ed53f8dd SHA512 ebb4edb6fbb407140f34d2bdaf4f5ea510fb18d1746427882e076227e50cb457bf7ac100d6a29c2f0c2952aaea6f16eaf99d4bef350ac57d77ca32fbfba5c658
EBUILD django-5.2_rc1.ebuild 2733 BLAKE2B 56ec48731f1b80a832872c94ecb90eacb98608e8e9e68ae267ba591688d13297aee621c5dc59af00d65cbb8f7027469bb3bca773a711b415631fbb018807fe0f SHA512 2f9b0376459e718925ec583d525f00c503fd8f994af28a0b3014c04970b4613d8bd61d2cbdd4b1e413ab9e2339ead4f4aae3314bd82aa7eb52a0176d435310e3
MISC metadata.xml 400 BLAKE2B 6b3414ac734f078d90c82b44edd2f9f70e494e98da8a3d874d18006ae5e0eb5f7060b98b402094d6045e800bf525586f2566e6f554a8b2999cce37bdcc5472a0 SHA512 1cf0bb6ef93da3abbd1a66878462b1b8672a9b8fccd7f968b427e429caa6ecf30cb703a6060d621ccad1ba77b927d2b0e632b04b0a47975918ccbfcc5f2b85f7
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-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
+}
diff --git a/dev-python/django/django-5.1.8.ebuild b/dev-python/django/django-5.1.8.ebuild
new file mode 100644
index 000000000000..141eb6fdf3f4
--- /dev/null
+++ b/dev-python/django/django-5.1.8.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
+
+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="~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.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 \
+ "${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
+}
diff --git a/dev-python/django/django-5.2.ebuild b/dev-python/django/django-5.2.ebuild
new file mode 100644
index 000000000000..73f7eac6d58d
--- /dev/null
+++ b/dev-python/django/django-5.2.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-4[${PYTHON_USEDEP}]
+ >=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
+}