mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-13 17:13:00 -04:00
dev-python/zodbpickle: fix deps and tests
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
30
dev-python/zodbpickle/zodbpickle-3.0.1-r1.ebuild
Normal file
30
dev-python/zodbpickle/zodbpickle-3.0.1-r1.ebuild
Normal 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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user