dev-python/pytest-django - 4.14.0 (gentoo)

Search

Install

Install this version:

emerge -a =dev-python/pytest-django-4.14.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/pytest-django-4.14.0

Or alternatively:

emerge --autounmask-write -a =dev-python/pytest-django-4.14.0

Package Information

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/
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
4.14.0 8 ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/pytest-dev/pytest-django
PYTHON_COMPAT=( python3_{12..15} )

inherit distutils-r1 pypi

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/
"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~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-5.2[${PYTHON_USEDEP}]
		>=dev-python/django-configurations-2.0[${PYTHON_USEDEP}]
	)
"

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
}

Inherited Eclasses

Dependencies

RDEPEND

	>=dev-python/pytest-7.0.0[]

BDEPEND

	>=dev-python/setuptools-scm-1.11.1[]
	test? (
		>=dev-python/django-5.2[]
		>=dev-python/django-configurations-2.0[]
	)