cleanup sqlalchemy

This commit is contained in:
2020-09-05 18:21:15 +02:00
committed by onkelbeh
parent 38615a8854
commit 3ebcb2fa67
11 changed files with 70 additions and 309 deletions
+11 -19
View File
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
PYTHON_COMPAT=( python3_{6..9} pypy3 )
PYTHON_REQ_USE="sqlite?"
inherit distutils-r1 eutils flag-o-matic
@@ -14,26 +14,23 @@ MY_P="${MY_PN}-${PV/_beta/b}"
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
HOMEPAGE="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples +sqlite test"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
IUSE="examples +sqlite test"
REQUIRED_USE="test? ( sqlite )"
RDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="
${RDEPEND}
BDEPEND="
test? (
<dev-python/pluggy-0.7s[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
)"
dev-python/mock[${PYTHON_USEDEP}]
)
"
S="${WORKDIR}/${MY_P}"
distutils_enable_tests pytest
distutils_enable_sphinx doc
python_prepare_all() {
# Disable tests hardcoding function call counts specific to Python versions.
@@ -49,12 +46,7 @@ python_compile() {
distutils-r1_python_compile
}
python_test() {
pytest -vv test || die "Testsuite failed under ${EPYTHON}"
}
python_install_all() {
use doc && HTML_DOCS=( doc/. )
use examples && dodoc -r examples
distutils-r1_python_install_all