blob: 93c8b7cdfdf2a66be31a14ab0a31e4436862b709 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..14} )
PYPI_VERIFY_REPO=https://github.com/litestar-org/polyfactory
inherit distutils-r1 pypi
DESCRIPTION="Simple and powerful factories for mock data generation"
HOMEPAGE="
https://github.com/litestar-org/polyfactory/
https://pypi.org/project/polyfactory/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/faker-5.0.0[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.6.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/aiosqlite[${PYTHON_USEDEP}]
>=dev-python/annotated-types-0.5.0[${PYTHON_USEDEP}]
>=dev-python/attrs-22.2.0[${PYTHON_USEDEP}]
dev-python/email-validator[${PYTHON_USEDEP}]
>=dev-python/eval-type-backport-0.2.2[${PYTHON_USEDEP}]
>=dev-python/greenlet-1[${PYTHON_USEDEP}]
>=dev-python/hypothesis-6.86.2[${PYTHON_USEDEP}]
>=dev-python/msgspec-0.20.0[${PYTHON_USEDEP}]
>=dev-python/pydantic-1.10[${PYTHON_USEDEP}]
>=dev-python/sqlalchemy-1.4.29[${PYTHON_USEDEP}]
)
"
EPYTEST_IGNORE=(
# required unpackaged beanie
tests/test_beanie_factory.py
# requires unpackaged odmantic
tests/test_odmantic_factory.py
)
EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
python_test() {
epytest tests
}
|