public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Virgil Dupras" <vdupras@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-sqlparse/
Date: Tue,  2 Apr 2019 17:34:44 +0000 (UTC)	[thread overview]
Message-ID: <1554225814.f216cea1c7798ed8c7ac126db24a62a37213677c.vdupras@gentoo> (raw)

commit:     f216cea1c7798ed8c7ac126db24a62a37213677c
Author:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  2 17:23:34 2019 +0000
Commit:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
CommitDate: Tue Apr  2 17:23:34 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f216cea1

dev-python/python-sqlparse: add py37 compat and cleanup ebuild

Most of the hoops that were present to build doc and run tests weren't
actually necessary.

Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 .../python-sqlparse/python-sqlparse-0.3.0.ebuild   | 22 +++-------------------
 1 file changed, 3 insertions(+), 19 deletions(-)

diff --git a/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild b/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild
index 8d9e4eac466..eca64775215 100644
--- a/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild
+++ b/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy )
 
 inherit distutils-r1
 
@@ -19,35 +19,19 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~a
 LICENSE="BSD-2"
 IUSE="doc test"
 
-REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
-
 DEPEND="
 	dev-python/setuptools[${PYTHON_USEDEP}]
 	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
-	test? (
-		dev-python/pytest[${PYTHON_USEDEP}]
-		dev-python/pytest-cov[${PYTHON_USEDEP}]
-		)"
-# Required for running tests
-DISTUTILS_IN_SOURCE_BUILD=1
+	test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
 
 S="${WORKDIR}"/${P#python-}
 
-pkg_setup() {
-	use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
-}
-
 python_compile_all() {
 	use doc && emake -C docs html
 }
 
 python_test() {
-	if python_is_python3; then
-		2to3 -w --no-diffs -n tests/ sqlparse/
-		py.test ./tests || die "testsuite failed ${EPYTHON}"
-	else
-		py.test tests || die "testsuite failed under ${EPYTHON}"
-	fi
+	pytest tests || die "testsuite failed under ${EPYTHON}"
 }
 
 python_install_all() {


             reply	other threads:[~2019-04-02 17:34 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-02 17:34 Virgil Dupras [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-08  8:25 [gentoo-commits] repo/gentoo:master commit in: dev-python/python-sqlparse/ Michał Górny
2020-03-08  8:25 Michał Górny
2020-03-07 11:06 Agostino Sarubbo
2020-03-07 11:03 Agostino Sarubbo
2020-03-07 10:58 Agostino Sarubbo
2020-03-07 10:54 Agostino Sarubbo
2020-03-07 10:50 Agostino Sarubbo
2020-03-07  9:44 Agostino Sarubbo
2020-03-07  8:59 Agostino Sarubbo
2020-03-07  8:25 Agostino Sarubbo
2020-03-06 12:05 Michał Górny
2020-03-06 12:05 Michał Górny
2020-03-06 12:05 Michał Górny
2020-02-05 21:28 Andreas Sturmlechner
2019-11-25 19:18 Rick Farina
2019-03-21 19:09 William Hubbs
2018-12-08 17:41 Mikle Kolyada
2018-02-19  0:54 Matt Thode
2018-02-05 21:54 Michał Górny
2017-08-28  0:47 Matt Thode
2017-05-11 13:09 Manuel Rüger
2017-03-26  4:16 Matt Thode
2017-02-27  2:51 Matt Thode
2017-02-24 18:03 Markus Meier
2017-01-25 11:48 Tobias Klausmann
2017-01-23 16:27 Agostino Sarubbo
2017-01-23  6:11 Jeroen Roovers
2017-01-21 20:33 Agostino Sarubbo
2017-01-19 10:59 Agostino Sarubbo
2017-01-18 16:52 Agostino Sarubbo
2016-08-25  4:25 Johann Schmitz
2016-06-08  7:08 Michał Górny
2016-03-25  3:43 Matt Thode
2016-02-28  7:25 Matt Thode
2016-02-01 13:44 Tobias Klausmann
2016-01-25  8:31 Justin Lecher
2015-11-08 19:34 Mikle Kolyada
2015-10-26 13:35 Justin Lecher
2015-10-15  8:26 Justin Lecher
2015-09-29 13:03 Tobias Klausmann
2015-08-16 20:19 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1554225814.f216cea1c7798ed8c7ac126db24a62a37213677c.vdupras@gentoo \
    --to=vdupras@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox