diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-06-24 12:42:03 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-06-24 12:54:41 +0200 |
commit | ef7fc3c225f03b65b5991bf294b1091a1cfcbdf9 (patch) | |
tree | 52a437bfa3ff0048872a9c3ebc236fc753057b2d /dev-python/pymongo | |
parent | dev-python/pykerberos: Revert wrong ALLARCHES (diff) | |
download | gentoo-ef7fc3c225f03b65b5991bf294b1091a1cfcbdf9.tar.gz gentoo-ef7fc3c225f03b65b5991bf294b1091a1cfcbdf9.tar.bz2 gentoo-ef7fc3c225f03b65b5991bf294b1091a1cfcbdf9.zip |
dev-python/pymongo: Port to py3.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pymongo')
-rw-r--r-- | dev-python/pymongo/pymongo-3.10.1.ebuild | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/dev-python/pymongo/pymongo-3.10.1.ebuild b/dev-python/pymongo/pymongo-3.10.1.ebuild index be2abc3cb002..e29624b5f6c5 100644 --- a/dev-python/pymongo/pymongo-3.10.1.ebuild +++ b/dev-python/pymongo/pymongo-3.10.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} ) +PYTHON_COMPAT=( python2_7 python3_{6..9} ) inherit check-reqs distutils-r1 DESCRIPTION="Python driver for MongoDB" @@ -14,14 +14,12 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 arm64 ~hppa x86" IUSE="doc kerberos test" - RESTRICT="!test? ( test )" RDEPEND=" kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] ) " -DEPEND="${RDEPEND} - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) +BDEPEND=" test? ( >=dev-db/mongodb-2.6.0 dev-python/nose[${PYTHON_USEDEP}] @@ -29,6 +27,8 @@ DEPEND="${RDEPEND} " DISTUTILS_IN_SOURCE_BUILD=1 +distutils_enable_sphinx doc + reqcheck() { if use test; then # During the tests, database size reaches 1.5G. @@ -46,11 +46,15 @@ pkg_setup() { reqcheck pkg_setup } -python_compile_all() { - if use doc; then - mkdir html || die - sphinx-build doc html || die - fi +src_prepare() { + # network-sandbox probably + rm test/test_srv_polling.py || die + sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \ + -i test/test_client.py || die + # relies on exact exception message + sed -e 's:abstract methods:abstract:' \ + -i test/test_custom_types.py || die + distutils-r1_src_prepare } python_test() { @@ -111,9 +115,3 @@ python_test() { rm -rf "${dbpath}" || die } - -python_install_all() { - use doc && local HTML_DOCS=( html/. ) - - distutils-r1_python_install_all -} |