Gentoo Archives: gentoo-commits

From: Johann Schmitz <ercpe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-sqlparse/
Date: Thu, 25 Aug 2016 04:25:56
Message-Id: 1472099144.d0e148d5b79f2f3a1e8f5b879f46fa59a151fe81.ercpe@gentoo
1 commit: d0e148d5b79f2f3a1e8f5b879f46fa59a151fe81
2 Author: Johann Schmitz <ercpe <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 25 04:25:44 2016 +0000
4 Commit: Johann Schmitz <ercpe <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 25 04:25:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0e148d5
7
8 dev-python/python-sqlparse: Version bump to 0.2.1
9
10 Package-Manager: portage-2.2.28
11
12 dev-python/python-sqlparse/Manifest | 1 +
13 .../python-sqlparse/python-sqlparse-0.2.1.ebuild | 57 ++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/dev-python/python-sqlparse/Manifest b/dev-python/python-sqlparse/Manifest
17 index 69c0ec3..c3ee2c4 100644
18 --- a/dev-python/python-sqlparse/Manifest
19 +++ b/dev-python/python-sqlparse/Manifest
20 @@ -5,3 +5,4 @@ DIST sqlparse-0.1.15.tar.gz 57863 SHA256 ce92c9f134b1cd461a27c502197464b5f245261
21 DIST sqlparse-0.1.16.tar.gz 58418 SHA256 678c6c36ca4b01405177da8b84eecf92ec92c9f6c762396c965bb5d305f20f81 SHA512 2561ed970340eb99b575626fd8bb7253f522507628ed86256a32e7bd7dd438b7f4bec0adf1d7298a2903411d2623cb5a4ba6f53c794bcc38b695e2ddf26c488c WHIRLPOOL 8c2f01c4bda48e190668bb34cbabc1bc775a224432ca9ea638f4c350fe493c8705d171f4f6c40063e8c7546502249cec3bfa73d5f6f6e47b918cdba8a5cdcafc
22 DIST sqlparse-0.1.18.tar.gz 58594 SHA256 39b196c4a06f76d6ac82f029457ca961f662a8bbbb2694eb1dfe4f2b68a2d7cf SHA512 78d20af3945140ff82d9ac9411eed57e0515a755ecafa407fbd7cdcca27b06a72b4e67f1fa22ccadcaa59827814f0ef58db68f236ca142b5663236d31c80820e WHIRLPOOL 129176182f532886cfeebce6a9512bfba6068e4728372761d97ac7214202577df1b1464f188be302827f2b7264c9596027475282bc81f9d8cee4506405627890
23 DIST sqlparse-0.1.19.tar.gz 58132 SHA256 d896be1a1c7f24bffe08d7a64e6f0176b260e281c5f3685afe7826f8bada4ee8 SHA512 805e737c004eec721bc1fbdea0b89516de7172cb4431736817a2b5b44e2a1f0e5e23a09b07bcd9455679db9bf586f0baf9e3f0c50c389c4b80f116b662d407ed WHIRLPOOL 13befd5bdcc06ee7a543a0d31cf4f1764a6fc07f93214dc13508df0779fa98672c623fb73bf3cc3d3741311daab1596cb3e2202cbf9fe0440fc94b7f6f483b5e
24 +DIST sqlparse-0.2.1.tar.gz 53463 SHA256 1c98a2bdffe67f1bb817b72a7ba4d38be592e0f07c5acea4adebcec12c4377d1 SHA512 8f70677c73cb3bb2ac11d6b90fd86f6f874b3ba4b402bb776f716d75103c3768c385dbe403290c167f76874e92c36ac4deb1ca3c5d5f6fbc69bed0935505d5ef WHIRLPOOL 65c5ee607e98deda807443b2aa92a05d9fe9087e0fd0f353b77b36bbc1064e5aa25639b4351ed104254821b012d0b5718d5df777a277be4f0d16dd35109e2b69
25
26 diff --git a/dev-python/python-sqlparse/python-sqlparse-0.2.1.ebuild b/dev-python/python-sqlparse/python-sqlparse-0.2.1.ebuild
27 new file mode 100644
28 index 00000000..00abdff
29 --- /dev/null
30 +++ b/dev-python/python-sqlparse/python-sqlparse-0.2.1.ebuild
31 @@ -0,0 +1,57 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
39 +
40 +inherit distutils-r1
41 +
42 +MY_PN="${PN##python-}"
43 +MY_P="${MY_PN}-${PV}"
44 +
45 +DESCRIPTION="A non-validating SQL parser module for Python"
46 +HOMEPAGE="https://code.google.com/p/python-sqlparse/ https://github.com/andialbrecht/sqlparse"
47 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
48 +
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
51 +LICENSE="BSD-2"
52 +IUSE="doc test"
53 +
54 +REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
55 +
56 +DEPEND="
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
59 + test? (
60 + dev-python/pytest[${PYTHON_USEDEP}]
61 + dev-python/pytest-cov[${PYTHON_USEDEP}]
62 + )"
63 +# Required for running tests
64 +DISTUTILS_IN_SOURCE_BUILD=1
65 +
66 +S="${WORKDIR}"/${P#python-}
67 +
68 +pkg_setup() {
69 + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
70 +}
71 +
72 +python_compile_all() {
73 + use doc && emake -C docs html
74 +}
75 +
76 +python_test() {
77 + if python_is_python3; then
78 + 2to3 -w --no-diffs -n tests/ sqlparse/
79 + py.test ./tests || die "testsuite failed ${EPYTHON}"
80 + else
81 + py.test tests || die "testsuite failed under ${EPYTHON}"
82 + fi
83 +}
84 +
85 +python_install_all() {
86 + use doc && local HTML_DOCS=( docs/build/html/. )
87 + distutils-r1_python_install_all
88 +}