diff options
Diffstat (limited to 'dev-python/django')
-rw-r--r-- | dev-python/django/Manifest | 3 | ||||
-rw-r--r-- | dev-python/django/django-4.1.5.ebuild | 103 |
2 files changed, 106 insertions, 0 deletions
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index 697fb2871bd3..26c9ed6120e9 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -9,8 +9,11 @@ DIST Django-4.1.3.checksum.txt 2547 BLAKE2B d4a0c921360871495c16c9f44c0b7fef4372 DIST Django-4.1.3.tar.gz 10476258 BLAKE2B 9c4865ba86f846a017a7f382320c965fa67f56dbe660a1bf0e974d5cbde21f6c8a88f80675d884d03424e9cd4f1d89af0c9f76be135e875e003f45b1cff5b604 SHA512 3bc77444f22b9dc029d5f45b6481224b99afe41f43d6306db69d01ca5ba24ed05f6c3bd7b3f5320dd96e6d79a47ac1c8f45a86cd8d3822432be4e73b006026ca DIST Django-4.1.4.checksum.txt 2553 BLAKE2B 18a8a5de5148f1ade673fc158c756a5b9dc70a2164d7d094ce56dae67a89ea9e8ee808f8319508a7af9229642a80215bd25980257bc78ad982ccf91722379f97 SHA512 d39791499b59b9912eb589a7174a012a33a61d74f5bcbaedca6bdf78cf584296a52f221affc1ddae696a114695c8d533cbbc94d2d855abae40a2b811db40f036 DIST Django-4.1.4.tar.gz 10517427 BLAKE2B aee4e92dc2e87dc4281025f68274380da46661c504e65db516f0565fc225388e1fb35d7a742a19b8768a31e416bcc82db9c38f4a397c9a88c50448a09a2370e3 SHA512 43649665ac6235b103a3d2c1271dfa0c6177dd2eeca24cefe210809bca85b29b7ecd10de1e7a88677c7ab26b0a1c1912af013bbcbcfadcbc1f85416c10ec7d5f +DIST Django-4.1.5.checksum.txt 2546 BLAKE2B 3555213c23228ca26b7944c6c13a57232b17cda457c624ca38a3e05149bee5cff0f4c83e3677e775b7acdcff0157219488f82a1091234ace037097b8fe016ab4 SHA512 8fe18f80e8f3ae9635d55dcc48854e533437f938775de095c211e82f6ac97272c9af0fd5beb22f2f64894a2d64d6ab24f19c4d4aad4a483b7ad7d60c52e84974 +DIST Django-4.1.5.tar.gz 10507020 BLAKE2B 8fad2919cbe421524289f52c448b77f48abb87a61480db8c5e93ecdbf3b4410f3c5cb678a8643a13c21a236790e891dfc50159c5619847bd7085764c2734763d SHA512 483acebcc0cdc7f7e6e6264b23fd6528d1a8e66c9ccd421506bb2504ff55b058d514a2a359618892a786a0784d9580041db715b1990d8f5ae3c2e59a242eb578 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.3.ebuild 2881 BLAKE2B 20fa648eb6219afd3a96631c7dec2ba5c14d79b5133a5929fb8d219722bdf83d08c49cf7a7c2a3fc86e44da866a8fd3fba56bcf1d165cf9074abe0740454d3ea SHA512 344dde2e564a5c76abe4d9a3471ac1c743492ac0f35db2cd755e8fe0bdbb0b90cb7f56680d392d939b9d7af1f7e9c89cbb8a3effb2896b34d19305b07d723e9b EBUILD django-4.1.4.ebuild 2885 BLAKE2B c93727b001ac923481ed0ea61d98cb97adc8f9e2909145ddd145262d45e3386bd037ff4724852b45e18e938bb50eacf8b852b0c3f2623d100076d28bb6b45050 SHA512 a649ee6678f346bfbb7b71b4442c044136920c3933830bd680de2b4926af9d7992ec8be702a4176d2d2691d48a9f0b7207cfef0dc97071dc334d90db09a97ed0 +EBUILD django-4.1.5.ebuild 2885 BLAKE2B 1343e9ca3788f83c4d9c1538d2de16aea71b666eeab8490cb18471b3ceeb30489e7d4948995d46beeef233ed499b9944d1e6ebc05fc5033f551cb562f565f5c5 SHA512 c7acde8dbc3b9a919b30b904c9095d2aa24555f503abd5bb9a12eeb63493c3fea4ad00711a9de56b8a744b1a00ee8074d08911844869117d7344942120c6e643 MISC metadata.xml 400 BLAKE2B 6b3414ac734f078d90c82b44edd2f9f70e494e98da8a3d874d18006ae5e0eb5f7060b98b402094d6045e800bf525586f2566e6f554a8b2999cce37bdcc5472a0 SHA512 1cf0bb6ef93da3abbd1a66878462b1b8672a9b8fccd7f968b427e429caa6ecf30cb703a6060d621ccad1ba77b927d2b0e632b04b0a47975918ccbfcc5f2b85f7 diff --git a/dev-python/django/django-4.1.5.ebuild b/dev-python/django/django-4.1.5.ebuild new file mode 100644 index 000000000000..7aeae03c53af --- /dev/null +++ b/dev-python/django/django-4.1.5.ebuild @@ -0,0 +1,103 @@ +# 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_{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 ~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.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 +} |