Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mysql-connector-python/
Date: Fri, 01 Jun 2018 20:01:02
Message-Id: 1527883243.0acfbd4877d75c0f94f06017e99c5dd228e4e26e.grknight@gentoo
1 commit: 0acfbd4877d75c0f94f06017e99c5dd228e4e26e
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 1 20:00:43 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 1 20:00:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0acfbd48
7
8 dev-python/mysql-connector-python: Revbump for python 3.6
9
10 Compile tests OK
11
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13
14 .../mysql-connector-python-2.1.7-r1.ebuild | 37 ++++++++++++++++++++++
15 1 file changed, 37 insertions(+)
16
17 diff --git a/dev-python/mysql-connector-python/mysql-connector-python-2.1.7-r1.ebuild b/dev-python/mysql-connector-python/mysql-connector-python-2.1.7-r1.ebuild
18 new file mode 100644
19 index 00000000000..00b4a6a06ca
20 --- /dev/null
21 +++ b/dev-python/mysql-connector-python/mysql-connector-python-2.1.7-r1.ebuild
22 @@ -0,0 +1,37 @@
23 +# Copyright 1999-2018 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +PYTHON_COMPAT=( python{2_7,3_5,3_6} )
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Python client library for MariaDB/MySQL"
32 +HOMEPAGE="https://dev.mysql.com/downloads/connector/python/"
33 +SRC_URI="https://dev.mysql.com/get/Downloads/Connector-Python/${P}.tar.gz"
34 +
35 +KEYWORDS="~amd64 ~arm ~x86"
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +IUSE="examples test"
39 +
40 +# tests/mysqld.py does not like MariaDB version strings.
41 +# See the regex MySQLServerBase._get_version.
42 +DEPEND="test? ( dev-db/mysql[server(+)] )"
43 +
44 +# Tests currently fail.
45 +# mysql.connector.errors.DatabaseError: 1300 (HY000): Invalid utf8 character string: ''
46 +RESTRICT="test"
47 +
48 +DOCS=( README.txt CHANGES.txt docs/README_DOCS.txt )
49 +
50 +python_test() {
51 + "${EPYTHON}" unittests.py --with-mysql="${EPREFIX%/}/usr" --unix-socket="${T}" --mysql-topdir="${T}"
52 +}
53 +
54 +python_install_all(){
55 + distutils-r1_python_install_all
56 + if use examples ; then
57 + dodoc -r examples
58 + fi
59 +}