From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mysqlclient/
Date: Fri, 10 Jan 2025 20:43:57 +0000 (UTC) [thread overview]
Message-ID: <1736541829.8f7a9788b5aee396cacda719ec098568f34305bc.mgorny@gentoo> (raw)
commit: 8f7a9788b5aee396cacda719ec098568f34305bc
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 10 20:02:17 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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
+}
next reply other threads:[~2025-01-10 20:44 UTC|newest]
Thread overview: 104+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 20:43 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-26 1:14 [gentoo-commits] repo/gentoo:master commit in: dev-python/mysqlclient/ Jakov Smolić
2025-01-25 11:14 Arthur Zamarin
2025-01-25 10:05 Arthur Zamarin
2025-01-25 8:55 Sam James
2024-12-09 11:49 Michał Górny
2024-12-09 5:47 Arthur Zamarin
2024-11-30 12:06 Arthur Zamarin
2024-11-30 11:57 Michał Górny
2024-11-30 11:40 Michał Górny
2024-11-13 9:17 Michał Górny
2024-06-12 19:32 Michał Górny
2024-03-17 13:06 Michał Górny
2024-03-17 6:27 Ionen Wolkens
2024-03-02 15:30 Arthur Zamarin
2024-02-24 19:25 Jakov Smolić
2024-02-24 14:04 Sam James
2024-02-24 10:07 Sam James
2024-02-10 4:41 Matthew Thode
2024-02-08 18:56 Michał Górny
2024-02-04 16:42 Matthew Thode
2024-01-24 6:33 Michał Górny
2024-01-24 4:57 Ionen Wolkens
2024-01-13 12:02 Sam James
2024-01-13 11:15 Sam James
2024-01-13 9:43 Arthur Zamarin
2024-01-13 9:38 Arthur Zamarin
2023-12-27 16:43 Michał Górny
2023-12-14 13:58 Michał Górny
2023-08-24 18:32 Michał Górny
2023-08-24 18:12 Arthur Zamarin
2023-07-24 10:05 Jakov Smolić
2023-06-23 6:06 Michał Górny
2023-06-03 17:45 Michał Górny
2023-03-16 4:03 Michał Górny
2023-01-27 15:47 Arthur Zamarin
2022-07-25 16:14 Michał Górny
2022-07-25 15:06 Agostino Sarubbo
2022-07-25 6:41 Sam James
2022-07-25 6:41 Sam James
2022-07-24 16:29 Sam James
2022-06-23 7:19 Michał Górny
2022-04-27 20:17 Michał Górny
2022-04-27 20:17 Michał Górny
2022-04-27 19:43 Arthur Zamarin
2021-12-20 7:26 Agostino Sarubbo
2021-12-19 21:35 Arthur Zamarin
2021-12-19 21:35 Arthur Zamarin
2021-12-19 21:19 Arthur Zamarin
2021-12-19 21:18 Jakov Smolić
2021-11-18 9:16 Michał Górny
2021-10-16 6:33 Sam James
2021-09-27 6:55 Agostino Sarubbo
2021-09-26 7:29 Agostino Sarubbo
2021-09-26 7:28 Agostino Sarubbo
2021-08-21 13:49 Arthur Zamarin
2021-06-29 5:53 Yixun Lan
2020-12-17 21:50 Craig Andrews
2020-10-11 9:00 Sergei Trofimovich
2020-09-26 21:34 Sergei Trofimovich
2020-09-20 12:58 Sam James
2020-09-20 12:49 Michał Górny
2020-09-20 9:36 Michał Górny
2020-07-14 14:50 Sam James
2020-06-21 6:23 Michał Górny
2020-05-17 9:37 Sergei Trofimovich
2020-05-15 17:33 Sergei Trofimovich
2020-05-07 16:35 Mart Raudsepp
2020-05-06 6:48 Sergei Trofimovich
2020-05-06 6:41 Sergei Trofimovich
2020-04-18 3:02 Craig Andrews
2020-03-28 8:34 Michał Górny
2020-03-28 8:34 Michał Górny
2019-12-22 18:39 Matthew Thode
2019-12-06 16:10 Matthew Thode
2019-11-22 16:10 Matthew Thode
2019-11-11 13:18 Jeroen Roovers
2019-11-06 21:23 Matthew Thode
2019-11-06 19:49 Matthew Thode
2019-02-20 20:17 Matthew Thode
2019-02-20 20:17 Matthew Thode
2019-02-16 17:12 Matthew Thode
2019-02-15 15:20 Matthew Thode
2019-02-14 21:58 Matthew Thode
2019-02-11 15:12 Brian Evans
2019-02-08 23:01 Matthew Thode
2019-01-20 19:46 Matthew Thode
2019-01-18 21:48 Matthew Thode
2019-01-04 5:26 Matthew Thode
2018-12-04 17:59 Matthew Thode
2018-11-05 14:26 Craig Andrews
2018-07-27 19:13 Matt Thode
2018-06-28 15:59 Matt Thode
2018-01-05 9:36 Michał Górny
2017-09-29 23:32 Matt Thode
2017-09-01 20:12 Matt Thode
2017-03-24 15:30 Matt Thode
2017-03-22 17:11 Matt Thode
2017-02-24 16:34 Matt Thode
2017-02-23 20:21 Matt Thode
2016-10-30 16:10 Matt Thode
2016-09-30 23:59 Matt Thode
2016-04-03 20:01 Matt Thode
2015-11-06 16:22 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1736541829.8f7a9788b5aee396cacda719ec098568f34305bc.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox