dev-python/zodbpickle: fix deps and tests

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-07-24 20:17:20 +05:00
parent 4f141e9064
commit 53a1a58467
2 changed files with 30 additions and 40 deletions

View File

@@ -0,0 +1,30 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 edo multiprocessing pypi
DESCRIPTION="Fork of Python's pickle module to work with ZODB"
HOMEPAGE="
https://pypi.org/project/zodbpickle/
https://github.com/zopefoundation/zodbpickle
"
LICENSE="PSF-2 ZPL"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
test? (
dev-python/zope-testrunner[${PYTHON_USEDEP}]
)
"
distutils_enable_tests unittest
python_test() {
edo ${EPYTHON} -m zope.testrunner --test-path=src -vv
}

View File

@@ -1,40 +0,0 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 pypi
DESCRIPTION="Fork of Python's pickle module to work with ZODB"
HOMEPAGE="https://github.com/zopefoundation/zodbpickle"
LICENSE="ZPL"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
<dev-python/packaging-22.0
test? ( dev-python/zope-testrunner[${PYTHON_USEDEP}] )
"
DEPEND="${RDEPEND}"
distutils_enable_tests setup.py
python_test() {
zope-testrunner -pvcD --usecompiled \
--path="${BUILD_DIR}/install$(python_get_sitedir)/zodbpickle" || die
}
python_install() {
# Don't install tests
# rm -r "${BUILD_DIR}/install$(python_get_sitedir)/zodbpickle/tests" || die
distutils-r1_python_install
}
python_test() {
zope-testrunner -pvc -j "$(nproc)" --usecompiled \
--path "${BUILD_DIR}/install$(python_get_sitedir)" || die
}