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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4AEE7158021 for ; Sat, 5 Nov 2022 14:41:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E93CE07D1; Sat, 5 Nov 2022 14:41:48 +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 73EB0E07D1 for ; Sat, 5 Nov 2022 14:41:48 +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 8DA94341205 for ; Sat, 5 Nov 2022 14:41:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C914D6FF for ; Sat, 5 Nov 2022 14:41:44 +0000 (UTC) From: "Anna Vyalkova" 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" Message-ID: <1667659293.3d0f7a23ce25c1a660310869fc6ea112532976d0.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pg8000/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pg8000/Manifest dev-python/pg8000/pg8000-1.26.1.ebuild dev-python/pg8000/pg8000-1.29.2.ebuild X-VCS-Directories: dev-python/pg8000/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 3d0f7a23ce25c1a660310869fc6ea112532976d0 X-VCS-Branch: dev Date: Sat, 5 Nov 2022 14:41:44 +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: 7592026d-4448-4fb2-a3cb-043c63913332 X-Archives-Hash: 97c3e916e22c9a4edace74640995bbdf commit: 3d0f7a23ce25c1a660310869fc6ea112532976d0 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Fri Nov 4 07:21:35 2022 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Sat Nov 5 14:41:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3d0f7a23 dev-python/pg8000: add 1.29.2, drop 1.26.1 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> dev-python/pg8000/Manifest | 2 +- dev-python/pg8000/pg8000-1.26.1.ebuild | 34 --------------- dev-python/pg8000/pg8000-1.29.2.ebuild | 79 ++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 35 deletions(-) diff --git a/dev-python/pg8000/Manifest b/dev-python/pg8000/Manifest index a93818892..674e97bca 100644 --- a/dev-python/pg8000/Manifest +++ b/dev-python/pg8000/Manifest @@ -1,2 +1,2 @@ -DIST pg8000-1.26.1.tar.gz 116994 BLAKE2B 4db3186e72afb2e2fae441c1bbb974768e0064276f1ad571316a531cbc590edfcca4c3f4ef1fd493e80e7ebd1817bee354413ea158ec191434e8530007af0ee3 SHA512 d085d4992be18868da6b6f67efcb1e5f41cd05a13b0f4361685e5e8ada14af02ef4ee17558809b447a118cf8380fab13e8932d49fd14d2ee2472b191f8531289 DIST pg8000-1.29.1.tar.gz 92221 BLAKE2B a1e43f445848283472b0aee84f05d3e1c0f8f2d6b8c619789f9e1d961dae240c9ebfb8a1fb22af55f4635bb89f036f8dd1ece477b3b68bff5c1b68ccac32b0b4 SHA512 27ced0ae82e522fabdf3a69b07927223695a7c5658f56f75dbfa43f6923b7a914ec54143421324839c07850e10f5f61ca9bc31155af3e4e600429a1889aedea7 +DIST pg8000-1.29.2.tar.gz 92786 BLAKE2B de39587bb34f21b5c9c4477dd5380d3f790091970867a342c87fac91383e68e8b06e883f25130eefbb88d929d869018881558750f735c81615fbcdc96f9c796b SHA512 3e40d254800c7354097372cc58abbd633316e9e9340d02cc20f21a2dc6c87b559a157c9719b6f15cf2d96c393e0c904c6d1310ea9d6367bb808c3c13114ec431 diff --git a/dev-python/pg8000/pg8000-1.26.1.ebuild b/dev-python/pg8000/pg8000-1.26.1.ebuild deleted file mode 100644 index d51a98bf1..000000000 --- a/dev-python/pg8000/pg8000-1.26.1.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -DESCRIPTION="A Pure-Python PostgreSQL Driver" -HOMEPAGE=" - https://github.com/tlocke/pg8000 - https://pypi.org/project/pg8000/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -SLOT="0" -LICENSE="BSD" -KEYWORDS="~amd64" - -RDEPEND=">=dev-python/scramp-1.4.1[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND}" -BDEPEND=" - test? ( - dev-db/postgresql - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/pytest-benchmark[${PYTHON_USEDEP}] - dev-python/pytz[${PYTHON_USEDEP}] - ) -" - -RESTRICT="test" # tests require a running postgresql - -distutils_enable_tests pytest diff --git a/dev-python/pg8000/pg8000-1.29.2.ebuild b/dev-python/pg8000/pg8000-1.29.2.ebuild new file mode 100644 index 000000000..131b4cd09 --- /dev/null +++ b/dev-python/pg8000/pg8000-1.29.2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_PEP517=setuptools +inherit databases distutils-r1 edo + +DESCRIPTION="A Pure-Python PostgreSQL Driver" +HOMEPAGE=" + https://github.com/tlocke/pg8000 + https://pypi.org/project/pg8000/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/scramp-1.4.3[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + $(python_gen_impl_dep "ssl") + $(epostgres --get-depend) + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-benchmark[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +SSL_TESTS=( + test/dbapi/auth/test_md5_ssl.py + test/dbapi/auth/test_scram-sha-256_ssl.p + test/legacy/auth/test_md5_ssl.py + test/legacy/auth/test_scram-sha-256_ssl.py + test/native/auth/test_md5_ssl.py + test/native/auth/test_scram-sha-256_ssl.py +) + +EPYTEST_DESELECT=( + # traceback doesn't match + test/test_readme.py + # TODO: ssl tests (need certificates and stuff) + "${SSL_TESTS[@]}" + # "database doesn't exist" errors + test/dbapi/auth/test_gss.py + test/legacy/auth/test_gss.py + test/native/auth/test_gss.py + # too unstable + test/native/test_typeconversion.py::test_roundtrip_oid +) + +distutils_enable_tests pytest + +python_test_ssl() { + epytest "${SSL_TESTS[@]}" +} + +src_test() { + epsql() { + edo psql -q -h "${sockdir}" -U postgres "${@}" + } + + local -x PGPORT="65432" + local -x PGPASSWORD="cpsnow" + local sockdir=$(epostgres --get-sockdir) + + epostgres --start ${PGPORT} + epsql -c "ALTER ROLE postgres WITH PASSWORD '${PGPASSWORD}';" + epsql -c "CREATE EXTENSION hstore;" + epsql -c "SELECT pg_reload_conf();" + + distutils-r1_src_test + epostgres --stop +}