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