From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1883C13835A for ; Sun, 26 Jul 2020 01:46:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2239FE0867; Sun, 26 Jul 2020 01:46:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0A7C0E0867 for ; Sun, 26 Jul 2020 01:46:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4C6C834F2AE for ; Sun, 26 Jul 2020 01:46:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 55DD02F4 for ; Sun, 26 Jul 2020 01:46:20 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1595727966.1abd8e4b908889deeecac3517c2aa1d940b80699.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mysql-connector-python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mysql-connector-python/Manifest dev-python/mysql-connector-python/mysql-connector-python-8.0.21.ebuild X-VCS-Directories: dev-python/mysql-connector-python/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 1abd8e4b908889deeecac3517c2aa1d940b80699 X-VCS-Branch: master Date: Sun, 26 Jul 2020 01:46:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7b195313-edd7-40c0-b653-4e0d59f949bd X-Archives-Hash: 4cc60f8d4cfec967ba82ad9d85db503e commit: 1abd8e4b908889deeecac3517c2aa1d940b80699 Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Jul 26 01:40:51 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun Jul 26 01:46:06 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1abd8e4b dev-python/mysql-connector-python: bump to v8.0.21 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Thomas Deutschmann gentoo.org> dev-python/mysql-connector-python/Manifest | 1 + .../mysql-connector-python-8.0.21.ebuild | 53 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/dev-python/mysql-connector-python/Manifest b/dev-python/mysql-connector-python/Manifest index f5a6ffea00f..078755c5936 100644 --- a/dev-python/mysql-connector-python/Manifest +++ b/dev-python/mysql-connector-python/Manifest @@ -1 +1,2 @@ DIST mysql-connector-python-8.0.20.tar.gz 12058227 BLAKE2B ac16d0eb7ccc884e89bd493ce821b06223c7ea7a4c4ffce2ebc586c736524d826d92d3e3c7803c1f937c93a9f28df32205a04b3bd80474650e90bc267661879d SHA512 3b7298036f1b28eed98ca05ebc52619dbdf65393b4a01bf6eccea87d298da430ecfd19a3b327050ebc48b2c237698c7545c0196949d84cb79117f4d767d736aa +DIST mysql-connector-python-8.0.21.tar.gz 12069002 BLAKE2B db4e7672f0daace08c88e52560db66629d5eb9d9903b76e616bed7ef4a21d80139a65ac24d47d16f9fa5e978f3acb262292c72933f0c348d9494cd51f96f1654 SHA512 d73efd99774450bbf729ddbb19b80d09b8db151715d12b76e40497bf1d9ff658e0ad1e22dc9a73dd5f6736f7c075f94808a2f28b1c975aaa380bbb92cf4e7184 diff --git a/dev-python/mysql-connector-python/mysql-connector-python-8.0.21.ebuild b/dev-python/mysql-connector-python/mysql-connector-python-8.0.21.ebuild new file mode 100644 index 00000000000..b6c5eebd14b --- /dev/null +++ b/dev-python/mysql-connector-python/mysql-connector-python-8.0.21.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit distutils-r1 + +DESCRIPTION="Python client library for MariaDB/MySQL" +HOMEPAGE="https://dev.mysql.com/downloads/connector/python/" +SRC_URI="https://dev.mysql.com/get/Downloads/Connector-Python/${P}.tar.gz" + +KEYWORDS="~amd64 ~arm ~x86" +LICENSE="GPL-2" +SLOT="0" +IUSE="examples test" + +BDEPEND=">=dev-libs/protobuf-3.6.1" + +RDEPEND=" + >=dev-db/mysql-connector-c-8.0 + >=dev-python/protobuf-python-3.6.1[${PYTHON_USEDEP}] + dev-python/dnspython[${PYTHON_USEDEP}] +" +# tests/mysqld.py does not like MariaDB version strings. +# See the regex MySQLServerBase._get_version. +DEPEND="${RDEPEND} test? ( dev-db/mysql[server(+)] )" + +# Tests currently fail. +# mysql.connector.errors.DatabaseError: 1300 (HY000): Invalid utf8 character string: '' +RESTRICT="test" + +DOCS=( README.txt CHANGES.txt README.rst ) + +python_test() { + "${EPYTHON}" unittests.py --with-mysql="${EPREFIX}/usr" --unix-socket="${T}" --mysql-topdir="${T}" +} + +# Yeah, this is really broken, but the extension will only build this way during "install" +python_install() { + distutils-r1_python_install \ + --with-mysql-capi="${EPREFIX}/usr" \ + --with-protobuf-include-dir="${EPREFIX}/usr/include/google/protobuf/" \ + --with-protobuf-lib-dir="${EPREFIX}/usr/$(get_libdir)" \ + --with-protoc="${EPREFIX}/usr/bin/protoc" +} + +python_install_all() { + distutils-r1_python_install_all + if use examples ; then + dodoc -r examples + fi +}