Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-sqlparse/
Date: Tue, 02 Apr 2019 17:34:49
Message-Id: 1554225814.f216cea1c7798ed8c7ac126db24a62a37213677c.vdupras@gentoo
1 commit: f216cea1c7798ed8c7ac126db24a62a37213677c
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 2 17:23:34 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 2 17:23:34 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f216cea1
7
8 dev-python/python-sqlparse: add py37 compat and cleanup ebuild
9
10 Most of the hoops that were present to build doc and run tests weren't
11 actually necessary.
12
13 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
14 Package-Manager: Portage-2.3.62, Repoman-2.3.11
15
16 .../python-sqlparse/python-sqlparse-0.3.0.ebuild | 22 +++-------------------
17 1 file changed, 3 insertions(+), 19 deletions(-)
18
19 diff --git a/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild b/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild
20 index 8d9e4eac466..eca64775215 100644
21 --- a/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild
22 +++ b/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild
23 @@ -3,7 +3,7 @@
24
25 EAPI=7
26
27 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
28 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy )
29
30 inherit distutils-r1
31
32 @@ -19,35 +19,19 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~a
33 LICENSE="BSD-2"
34 IUSE="doc test"
35
36 -REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
37 -
38 DEPEND="
39 dev-python/setuptools[${PYTHON_USEDEP}]
40 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
41 - test? (
42 - dev-python/pytest[${PYTHON_USEDEP}]
43 - dev-python/pytest-cov[${PYTHON_USEDEP}]
44 - )"
45 -# Required for running tests
46 -DISTUTILS_IN_SOURCE_BUILD=1
47 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
48
49 S="${WORKDIR}"/${P#python-}
50
51 -pkg_setup() {
52 - use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
53 -}
54 -
55 python_compile_all() {
56 use doc && emake -C docs html
57 }
58
59 python_test() {
60 - if python_is_python3; then
61 - 2to3 -w --no-diffs -n tests/ sqlparse/
62 - py.test ./tests || die "testsuite failed ${EPYTHON}"
63 - else
64 - py.test tests || die "testsuite failed under ${EPYTHON}"
65 - fi
66 + pytest tests || die "testsuite failed under ${EPYTHON}"
67 }
68
69 python_install_all() {