diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-06 09:39:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-06 09:39:06 +0100 |
commit | 996d1cba721b044876526a7f3c1d2ef1fcc90bb4 (patch) | |
tree | 16fac72b3f131ad5671db34f88cd6426ff602706 /dev-python/django | |
parent | 0cfdfb9b75c154c98f3963d4a002425218e29efc (diff) |
gentoo auto-resync : 06:06:2023 - 09:39:05
Diffstat (limited to 'dev-python/django')
-rw-r--r-- | dev-python/django/Manifest | 3 | ||||
-rw-r--r-- | dev-python/django/django-4.2.2.ebuild | 98 |
2 files changed, 101 insertions, 0 deletions
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index dc905bfa3303..17a19a8b271c 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -7,7 +7,10 @@ DIST Django-4.1.9.checksum.txt 2548 BLAKE2B 13f0594922dce5c2f680b2c2c03955c17721 DIST Django-4.1.9.tar.gz 10514944 BLAKE2B d54350ee09f1460156d98d597075a63a5a64bc1198805eadffd337b1af8423332f874fca2327f4aa18aa3dd3ad362b687b14ceb2ca1b7d55b910b8a2030c182c SHA512 75f6f25e84b48f066b7e7e2ee47eb5af60a63d206d83aa32f366ec5685b202a97537daaf98afbbc1c3214f6df7b88630f0d2849f4c78827e2de1141c9bd0b317 DIST Django-4.2.1.checksum.txt 2548 BLAKE2B 4d20462ad292d01544a60f9fac13a52204763555ce317ddde161613edd58641b0ba2e8313e5683de9cdf555b2d11d5d2942da4142844572ad928f1e49488be94 SHA512 aeb69a20e331416749712fc2738e9bf9798a7333f45d680149aaad65b88bcc5a76f6f8692eff43a9a74c33137ac4a135fd59f00f8400e20377025d4b7e3acd02 DIST Django-4.2.1.tar.gz 10420051 BLAKE2B 7d657155f45bea0bfce964e74222edd742b2f4db1d23b91baac1021aebceef5d8e553767e1da32507832047e8d62e525783ddeed31f86f80ad7ea9a4962b5c6c SHA512 eaa3f633f380e9a215e52bd40c2f7c7aed9f0a6122f5c9c07d954904dcb8ccc9ae8ed2e988742e2b1b3b32e626cf754ab4e0d2b4ed06f3b81ef7a38f0bd047ee +DIST Django-4.2.2.checksum.txt 2569 BLAKE2B ff89a4ea9ed88ebe1c2a0ea2d8b9945986c550a53ad2ccb68754cb41e39766181c9605290c23c893083ee40e4544d486d7be86d5e096c4ea49837a367a22ff05 SHA512 226dbdda2e3b2898428ec90229ea043d3b568ebac6e6371cc56ef9b5d401fd9b73ef97788760cac44450d9b579743f9471228638a43a14ece7a25fc02dea4aee +DIST Django-4.2.2.tar.gz 10390518 BLAKE2B f5fd69d814947aadf7654c8863826524f4fed2d0c086af47d8009ada4fc2f40f7e23550ee14e09003788eca09b0d45835dd98be11bda5b8970e54a4fc2a01815 SHA512 68b88f79a784c0bcb80338e9c3497443716d02dfaebab1d8d87974393bd12d4d322cd61a05297e776966497a736962835c0ca73defc663fb13342a5d74863a5b EBUILD django-3.2.19.ebuild 3037 BLAKE2B bcfa08f5ea3d9339d97cd67d620b1e8b023f0a8b246c76957670ddc7191f543745e59483c04799804db08def83fdb610dabaeb7b82cfdd53679cb37bf24926da SHA512 c1dceb8e6696eba044cae59a653a27e89ae341b5d995d1a489ce8ed9a41c5cdf315dfbf1cf7b0e151135f476931b5b84e5a4a5a5c7ce32661bd2a2b923c9f863 EBUILD django-4.1.9.ebuild 2813 BLAKE2B 779d753e3e8895d80f71ba9faed0d6d2506164bab2638d1bc17abe2b55e73a04cb3164a8bb6e00f0bd6d75014891aa7052c1e6b0055cd615e1eeeb5e3c7c407b SHA512 d14ee12f776505861becdcc4810403d020b7c485bf47fa00280d80110486926030b44f6aba0aec827e1f1fa0b85df90d0778e20b63f41850a065231f3742201b EBUILD django-4.2.1.ebuild 2730 BLAKE2B 24b453e9d70265cddf0f942f3a6d52ac61b0b16b432b41f142a25bbaae1e9fac3e59b47a210578bd26c22d09782d7ed12f8bde8c196cbe206ee960573624a9e8 SHA512 674a5f42a6ea7ffc48a15d13a710668c17a8d815b559ff226e5e969881fd466f53ed9111c7e16783d9efc946d7aedf2cd134dd0bcfa4c6e4f1831ecf05527b3d +EBUILD django-4.2.2.ebuild 2735 BLAKE2B dffd0a4c47cbb8d54457e799fcbc913dfacac19b1f58670bcc8ad304c8bbad25d106769f2ff24076c04d5050fdb769d5045dd0cda7e09324ea82701589769bbf SHA512 362c998f3f5935f752828ab8a4aa6c36d430652f5cfbd901352b70c00e8beeef2e0f6555c9bf608c32b2277a4ca036d7f7a65839607dbfdde63e2922c0f26591 MISC metadata.xml 400 BLAKE2B 6b3414ac734f078d90c82b44edd2f9f70e494e98da8a3d874d18006ae5e0eb5f7060b98b402094d6045e800bf525586f2566e6f554a8b2999cce37bdcc5472a0 SHA512 1cf0bb6ef93da3abbd1a66878462b1b8672a9b8fccd7f968b427e429caa6ecf30cb703a6060d621ccad1ba77b927d2b0e632b04b0a47975918ccbfcc5f2b85f7 diff --git a/dev-python/django/django-4.2.2.ebuild b/dev-python/django/django-4.2.2.ebuild new file mode 100644 index 000000000000..4a4a1596b332 --- /dev/null +++ b/dev-python/django/django-4.2.2.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..11} ) +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 ~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}] +" +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}"/${PN}-4.0-bashcomp.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 + optfeature "High-level abstractions for Django forms" dev-python/django-formtools +} |