commit: 116da163ae66e5cc6c1e6a5c498977299a9b8c41
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Mar 16 13:46:40 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Mar 16 13:46:40 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=116da163
dev-python/factory-boy: enable py3.11
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/factory-boy/Manifest | 2 +-
dev-python/factory-boy/factory-boy-3.2.1-r1.ebuild | 43 +++++++++++++++++++++
dev-python/factory-boy/factory-boy-3.2.1.ebuild | 44 ----------------------
3 files changed, 44 insertions(+), 45 deletions(-)
diff --git a/dev-python/factory-boy/Manifest b/dev-python/factory-boy/Manifest
index bcb816980..45667ee32 100644
--- a/dev-python/factory-boy/Manifest
+++ b/dev-python/factory-boy/Manifest
@@ -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
diff --git a/dev-python/factory-boy/factory-boy-3.2.1-r1.ebuild
b/dev-python/factory-boy/factory-boy-3.2.1-r1.ebuild
new file mode 100644
index 000000000..85de6e681
--- /dev/null
+++ b/dev-python/factory-boy/factory-boy-3.2.1-r1.ebuild
@@ -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
diff --git a/dev-python/factory-boy/factory-boy-3.2.1.ebuild
b/dev-python/factory-boy/factory-boy-3.2.1.ebuild
deleted file mode 100644
index ad8f1ba1d..000000000
--- a/dev-python/factory-boy/factory-boy-3.2.1.ebuild
+++ /dev/null
@@ -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