| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.13.1 | 8 | ~amd64 ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYPI_VERIFY_REPO=https://github.com/pydantic/pydantic-settings
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1 pypi
DESCRIPTION="Settings management using Pydantic"
HOMEPAGE="https://docs.pydantic.dev/latest/concepts/pydantic_settings"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="toml yaml"
RDEPEND=">=dev-python/pydantic-2.7.0[${PYTHON_USEDEP}]
>=dev-python/python-dotenv-0.21.0[${PYTHON_USEDEP}]
>=dev-python/typing-inspection-0.4.0[${PYTHON_USEDEP}]
toml? ( >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] )
yaml? ( >=dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}] )
"
BDEPEND="test? (
dev-python/moto[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( pytest-{examples,mock} )
distutils_enable_tests pytest
EPYTEST_IGNORE=(
# https://gitlab.archlinux.org/archlinux/packaging/packages/python-pydantic-settings/-/blob/main/PKGBUILD
# we don't yet have azure integration in the repos E ModuleNotFoundError: No module named 'azure.keyvault'
tests/test_source_azure_key_vault.py
# we don't yet have gcp integration in the repos
tests/test_source_gcp_secret_manager.py
)
EPYTEST_DESELECT=(
# ModuleNotFoundError: No module named 'azure'
'tests/test_docs.py::test_docs_examples[docs/index.md:2344-2387]'
'tests/test_docs.py::test_docs_examples[docs/index.md:2393-2424]'
'tests/test_docs.py::test_docs_examples[docs/index.md:2434-2467]'
)
>=dev-python/pydantic-2.7.0[${PYTHON_USEDEP}]
>=dev-python/python-dotenv-0.21.0[${PYTHON_USEDEP}]
>=dev-python/typing-inspection-0.4.0[${PYTHON_USEDEP}]
toml? ( >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] )
yaml? ( >=dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}] )
test? (
dev-python/moto[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
)