dev-python/polyfactory: new package, add 3.3.0

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander
2026-03-12 15:55:36 +01:00
parent f80df08ad8
commit 5687f26a0f
3 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST polyfactory-3.3.0.tar.gz 348668 BLAKE2B c677270f15d5fc951873402a464d81b88ef43f6a37679551f60821d00939161b9d0663de918f96414bbaa8cc2eae4442b1b5f83fb8c24203e92b3f381839a9ce SHA512 acea2fd2221024710ce0e6683b10d6af36214d87672b6f0293298de4a4abdf6d9cd2905132d8a42012bdc949cd591522719499924f18b8ce200fc077df9e7dc5
DIST polyfactory-3.3.0.tar.gz.provenance 9815 BLAKE2B 6d0056a4e692f08209e647fe779e9106b62b8a0b8fa5c3f22393fb9b6bf2ef5796b2a27abe5967e042885d361cb4b245b5f9ebec65840dfd2a1fc14923836149 SHA512 ff5604b61941d518ccc840db19e2298aea4ccc9e37409795347b73d8fb03177506440d8a4e55245a4db5dec6d368bd75648ad50f6a97727614b8c522908c87a6

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>negril.nx+gentoo@gmail.com</email>
<name>Paul Zander</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="github">litestar-org/polyfactory</remote-id>
<remote-id type="pypi">polyfactory</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,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
}