mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-python/factory_boy: version bump 3.1.0, add py3.9
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST factory_boy-2.12.0.tar.gz 142758 BLAKE2B ce5ebae106fd57ce5292ad4713e20e5a83a818675746dd3bb241ad3592da83975b87659547740a3cddb646795889605260ce24d6f1878994418eec35c9b7b8da SHA512 33236bc02d5331998bb210af498bea46fc9540e66af32db8fdab563193b7ae8870e7cc01c93c24a03ee23ba64bac6ca27a72bb51a264d1c7b6bf9b098c65d5d2
|
||||
DIST factory_boy-3.0.1.tar.gz 143652 BLAKE2B 38b21722e9fa5dc248342f7fb3f03126f05aefda052d6e65f7f932c68655aad108bbe0a7f2d643825f475b1ccd33406e1c1b4946413e5ae050a78ba5617decd4 SHA512 8e1611e04b40a14d333a33e0f3a938cdf43895fc0559618d06b9acec903829db59c62c34c01f3c8a79e7419bbe347147e1d6a0f106928a334eab505dd04b1890
|
||||
DIST factory_boy-3.1.0.tar.gz 144612 BLAKE2B 75968ed836183ccaabe229f5866ed409d38e5c57cca0cf2e54ed737116bad5632dee8f79004be26ff9ed2cf8a270a4e7f2318ab83f1e0f443a6f4b5f0b77cf26 SHA512 6fff7b26f1a8a2c533591699527f40d922f287663fe4fab3ce38204651d57bd6b287a4e01e5e0195cf5337cc48b25db0e97f64acd5b5b3799f3814f14da8e5a5
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
|
||||
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}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="dev-python/faker[${PYTHON_USEDEP}]"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
$(python_gen_impl_dep sqlite)
|
||||
dev-python/django[${PYTHON_USEDEP}]
|
||||
dev-python/mongoengine[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[jpeg,${PYTHON_USEDEP}]
|
||||
dev-python/sqlalchemy[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
#not really needed
|
||||
# dev-python/isort[${PYTHON_USEDEP}]
|
||||
|
||||
# Disable tests which require running mongod
|
||||
PATCHES=( "${FILESDIR}/${PN}-2.11.1-test.patch" )
|
||||
|
||||
python_prepare_all() {
|
||||
# Fix symbolic link QA
|
||||
rm ChangeLog || die "remove failed"
|
||||
cp docs/changelog.rst ChangeLog || die "copy failed"
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
distutils_enable_tests unittest
|
||||
distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -42,5 +42,5 @@ python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
distutils_enable_tests unittest
|
||||
distutils_enable_tests --install unittest
|
||||
distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
|
||||
@@ -1,22 +0,0 @@
|
||||
--- ../tests/test_mongoengine.py 2018-12-22 16:22:00.168173656 +0200
|
||||
+++ ../tests/test_mongoengine.py 2018-12-22 16:22:23.207181092 +0200
|
||||
@@ -58,9 +58,6 @@
|
||||
)
|
||||
|
||||
@classmethod
|
||||
- def tearDownClass(cls):
|
||||
- cls.db.drop_database(cls.db_name)
|
||||
-
|
||||
def setUp(self):
|
||||
mongoengine.connect('factory_boy_test')
|
||||
|
||||
@@ -69,9 +66,3 @@
|
||||
self.assertEqual('name0', std.name)
|
||||
self.assertEqual('street0', std.address.street)
|
||||
self.assertIsNone(std.id)
|
||||
-
|
||||
- def test_creation(self):
|
||||
- std1 = PersonFactory.create()
|
||||
- self.assertEqual('name1', std1.name)
|
||||
- self.assertEqual('street1', std1.address.street)
|
||||
- self.assertIsNotNone(std1.id)
|
||||
Reference in New Issue
Block a user