diff options
| author | Michał Górny <mgorny@gentoo.org> | 2026-02-15 04:02:02 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2026-02-15 04:20:04 +0100 |
| commit | 3586e933349772aaa5240e220ffece832474ac25 (patch) | |
| tree | 0b0c0df52fec43fefdb66cf8011e063f9395c8c5 /dev-python | |
| parent | 01ae71314d730063579a45f2921f407003b3dc83 (diff) | |
| download | gentoo-3586e933349772aaa5240e220ffece832474ac25.tar.gz gentoo-3586e933349772aaa5240e220ffece832474ac25.tar.bz2 gentoo-3586e933349772aaa5240e220ffece832474ac25.zip | |
dev-python/pytest-django: Bump to 4.12.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pytest-django/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pytest-django/pytest-django-4.12.0.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/pytest-django/Manifest b/dev-python/pytest-django/Manifest index 3a4ab1668315..9ea13171906b 100644 --- a/dev-python/pytest-django/Manifest +++ b/dev-python/pytest-django/Manifest @@ -1 +1,2 @@ DIST pytest-django-4.11.1.gh.tar.gz 80276 BLAKE2B e63195b133f5b619ca9edefa5e0849741848d207700de4b531d26e464e5d4554c229158d47f23717ab96b72783525646241e8fe93eea5d5dbe46a727ec3370b9 SHA512 2c6732277e339c0731214af7dfd06618c29393a9b06fe009beac15ac9aba568763f1595315eaa3416cbaa292a9e44ee1d608d265c148d95e1c8679f5b534f064 +DIST pytest-django-4.12.0.gh.tar.gz 85134 BLAKE2B 36c697fbc97469015170d34fa6e4e3fd9330d78753b6e29caee8ff40dbeddaf29e3dfa12c9bb2332ac3667ca1360254ee4db103ae69e8c6b6c7c6b7bc82ff353 SHA512 054a37b652831838b13ea0480855b2d3c5008ec9d75dae88e9bf8b8f2eac0bc7b69eb9dae46c45ba0e39019f265b5a8cfff7a8d144eae8e8dc4dfb4ea222a266 diff --git a/dev-python/pytest-django/pytest-django-4.12.0.ebuild b/dev-python/pytest-django/pytest-django-4.12.0.ebuild new file mode 100644 index 000000000000..10f6acf08d15 --- /dev/null +++ b/dev-python/pytest-django/pytest-django-4.12.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..14} ) + +inherit distutils-r1 + +DESCRIPTION="A Django plugin for pytest" +HOMEPAGE=" + https://pypi.org/project/pytest-django/ + https://pytest-django.readthedocs.io/ + https://github.com/pytest-dev/pytest-django/ +" +SRC_URI=" + https://github.com/pytest-dev/pytest-django/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + >=dev-python/pytest-7.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools-scm-1.11.1[${PYTHON_USEDEP}] + test? ( + dev-python/django[${PYTHON_USEDEP}] + >=dev-python/django-configurations-2.0[${PYTHON_USEDEP}] + ) +" + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +EPYTEST_PLUGIN_LOAD_VIA_ENV=1 +EPYTEST_PLUGINS=( "${PN}" pytest-xdist ) +distutils_enable_tests pytest + +python_test() { + local -x DJANGO_SETTINGS_MODULE + local -x PYTHONPATH=${PWD} + for DJANGO_SETTINGS_MODULE in pytest_django_test.settings_sqlite{,_file}; do + einfo "Testing ${DJANGO_SETTINGS_MODULE}" + epytest tests + done +} |
