Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-sqlparse/
Date: Mon, 19 Feb 2018 00:54:36
Message-Id: 1519001642.86ae6c29e37a11fdd2b58fed0e61892a21883026.prometheanfire@gentoo
1 commit: 86ae6c29e37a11fdd2b58fed0e61892a21883026
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 18 23:50:28 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 19 00:54:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86ae6c29
7
8 dev-python/python-sqlparse: 0.2.4 bup
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-python/python-sqlparse/Manifest | 1 +
13 .../python-sqlparse/python-sqlparse-0.2.4.ebuild | 56 ++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/dev-python/python-sqlparse/Manifest b/dev-python/python-sqlparse/Manifest
17 index 7071da99952..af1f8279d8e 100644
18 --- a/dev-python/python-sqlparse/Manifest
19 +++ b/dev-python/python-sqlparse/Manifest
20 @@ -1 +1,2 @@
21 DIST sqlparse-0.2.3.tar.gz 60742 BLAKE2B 38d3f17d196d3a1d50ea75810b5bd3a890c6f4b12195621d571d62b8c40e2e2d13034deddd95288df37a15daba28153a5ca9221b78bfff1c0e3bc37eddca2dba SHA512 ec654e680f8ce423a89da92c4c74f85e652bebb19e9a40ab0b8067f61803897e49e1e6f8dd1ab454b1ed130974d76b4f973c799264fd4bf8a87f034ba9c44835
22 +DIST sqlparse-0.2.4.tar.gz 61614 BLAKE2B 2462fa5d77ca2c3028aa3539bedc3cb2d7abd35db3c736ffd8abad8626a33174787f0079453ec646739749c8860fce0f1c7d815e6a8485c24b851a40b5bf3b87 SHA512 abea0f084778976f2d1086006eaa88e1fc1d2580654d063b35557a44d9d9727b410a022e8ea06ae3b265f2829d49c48d347dddc61f2e56be9c3d6207104712b2
23
24 diff --git a/dev-python/python-sqlparse/python-sqlparse-0.2.4.ebuild b/dev-python/python-sqlparse/python-sqlparse-0.2.4.ebuild
25 new file mode 100644
26 index 00000000000..aab80324cd4
27 --- /dev/null
28 +++ b/dev-python/python-sqlparse/python-sqlparse-0.2.4.ebuild
29 @@ -0,0 +1,56 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
36 +
37 +inherit distutils-r1
38 +
39 +MY_PN="${PN##python-}"
40 +MY_P="${MY_PN}-${PV}"
41 +
42 +DESCRIPTION="A non-validating SQL parser module for Python"
43 +HOMEPAGE="https://github.com/andialbrecht/sqlparse"
44 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
45 +
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
48 +LICENSE="BSD-2"
49 +IUSE="doc test"
50 +
51 +REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
52 +
53 +DEPEND="
54 + dev-python/setuptools[${PYTHON_USEDEP}]
55 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
56 + test? (
57 + dev-python/pytest[${PYTHON_USEDEP}]
58 + dev-python/pytest-cov[${PYTHON_USEDEP}]
59 + )"
60 +# Required for running tests
61 +DISTUTILS_IN_SOURCE_BUILD=1
62 +
63 +S="${WORKDIR}"/${P#python-}
64 +
65 +pkg_setup() {
66 + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
67 +}
68 +
69 +python_compile_all() {
70 + use doc && emake -C docs html
71 +}
72 +
73 +python_test() {
74 + if python_is_python3; then
75 + 2to3 -w --no-diffs -n tests/ sqlparse/
76 + py.test ./tests || die "testsuite failed ${EPYTHON}"
77 + else
78 + py.test tests || die "testsuite failed under ${EPYTHON}"
79 + fi
80 +}
81 +
82 +python_install_all() {
83 + use doc && local HTML_DOCS=( docs/build/html/. )
84 + distutils-r1_python_install_all
85 +}