dev-python/factory-boy: enable py3.11

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-03-16 18:46:40 +05:00
parent 14967e96f5
commit 116da163ae
3 changed files with 44 additions and 45 deletions

View File

@@ -1 +1 @@
DIST factory_boy-3.2.1.gh.tar.gz 141947 BLAKE2B f7668e945c653276fdf8c28aca728e4dd0aa24e980868a22e116cdb6395170f37f60d9b021c915586681b93d84a50f254b6d4a0b8f75e15991fac91aa4b17e0c SHA512 45f88970fa2adf15160d489335d7843ebf78178ae619e6b1ad2cc2e3af8e6c14763cf1afe21bc4e66d1d7196458d8045862db4d5878d5cfc1f2aa658ccba1812
DIST factory_boy-3.2.1.tar.gz 153483 BLAKE2B e527a04b5371289beb6ae765ccf116b1171d3293cd7bf0ef240ecf17b7806d0ed6db4a97d9c3c4cc22d93c1eaa96888046bdfa7aa1b2d9910257165266ce9828 SHA512 21ad111c648f3ff444cc2310479464334eb4c5b16ed04a592fb9152397f9bf6c044d235789b901f65ebf49d07a0621834ec280630279be0696ccec15ac9f15df

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="A versatile test fixtures replacement based on thoughtbot's factory_bot for Ruby"
HOMEPAGE="
https://pypi.org/project/factory-boy/
https://github.com/FactoryBoy/factory_boy
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="dev-python/Faker[${PYTHON_USEDEP}]"
BDEPEND="
test? (
dev-python/django[sqlite,${PYTHON_USEDEP}]
dev-python/pillow[jpeg,${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
)
"
EPYTEST_IGNORE=(
# depends on treecleaned dev-python/mongoengine
tests/test_mongoengine.py
)
EPYTEST_DESELECT=(
# broken
examples/flask_alchemy
)
distutils_enable_tests pytest
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme \
dev-python/sphinxcontrib-spelling

View File

@@ -1,44 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="A fixtures replacement tool"
HOMEPAGE="https://github.com/FactoryBoy/factory_boy"
SRC_URI="https://github.com/FactoryBoy/${PN}/archive/${PV}.tar.gz -> ${P/-/_}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND=">=dev-python/Faker-0.7.0[${PYTHON_USEDEP}]"
BDEPEND="
test? (
$(python_gen_impl_dep sqlite)
dev-python/django[${PYTHON_USEDEP}]
dev-python/pillow[jpeg,${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
)
doc? (
dev-python/factory-boy[${PYTHON_USEDEP}]
)
"
python_prepare_all() {
# Fix symbolic link QA
rm ChangeLog || die "remove failed"
cp docs/changelog.rst ChangeLog || die "copy failed"
# depends on masked dev-python/mongoengine
rm tests/test_mongoengine.py || die
distutils-r1_python_prepare_all
}
distutils_enable_tests --install unittest
distutils_enable_sphinx docs dev-python/sphinx-rtd-theme dev-python/sphinxcontrib-spelling