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 6AA7F1581D3 for ; Thu, 16 May 2024 03:42:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D599FE2AE1; Thu, 16 May 2024 03:42:05 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8C883E2AE1 for ; Thu, 16 May 2024 03:42: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 4E79C34300D for ; Thu, 16 May 2024 03:42:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD60B1AC9 for ; Thu, 16 May 2024 03:42:02 +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: <1715830021.ef6568910296f79c95df4d577f8a4288aef0fcbf.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pgspecial/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pgspecial/Manifest dev-python/pgspecial/pgspecial-2.1.2.ebuild X-VCS-Directories: dev-python/pgspecial/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ef6568910296f79c95df4d577f8a4288aef0fcbf X-VCS-Branch: master Date: Thu, 16 May 2024 03:42:02 +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: 8134d1a2-ee2f-42cf-b878-c0b701b3b2d4 X-Archives-Hash: 915439af176bb4f2ff0018f208083073 commit: ef6568910296f79c95df4d577f8a4288aef0fcbf Author: Michał Górny gentoo org> AuthorDate: Thu May 16 03:23:48 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu May 16 03:27:01 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef656891 dev-python/pgspecial: Bump to 2.1.2 Signed-off-by: Michał Górny gentoo.org> dev-python/pgspecial/Manifest | 1 + dev-python/pgspecial/pgspecial-2.1.2.ebuild | 60 +++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/dev-python/pgspecial/Manifest b/dev-python/pgspecial/Manifest index b4b50f5ac035..e19ef31ac83d 100644 --- a/dev-python/pgspecial/Manifest +++ b/dev-python/pgspecial/Manifest @@ -1 +1,2 @@ DIST pgspecial-2.1.1.tar.gz 51017 BLAKE2B 170db33ca1629244b2c8c2d23a5768528e474660dcaf73079c516d33624202cc05487a338b21ac5bab28780d127923bf24d86231e85cade2f82714add5bdd789 SHA512 4ab8596536b90837c2ed0a11b6bbfecd6e5dc487b073a58a1406e8e70028ebb7010430784963fe27a08a5cc48292785f6d02affb750f4a1b74cbe33a0e06a5f0 +DIST pgspecial-2.1.2.tar.gz 51057 BLAKE2B d164555363e421f716fd9a03653fa8ef6628fc15b71a03acb040c321a20d03e4193725ca3a809b3d4b8710e62005ba9637f35789795d7b4e195f653527617436 SHA512 3ef15c96b8ae84c2c346f44607360aad4bd0abe6f2dfec421af1ca176178b19c64d55baece118600038e105cacb4b5f9b9c3eebbd1e816a9e7a78877d2cb604c diff --git a/dev-python/pgspecial/pgspecial-2.1.2.ebuild b/dev-python/pgspecial/pgspecial-2.1.2.ebuild new file mode 100644 index 000000000000..899d00595aa4 --- /dev/null +++ b/dev-python/pgspecial/pgspecial-2.1.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python implementation of PostgreSQL meta commands" +HOMEPAGE=" + https://github.com/dbcli/pgspecial/ + https://pypi.org/project/pgspecial/ +" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/click-4.1[${PYTHON_USEDEP}] + >=dev-python/configobj-5.0.6[${PYTHON_USEDEP}] + >=dev-python/psycopg-3.0.10:0[${PYTHON_USEDEP}] + >=dev-python/sqlparse-0.1.19[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-db/postgresql-8.1[server] + ) +" + +distutils_enable_tests pytest + +DOCS=( License.txt README.rst changelog.rst ) + +EPYTEST_DESELECT=( + # assumes a very specific locale + tests/test_specials.py::test_slash_l + tests/test_specials.py::test_slash_l_pattern + # change in postgres? *shrug* + tests/test_specials.py::test_slash_d_view_verbose + tests/test_specials.py::test_slash_dn +) + +src_test() { + local db=${T}/pgsql + + initdb --username=postgres -D "${db}" || die + # TODO: random port + pg_ctl -w -D "${db}" start \ + -o "-h '127.0.0.1' -p 5432 -k '${T}'" || die + psql -h "${T}" -U postgres -d postgres \ + -c "ALTER ROLE postgres WITH PASSWORD 'postgres';" || die + createdb -h "${T}" -U postgres _test_db || die + + distutils-r1_src_test + + pg_ctl -w -D "${db}" stop || die +}