summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/mycli/mycli-9999.ebuild')
-rw-r--r--dev-db/mycli/mycli-9999.ebuild27
1 files changed, 16 insertions, 11 deletions
diff --git a/dev-db/mycli/mycli-9999.ebuild b/dev-db/mycli/mycli-9999.ebuild
index 544eb50eeb4..272605957e9 100644
--- a/dev-db/mycli/mycli-9999.ebuild
+++ b/dev-db/mycli/mycli-9999.ebuild
@@ -3,18 +3,16 @@
EAPI=7
-PYTHON_COMPAT=( python3_{8..9} )
+PYTHON_COMPAT=( python3_{8..10} )
DISTUTILS_SINGLE_IMPL=yes
EGIT_REPO_URI="https://github.com/dbcli/mycli.git"
inherit distutils-r1 git-r3
DESCRIPTION="CLI for MySQL Database with auto-completion and syntax highlighting"
HOMEPAGE="https://www.mycli.net"
-SRC_URI=""
LICENSE="BSD MIT"
SLOT="0"
-KEYWORDS=""
IUSE="ssh"
RDEPEND="
@@ -33,17 +31,24 @@ RDEPEND="
<dev-python/sqlparse-0.5.0[${PYTHON_USEDEP}]
ssh? ( dev-python/paramiko[${PYTHON_USEDEP}] )')
"
+BDEPEND="
+ test? ( $(python_gen_cond_dep '
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ ') )
+"
+
distutils_enable_tests pytest
PATCHES=( "${FILESDIR}/mycli-1.21.1-fix-test-install.patch" )
python_test() {
- epytest --capture=sys \
- --doctest-modules \
- --doctest-ignore-import-errors \
- --ignore=setup.py \
- --ignore=mycli/magic.py \
- --ignore=mycli/packages/parseutils.py \
- --ignore=test/features \
- --ignore=mycli/packages/paramiko_stub/__init__.py
+ local EPYTEST_IGNORE=(
+ setup.py
+ mycli/magic.py
+ mycli/packages/parseutils.py
+ test/features
+ mycli/packages/paramiko_stub/__init__.py
+ )
+ epytest --capture=sys --doctest-modules --doctest-ignore-import-errors
}