diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-03 09:11:25 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-03 09:11:25 +0000 |
commit | 06c8293a57349047e228438cc7936e7481ab9159 (patch) | |
tree | 6da8926004f93c8934f99c570e0953bd8fb2edf3 /dev-python/django | |
parent | 670a2ef95331c60f32a0831bfe79445340356b0b (diff) |
gentoo auto-resync : 03:11:2022 - 09:11:25
Diffstat (limited to 'dev-python/django')
-rw-r--r-- | dev-python/django/Manifest | 3 | ||||
-rw-r--r-- | dev-python/django/django-4.1.3.ebuild | 103 |
2 files changed, 106 insertions, 0 deletions
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index 8f5b1bc5f996..7f1b47914968 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -7,7 +7,10 @@ DIST Django-4.0.8.checksum.txt 2552 BLAKE2B af7551bddb966e8e6d338b486c3d2aa5139b DIST Django-4.0.8.tar.gz 10427857 BLAKE2B cbbba3b3044d60fcd6d240e1a181c00d65c1122dc464c86391e39a1eaa866703f41310401f3de291e427eb075dc141fbbc503f414e3627e16715e87f2c10e5c8 SHA512 6357cfc673eb0b993d88b6bed5e43bfea8e0c71d31b141033d06cfe45e91591739ac5c6c57a82cde0216104acb7b21c8c32c1c1bfacad3f62737c8ad10ee175a DIST Django-4.1.2.checksum.txt 2552 BLAKE2B 3786a5824ce981fa66e4173b4fe985ccca4084c3bf2a67cce05d527768c54afec69efb2cd79578fff3dfdcf6dcf26536208dc1ae203348e0648a1d2b27373469 SHA512 01bd342832d626efc03f0704b2e7a8287830cf8ccde53b0d8b9d20c10eb10b6d799611e143196f121b43967e72e08a2db032fec81638c3d58e541ccbd598bb1e DIST Django-4.1.2.tar.gz 10509111 BLAKE2B a6786e214967a3a789fd42218e3422f6985efa8e0f4be807d6afb1dd293ef37a201850af1728e72ae0bf429da3aac41dbfa95926f426e9bfe4b3f7f77a6e2934 SHA512 734d782777269b714f6648509d010649e7df2790e438ab2439ba1c4fc1cc9d37626b77ea9d60806c215ab666feb4555b1360ebcdc8cb16e85da8c950b262bbd7 +DIST Django-4.1.3.checksum.txt 2547 BLAKE2B d4a0c921360871495c16c9f44c0b7fef43729d30c2f4fbdb83c73bafd91532734ec597ff67190df4b4c6a66f2c61967a4fd4a8a51d24a3509550db46f1afec49 SHA512 3271a7cf74d457fb740c27f0c162789d40c9e443d92cf5a63d5fc2c1d2080221732aa74a1b896ac06106d5e625f1d2f0b764f72be05062977c9aeb8fa7932497 +DIST Django-4.1.3.tar.gz 10476258 BLAKE2B 9c4865ba86f846a017a7f382320c965fa67f56dbe660a1bf0e974d5cbde21f6c8a88f80675d884d03424e9cd4f1d89af0c9f76be135e875e003f45b1cff5b604 SHA512 3bc77444f22b9dc029d5f45b6481224b99afe41f43d6306db69d01ca5ba24ed05f6c3bd7b3f5320dd96e6d79a47ac1c8f45a86cd8d3822432be4e73b006026ca EBUILD django-3.2.16.ebuild 3064 BLAKE2B 6f517e6b230b0a2c716f6995339a6da00e248718fd64cf4875b8e636f8979605d8192e0c4051e450b8013fad408083e37fea614c4e9dbd511d61c2ace4a12953 SHA512 6067e931920ba1bbd52da5bf569cc1c4ffc07b18672278987a696e80e1ca43f3743790b0fd10615fe11728bff85ea902a924acbc7ccbfed25561ca109ea9c55d EBUILD django-4.0.8.ebuild 3028 BLAKE2B dc67d9756d4c47bafc4a5e68a4047d58b865747211bcb8752a5cc5918d860370ffa16d457bbd521be2e2af57ab66ac063d4c2905418fe4501a16edf851e9ebbb SHA512 337304299836b8cc9aa16a19f164d536a0c80baa4caa193abc120ea39a183b64e0e71e7181a2301773955d6188b97ac4851a73ff9097b701101aa1fce4f727f7 EBUILD django-4.1.2.ebuild 2874 BLAKE2B c61f2a896389eb8d3184d127ecbf3aa9d4aa4e67e006f7f697515ed46adfce56a9c645da74577ccaa78b327583aa9e0aeaed9c5738026648eb1e89cbb4d56532 SHA512 4ab4f6e95294c33f673eeeab0424d0a07eb24987236fcc448bda0125ba43362014df512861a0f7798a3ff037846029ff01138a37a273703b275d7c0adfdf12f2 +EBUILD django-4.1.3.ebuild 2878 BLAKE2B ca7797c252fe2f223636799fad83d2f09a7fc962482c39110aabcf65c731fc99d807a4fd4a0974bc8a86c6acd8d1a2f21813d7724d0afb4fdbaaa594ad7000a3 SHA512 1e08cc3a259db0be803f358994900f4bb319a610b9143020a5f05845eb8484e14ad75d44a6203107fb6af7e5a58da7d6556c0ef30e37b3916e268ef875f0ee4a MISC metadata.xml 400 BLAKE2B 6b3414ac734f078d90c82b44edd2f9f70e494e98da8a3d874d18006ae5e0eb5f7060b98b402094d6045e800bf525586f2566e6f554a8b2999cce37bdcc5472a0 SHA512 1cf0bb6ef93da3abbd1a66878462b1b8672a9b8fccd7f968b427e429caa6ecf30cb703a6060d621ccad1ba77b927d2b0e632b04b0a47975918ccbfcc5f2b85f7 diff --git a/dev-python/django/django-4.1.3.ebuild b/dev-python/django/django-4.1.3.ebuild new file mode 100644 index 000000000000..5a30981b4f33 --- /dev/null +++ b/dev-python/django/django-4.1.3.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..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 ~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.5.2[${PYTHON_USEDEP}] + >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/backports-zoneinfo[${PYTHON_USEDEP}] + ' 3.8) +" +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 + !!<dev-python/ipython-7.21.0-r1 + !!=dev-python/ipython-7.22.0-r0 + ) + verify-sig? ( >=sec-keys/openpgp-keys-django-20201201 ) +" + +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 +} |