summaryrefslogtreecommitdiff
path: root/dev-python/pgspecial
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/pgspecial
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/pgspecial')
-rw-r--r--dev-python/pgspecial/Manifest8
-rw-r--r--dev-python/pgspecial/metadata.xml5
-rw-r--r--dev-python/pgspecial/pgspecial-1.13.1-r1.ebuild (renamed from dev-python/pgspecial/pgspecial-1.13.1.ebuild)2
-rw-r--r--dev-python/pgspecial/pgspecial-2.0.0.ebuild55
-rw-r--r--dev-python/pgspecial/pgspecial-2.0.1.ebuild55
5 files changed, 121 insertions, 4 deletions
diff --git a/dev-python/pgspecial/Manifest b/dev-python/pgspecial/Manifest
index 78ab511e73a9..d58d3be8e746 100644
--- a/dev-python/pgspecial/Manifest
+++ b/dev-python/pgspecial/Manifest
@@ -1,3 +1,7 @@
DIST pgspecial-1.13.1.tar.gz 50269 BLAKE2B 0566a7c2d8ee1ea350e27a4283f56c4cb1360f23ac9fe0147358ff68f527907c47650466dd41ae9c68e8a1f8ba658e452a88db360a7066f5562b7f0c578b8b62 SHA512 4b8f0495451db40087327640edc4bf8c29997b4f501dc5af6d093ad880fc337050d651676ae8ff434da3564e773f9e89e6e7d6bf0d6cfb7b70d8b4beea73a347
-EBUILD pgspecial-1.13.1.ebuild 1165 BLAKE2B c0399dc15594a46d059c4dcfa29a6040dcd7e912362630436b2644736b767eb2b32a8e3557c02eff7fd9e2fd4d35ada5e474a242b8edda4f68521c0e31231884 SHA512 1d20df565f481bb27a405f989a220e32adf817d53b5447d994d5baa4d45c8f144f2bd282d63a62e0eefea6275cad8121f0d0acb1f73f46ea8a4728924f6a0bf5
-MISC metadata.xml 469 BLAKE2B 4ac30bc0e9dcd93b61f08a2195303556758feb8c6cf2ce083d320d9d2fdd5297a7dc641a18b23bcbc9168dfdbc8b73e682d1b54232b875a8707073e0ea24403b SHA512 42c4588416412787dbaf3ff40bb11aca400b0afcd32ef686495dfd5fde91313a3308e3d49549e196f10d04869f0612a0987a4de4492366494403f1e55998713f
+DIST pgspecial-2.0.0.gh.tar.gz 50098 BLAKE2B 3e4c2b85c8d0e31bdd6d61fd1dd8e9a54b68fef23017e2a11238018d63fff8ba93ee5f8f5f4679321b1a757b4a504d86d9740bea91c95f0312a31cf0135378fa SHA512 59dfbc83be3f263fdf9fdad425675624f2738357f2b3f29abc37b90df1bdae30bee6145faa65715a7a166a9e8ee66201cc5344e697ce0121ae7c6bf9bb3af012
+DIST pgspecial-2.0.1.gh.tar.gz 50181 BLAKE2B 6f3f9f8feba717c18d3985d80a432eb7d127c65f7436bfc792a44cb5d7aad08e6e3b931cc289a051fbfea43cd5d8d7db44ede6de89683d462d51635c5caf2e04 SHA512 e89e7cd0f7e849fe93b8e8e79e409ee73ba6c22f3d76279415f236184f732d12cdd8b6bb7722b24ec2bd665f3429c0bf4e6905cd24c9739aa78906b12f841f13
+EBUILD pgspecial-1.13.1-r1.ebuild 1167 BLAKE2B 7b805cf0bb8abfa91ebf86060649ac2b6720a3da4a055ce1d8d02abb2e3a621b3a609ee7e85366d2610c26188f8f02ebe53f90f20f2e985c2746bce52d3b928d SHA512 41701fa1031422cb0c307c6c7899f490a3a600e6ac4276dc95a2621c8065befc2f39181277eae954a2be690655a3a9ed32147298692e5c6e9c3949045e9170e8
+EBUILD pgspecial-2.0.0.ebuild 1222 BLAKE2B 24a290eb5ff4ea49f43c4d4fc264ba7d39ae0522ec22966cb352f1ba6822954f3d44292ce5981841e7b9ab673540f8bc34707481ea733eaf92e25a80602d41da SHA512 acbc80b993be5310186288350929a0ca9de7d9df2ee129359ecb00980124000e3b41167ae2d3321de07232a270471892c821c98d2ec01f145faae0890fb51667
+EBUILD pgspecial-2.0.1.ebuild 1222 BLAKE2B a86e51aefbd23c19ac4d69e3fa9b6c4c6bf84a365434f3fe23f13148e72833283ff2225518feeb2d3a453bad8c56d3e262696c11730a3312a97bf57678e0b6ab SHA512 df60948d942ca3f18ac60c3d98520d15d9a1a601c086c17bb737917b5041c95695511d8624bdbaa40b8501c910983d44c534f57c52ad76427049ded1287a6775
+MISC metadata.xml 542 BLAKE2B f7c36257d672854f57623ce68e09e17b8bc734e0a2afa70308ff3c3dfee23274750a8d98034527e14c757546eb78b84f170b9a4d180e02cf491301ae34127c79 SHA512 cb1eac0516db3ff5f32efb6adcf2c39e5479f7bb2a44f3d7c75f4e38e07812db21fd8e8af94e97c613b54606c2660317b5dbb0221c88cc926968404898f19602
diff --git a/dev-python/pgspecial/metadata.xml b/dev-python/pgspecial/metadata.xml
index be3181917ee8..8b940410fbb3 100644
--- a/dev-python/pgspecial/metadata.xml
+++ b/dev-python/pgspecial/metadata.xml
@@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
<longdescription>
PGSpecial provides an API to execute meta-commands
(AKA "special", or "backslash commands") on PostgreSQL.
diff --git a/dev-python/pgspecial/pgspecial-1.13.1.ebuild b/dev-python/pgspecial/pgspecial-1.13.1-r1.ebuild
index b0b886f4c9c1..d853eb868079 100644
--- a/dev-python/pgspecial/pgspecial-1.13.1.ebuild
+++ b/dev-python/pgspecial/pgspecial-1.13.1-r1.ebuild
@@ -19,7 +19,7 @@ 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/psycopg-2.7.4:2[${PYTHON_USEDEP}]
>=dev-python/sqlparse-0.1.19[${PYTHON_USEDEP}]
"
BDEPEND="
diff --git a/dev-python/pgspecial/pgspecial-2.0.0.ebuild b/dev-python/pgspecial/pgspecial-2.0.0.ebuild
new file mode 100644
index 000000000000..80daceb18f18
--- /dev/null
+++ b/dev-python/pgspecial/pgspecial-2.0.0.ebuild
@@ -0,0 +1,55 @@
+# 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/
+ https://pypi.org/project/pgspecial/
+"
+SRC_URI="
+ https://github.com/dbcli/pgspecial/archive/v${PV}.tar.gz
+ -> ${P}.gh.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-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 )
+
+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
+}
diff --git a/dev-python/pgspecial/pgspecial-2.0.1.ebuild b/dev-python/pgspecial/pgspecial-2.0.1.ebuild
new file mode 100644
index 000000000000..3873d4fe47e4
--- /dev/null
+++ b/dev-python/pgspecial/pgspecial-2.0.1.ebuild
@@ -0,0 +1,55 @@
+# 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..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python implementation of PostgreSQL meta commands"
+HOMEPAGE="
+ https://github.com/dbcli/pgspecial/
+ https://pypi.org/project/pgspecial/
+"
+SRC_URI="
+ https://github.com/dbcli/pgspecial/archive/v${PV}.tar.gz
+ -> ${P}.gh.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-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 )
+
+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
+}