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 9FFD915808B for ; Wed, 16 Mar 2022 10:06:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6ECE2E0886; Wed, 16 Mar 2022 10:06:19 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EEF5CE0886 for ; Wed, 16 Mar 2022 10:06:18 +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 66DD034365E for ; Wed, 16 Mar 2022 10:06:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3725F342 for ; Wed, 16 Mar 2022 10:06:12 +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: <1647424484.6b30bd97b6d8c774f3d4b27b799495cb3c7c733d.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-1.13.1.ebuild X-VCS-Directories: dev-python/pgspecial/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6b30bd97b6d8c774f3d4b27b799495cb3c7c733d X-VCS-Branch: master Date: Wed, 16 Mar 2022 10:06:12 +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: 930675a7-de02-475a-97c2-5abeddd50846 X-Archives-Hash: 6030cd7b5776ec1937035695a19e1893 commit: 6b30bd97b6d8c774f3d4b27b799495cb3c7c733d Author: Michał Górny gentoo org> AuthorDate: Wed Mar 16 09:40:45 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Mar 16 09:54:44 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b30bd97 dev-python/pgspecial: Bump to 1.13.1 Signed-off-by: Michał Górny gentoo.org> dev-python/pgspecial/Manifest | 1 + dev-python/pgspecial/pgspecial-1.13.1.ebuild | 47 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dev-python/pgspecial/Manifest b/dev-python/pgspecial/Manifest index f361a4ac9992..72487e3c92b0 100644 --- a/dev-python/pgspecial/Manifest +++ b/dev-python/pgspecial/Manifest @@ -1 +1,2 @@ DIST pgspecial-1.13.0.tar.gz 49204 BLAKE2B 7269fc94fc0672db1880ba4b76c8926b6a3c995aac3fca77add7ae6756fcc3295d8d32fcede37cd3fa2d82c82aebfc26d91ed50b4294c5206f04d4c72742b45b SHA512 de2560106fbad14f2095ace468c8490cb325aedb772f649f20a0b5fe65f19afeed33f219d3a6eca683a63b418741a9906a01f7c4bdd8734868517faeba791026 +DIST pgspecial-1.13.1.tar.gz 50269 BLAKE2B 0566a7c2d8ee1ea350e27a4283f56c4cb1360f23ac9fe0147358ff68f527907c47650466dd41ae9c68e8a1f8ba658e452a88db360a7066f5562b7f0c578b8b62 SHA512 4b8f0495451db40087327640edc4bf8c29997b4f501dc5af6d093ad880fc337050d651676ae8ff434da3564e773f9e89e6e7d6bf0d6cfb7b70d8b4beea73a347 diff --git a/dev-python/pgspecial/pgspecial-1.13.1.ebuild b/dev-python/pgspecial/pgspecial-1.13.1.ebuild new file mode 100644 index 000000000000..6b76fd83565d --- /dev/null +++ b/dev-python/pgspecial/pgspecial-1.13.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Python implementation of PostgreSQL meta commands" +HOMEPAGE="https://github.com/dbcli/pgspecial" +SRC_URI="https://github.com/dbcli/pgspecial/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/click-4.1[${PYTHON_USEDEP}] + >=dev-python/configobj-5.0.6[${PYTHON_USEDEP}] + >=dev-python/psycopg-2.7.4[${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 ) + +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 +}