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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AEF9715813A for ; Fri, 10 Jan 2025 20:44:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CE78E081B; Fri, 10 Jan 2025 20:44:01 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 43663E081A for ; Fri, 10 Jan 2025 20:44:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5B287342F9D for ; Fri, 10 Jan 2025 20:44:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ADE32202F for ; Fri, 10 Jan 2025 20:43:57 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1736541829.8f7a9788b5aee396cacda719ec098568f34305bc.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mysqlclient/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mysqlclient/Manifest dev-python/mysqlclient/mysqlclient-2.2.7.ebuild X-VCS-Directories: dev-python/mysqlclient/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8f7a9788b5aee396cacda719ec098568f34305bc X-VCS-Branch: master Date: Fri, 10 Jan 2025 20:43:57 +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: 3f4f8c58-6171-478d-9c9f-92e47bee8f24 X-Archives-Hash: 3172d883597078ce8d36c993fbfd92f3 commit: 8f7a9788b5aee396cacda719ec098568f34305bc Author: Michał Górny gentoo org> AuthorDate: Fri Jan 10 20:02:17 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jan 10 20:43:49 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f7a9788 dev-python/mysqlclient: Bump to 2.2.7 Signed-off-by: Michał Górny gentoo.org> dev-python/mysqlclient/Manifest | 1 + dev-python/mysqlclient/mysqlclient-2.2.7.ebuild | 93 +++++++++++++++++++++++++ 2 files changed, 94 insertions(+) diff --git a/dev-python/mysqlclient/Manifest b/dev-python/mysqlclient/Manifest index d37be360b1a3..ab6a05970b33 100644 --- a/dev-python/mysqlclient/Manifest +++ b/dev-python/mysqlclient/Manifest @@ -1 +1,2 @@ DIST mysqlclient-2.2.6.tar.gz 91055 BLAKE2B e515e693100135404bf00a41b7fe0364c8276ee1be847b22ef014bb01ef065a0bbb12cb2becbdb27a1b2a9528d43c668ba36ec25f8b43adffcc5762ed641a011 SHA512 cb5f9e8e0c8bfc8d1360a3ca03d6961b4e083ce25727d0340727e3d70816d37147ebce8507eb1a2c42e093b63ba375f9806958834c0703abe7c27908c7a094d1 +DIST mysqlclient-2.2.7.tar.gz 91383 BLAKE2B a09735acfb00abb5dd8dc46265aa3daa756217763593143cc3ea31cfbb01e08b2e51f00845e8806a6a4d1cb9c04c40c2228e41cfad3a3b4f45a82f6dcb752950 SHA512 085141575d4b1ce87a1fa1d69c235a6f0ad3b57c3aebac83739dddbe86a2cca8321cfa99332efafd8ac76f1d0dd3bcf03232756a1c26da02616a8adf9db57e29 diff --git a/dev-python/mysqlclient/mysqlclient-2.2.7.ebuild b/dev-python/mysqlclient/mysqlclient-2.2.7.ebuild new file mode 100644 index 000000000000..799b6fa602ec --- /dev/null +++ b/dev-python/mysqlclient/mysqlclient-2.2.7.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python interface to MySQL" +HOMEPAGE=" + https://pypi.org/project/mysqlclient/ + https://github.com/PyMySQL/mysqlclient/ +" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +DEPEND=" + dev-db/mysql-connector-c:0= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + test? ( + dev-db/mariadb[server] + ) +" + +distutils_enable_sphinx doc \ + dev-python/sphinx-rtd-theme +distutils_enable_tests pytest + +src_test() { + rm -r src || die + + local datadir="${T}/mysql" \ + install_log="${T}/mysqld_install.log" \ + pidfile="${T}/mysqld.pid" \ + socket="${T}/mysqld.sock" \ + log="${T}/mysqld.log" + einfo "Creating test MySQL instance ..." + if ! mysql_install_db \ + --no-defaults \ + --auth-root-authentication-method=normal \ + --basedir="${EPREFIX}/usr" \ + --datadir="${datadir}" >& "${install_log}" + then + cat "${install_log}" + die "Failed to create database" + fi + + einfo "Starting test MySQL instance ..." + mysqld \ + --no-defaults \ + --character-set-server=utf8 \ + --pid-file="${pidfile}" \ + --socket="${socket}" \ + --skip-networking \ + --datadir="${datadir}" >& "${log}" & + + local i timeout=10 + einfo "Waiting for MySQL to start for up to ${timeout} seconds ..." + for i in seq 1 ${timeout}; do + [[ -S "${socket}" ]] && break + sleep 1 + done + if [[ ! -S "${socket}" ]]; then + cat "${log}" + die "MySQL failed to start in ${timeout} seconds" + fi + + cat > "${T}/mysql.cnf" <<- EOF + [MySQLdb-tests] + socket = ${socket} + user = root + database = test + EOF + + distutils-r1_src_test + + einfo "Stopping test MySQL instance ..." + pkill -F "${pidfile}" &>/dev/null +} + +python_test() { + local -x TESTDB="${T}/mysql.cnf" + epytest +}