mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 08:18:49 -04:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# Copyright 2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=hatchling
|
|
PYTHON_COMPAT=( python3_{11..12} )
|
|
|
|
inherit distutils-r1 pypi
|
|
|
|
DESCRIPTION="Settings management using Pydantic"
|
|
HOMEPAGE="
|
|
https://pypi.org/project/pydantic-settings/
|
|
https://github.com/pydantic/pydantic-settings
|
|
"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="
|
|
>=dev-python/pydantic-2.7.0[${PYTHON_USEDEP}]
|
|
dev-python/pydantic-core[${PYTHON_USEDEP}]
|
|
>=dev-python/python-dotenv-0.21.0[${PYTHON_USEDEP}]
|
|
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
|
"
|
|
BDEPEND="
|
|
test? (
|
|
dev-python/annotated-types[${PYTHON_USEDEP}]
|
|
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
dev-python/tomli[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
EPYTEST_IGNORE=( tests/test_docs.py )
|
|
EPYTEST_DESELECT=(
|
|
tests/test_settings.py::test_ignore_empty_with_dotenv_when_empty_uses_default
|
|
tests/test_settings.py::test_ignore_empty_with_dotenv_when_not_empty_uses_value
|
|
tests/test_settings.py::test_protected_namespace_defaults
|
|
tests/test_settings.py::test_cli_help_differentiation
|
|
)
|
|
|
|
distutils_enable_tests pytest
|