From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1455679-garchives=archives.gentoo.org@lists.gentoo.org> 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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DD80B158021 for <garchives@archives.gentoo.org>; Fri, 11 Nov 2022 18:50:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF310E09D1; Fri, 11 Nov 2022 18:50:05 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B9B3EE09D1 for <gentoo-commits@lists.gentoo.org>; Fri, 11 Nov 2022 18:50:05 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5E01233DDA5 for <gentoo-commits@lists.gentoo.org>; Fri, 11 Nov 2022 18:50:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7EC045D6 for <gentoo-commits@lists.gentoo.org>; Fri, 11 Nov 2022 18:50:01 +0000 (UTC) From: "Anna Vyalkova" <cyber+gentoo@sysrq.in> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" <cyber+gentoo@sysrq.in> Message-ID: <1668188617.d94c978604c0945776cdd5816e562fce713b4fd4.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/aiomysql/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/aiomysql/Manifest dev-python/aiomysql/aiomysql-0.1.1.ebuild dev-python/aiomysql/metadata.xml X-VCS-Directories: dev-python/aiomysql/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: d94c978604c0945776cdd5816e562fce713b4fd4 X-VCS-Branch: dev Date: Fri, 11 Nov 2022 18:50:01 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5dd73aab-64ae-4eb6-82d1-5627b0b22cf9 X-Archives-Hash: 3193c9a481024d56689a35156fac2cb7 commit: d94c978604c0945776cdd5816e562fce713b4fd4 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> AuthorDate: Fri Nov 11 17:43:37 2022 +0000 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> CommitDate: Fri Nov 11 17:43:37 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d94c9786 dev-python/aiomysql: new package, add 0.1.1 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> dev-python/aiomysql/Manifest | 1 + dev-python/aiomysql/aiomysql-0.1.1.ebuild | 64 +++++++++++++++++++++++++++++++ dev-python/aiomysql/metadata.xml | 9 +++++ 3 files changed, 74 insertions(+) diff --git a/dev-python/aiomysql/Manifest b/dev-python/aiomysql/Manifest new file mode 100644 index 000000000..fa6fcb8a1 --- /dev/null +++ b/dev-python/aiomysql/Manifest @@ -0,0 +1 @@ +DIST aiomysql-0.1.1.tar.gz 106303 BLAKE2B d7726ba0c8bf27d115b6bae092679e4365debf22ecb01eb1dd0664396d29c43c49a9b3c30bc585d91d2866dc1f48dd61bc4464afe445ba4d77f7a9232bb23649 SHA512 b83a91465caf756f8a3046651d90b5a39d9b2714d96d8bb1c6df4fa6b47189c24979d88901d7f7fb1d2dd235c4a19e2d9ed3f73c8ace42950d12e1cdbb0e46ac diff --git a/dev-python/aiomysql/aiomysql-0.1.1.ebuild b/dev-python/aiomysql/aiomysql-0.1.1.ebuild new file mode 100644 index 000000000..aa6228a9d --- /dev/null +++ b/dev-python/aiomysql/aiomysql-0.1.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit databases distutils-r1 + +DESCRIPTION="aiomysql is a library for accessing a MySQL database from the asyncio" +HOMEPAGE=" + https://pypi.python.org/pypi/aiomysql + https://github.com/aio-libs/aiomysql + https://aiomysql.readthedocs.io/en/latest/ +" +SRC_URI="https://github.com/aio-libs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-python/pymysql[${PYTHON_USEDEP}]" +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}] + test? ( + $(python_gen_impl_dep "ssl") + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/uvloop[${PYTHON_USEDEP}] + ) +" + +DOCS=( CHANGES.txt {CONTRIBUTING,README}.rst ) + +EPYTEST_IGNORE=( + # No Table.count() method in recent PyMySQL + tests/test_async_with.py + tests/sa/test_sa_connection.py + tests/sa/test_sa_transaction.py +) + +distutils_enable_tests pytest + +distutils_enable_sphinx docs \ + dev-python/sphinxcontrib-asyncio + +python_test() { + epytest "${S}"/tests --mysql-unix-socket "$(emysql --get-sockfile)" +} + +src_test() { + emysql --start 3333 + local sockfile=$(emysql --get-sockfile) + local -x MYSQL_ROOT_PASSWORD="rootpw" + + ebegin "Changing database password" + mysql --user=root --socket="${sockfile}" --silent \ + --execute="ALTER USER 'root'@'localhost' IDENTIFIED BY '${MYSQL_ROOT_PASSWORD}';" + eend $? || emysql --die "Changing database password failed" + + distutils-r1_src_test + + emysql --stop +} diff --git a/dev-python/aiomysql/metadata.xml b/dev-python/aiomysql/metadata.xml new file mode 100644 index 000000000..a507be0a7 --- /dev/null +++ b/dev-python/aiomysql/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>piotr.staroszczyk@get24.org</email> + <name>Piotr Staroszczyk</name> + </maintainer> +</pkgmetadata>