[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-05-22 Thread Chih-Hsuan Yen via arch-commits
Date: Monday, May 23, 2022 @ 03:34:28
  Author: yan12125
Revision: 1210086

upgpkg: python-pg8000 1.29.1-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-05-22 22:40:44 UTC (rev 1210085)
+++ PKGBUILD2022-05-23 03:34:28 UTC (rev 1210086)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.29.0
+pkgver=1.29.1
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('5b73f5516190a7a7537a32d3c3abb69daae41bda273b930296e3a5bbdd1cd47d'
+sha256sums=('80b4f4de4b0254832b7948511e0dd46342d1c0446ccd4fdd892b63d02e4fbc7b'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-05-21 Thread Chih-Hsuan Yen via arch-commits
Date: Sunday, May 22, 2022 @ 04:07:14
  Author: yan12125
Revision: 1209965

upgpkg: python-pg8000 1.29.0-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-05-22 04:03:22 UTC (rev 1209964)
+++ PKGBUILD2022-05-22 04:07:14 UTC (rev 1209965)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.28.3
+pkgver=1.29.0
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('d61037b3f21f7fc7d5cfe4eea683789259e7ccb9eef5f7229cbc62f31ea6ba32'
+sha256sums=('5b73f5516190a7a7537a32d3c3abb69daae41bda273b930296e3a5bbdd1cd47d'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke
@@ -60,7 +60,10 @@
   pg_ctl reload
   # Upstream tests require LANG=en_GB.UTF-8 or LANG=C.UTF-8 :/
   # 
https://github.com/tlocke/pg8000/blob/1.19.2/test/native/test_typeconversion.py#L455-L458
-  PYTHONPATH="$PWD" LANG=C.UTF-8 pytest test
+  # test_readme: skipped as many tests need a postgresql instance listening on 
the default port
+  # localhost:5432, which may cause conflicts until devtools supports a 
separate network namespace [1]
+  # [1] https://gitlab.archlinux.org/archlinux/devtools/-/issues/72
+  PYTHONPATH="$PWD" LANG=C.UTF-8 pytest test -k 'not test_readme'
   pg_ctl stop
 }
 



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-05-18 Thread Chih-Hsuan Yen via arch-commits
Date: Wednesday, May 18, 2022 @ 11:40:26
  Author: yan12125
Revision: 1207780

upgpkg: python-pg8000 1.28.3-1; switch to PEP 517 following upstream

See: https://github.com/tlocke/pg8000/issues/109

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |   10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-05-18 10:53:49 UTC (rev 1207779)
+++ PKGBUILD2022-05-18 11:40:26 UTC (rev 1207780)
@@ -3,18 +3,18 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.28.1
+pkgver=1.28.3
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
 url='https://github.com/tlocke/pg8000'
 license=(BSD)
-makedepends=(python-setuptools)
+makedepends=(python-setuptools python-build python-installer 
python-versioningit python-wheel)
 checkdepends=(python-pytest python-pytest-mock python-pytest-benchmark
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('e9e6fc1df557fa22c8b56850b0c03e6ea8c512fe57966dae155ae9ebd9c51546'
+sha256sums=('d61037b3f21f7fc7d5cfe4eea683789259e7ccb9eef5f7229cbc62f31ea6ba32'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke
@@ -22,7 +22,7 @@
 
 build() {
   cd pg8000-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -66,6 +66,6 @@
 
 package() {
   cd pg8000-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 }



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-05-17 Thread Chih-Hsuan Yen via arch-commits
Date: Tuesday, May 17, 2022 @ 18:10:19
  Author: yan12125
Revision: 1207685

upgpkg: python-pg8000 1.28.1-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-05-17 17:22:34 UTC (rev 1207684)
+++ PKGBUILD2022-05-17 18:10:19 UTC (rev 1207685)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.28.0
+pkgver=1.28.1
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('43513de3d4e378e73ac442a93906baa9d356245aa67aa7f61605c56e39a7f591'
+sha256sums=('e9e6fc1df557fa22c8b56850b0c03e6ea8c512fe57966dae155ae9ebd9c51546'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-05-17 Thread Chih-Hsuan Yen via arch-commits
Date: Tuesday, May 17, 2022 @ 12:15:38
  Author: yan12125
Revision: 1207663

upgpkg: python-pg8000 1.28.0-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-05-17 09:44:21 UTC (rev 1207662)
+++ PKGBUILD2022-05-17 12:15:38 UTC (rev 1207663)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.27.1
+pkgver=1.28.0
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('d6a5838348593344f20eb35ada472a772d32145826f2efe58dbe1b65ea99e890'
+sha256sums=('43513de3d4e378e73ac442a93906baa9d356245aa67aa7f61605c56e39a7f591'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-05-16 Thread Chih-Hsuan Yen via arch-commits
Date: Monday, May 16, 2022 @ 11:57:49
  Author: yan12125
Revision: 1207536

upgpkg: python-pg8000 1.27.1-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-05-16 11:45:01 UTC (rev 1207535)
+++ PKGBUILD2022-05-16 11:57:49 UTC (rev 1207536)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.26.1
+pkgver=1.27.1
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('ccd2b6fe190addd74c093a62be0730b9e99f3ea03aa0ef7ab95ed1b7ff69d257'
+sha256sums=('d6a5838348593344f20eb35ada472a772d32145826f2efe58dbe1b65ea99e890'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-04-23 Thread Chih-Hsuan Yen via arch-commits
Date: Saturday, April 23, 2022 @ 16:28:28
  Author: yan12125
Revision: 1187651

upgpkg: python-pg8000 1.26.1-1; upstream fixes tests with different changes

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |   15 ---
 1 file changed, 4 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-04-23 16:13:57 UTC (rev 1187650)
+++ PKGBUILD2022-04-23 16:28:28 UTC (rev 1187651)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.26.0
+pkgver=1.26.1
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,20 +13,13 @@
 checkdepends=(python-pytest python-pytest-mock python-pytest-benchmark
   python-pytz postgresql)
 depends=(python python-scramp)
-source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc}
-
pg8000-104.patch::https://github.com/yan12125/pg8000/commit/ec7aad27eb49aae572067b13a886fb72682aea89.patch)
-sha256sums=('9e25ea13a5b7fcc83b026051d7c6e4dcd5221e950ebe5393de715a3fea1527d3'
-'SKIP'
-'284bc6f784b7658889953e635eec2f581919b4653030a523d64962c60436ceee')
+source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
+sha256sums=('ccd2b6fe190addd74c093a62be0730b9e99f3ea03aa0ef7ab95ed1b7ff69d257'
+'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke
 )
 
-prepare() {
-  cd pg8000-$pkgver
-  patch -Np1 -i ../pg8000-104.patch
-}
-
 build() {
   cd pg8000-$pkgver
   python setup.py build



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-04-22 Thread Chih-Hsuan Yen via arch-commits
Date: Friday, April 22, 2022 @ 07:49:25
  Author: yan12125
Revision: 1187293

upgpkg: python-pg8000 1.26.0-1; cherry-pick my fixes for tests

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |   15 +++
 1 file changed, 11 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-04-22 07:31:36 UTC (rev 1187292)
+++ PKGBUILD2022-04-22 07:49:25 UTC (rev 1187293)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.24.2
+pkgver=1.26.0
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,13 +13,20 @@
 checkdepends=(python-pytest python-pytest-mock python-pytest-benchmark
   python-pytz postgresql)
 depends=(python python-scramp)
-source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('ab7fc048a56fcac4d9c247b22a8356e608dd9a03d4835f1c87fba2e4f26284a5'
-'SKIP')
+source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc}
+
pg8000-104.patch::https://github.com/yan12125/pg8000/commit/ec7aad27eb49aae572067b13a886fb72682aea89.patch)
+sha256sums=('9e25ea13a5b7fcc83b026051d7c6e4dcd5221e950ebe5393de715a3fea1527d3'
+'SKIP'
+'284bc6f784b7658889953e635eec2f581919b4653030a523d64962c60436ceee')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke
 )
 
+prepare() {
+  cd pg8000-$pkgver
+  patch -Np1 -i ../pg8000-104.patch
+}
+
 build() {
   cd pg8000-$pkgver
   python setup.py build



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-04-15 Thread Chih-Hsuan Yen via arch-commits
Date: Friday, April 15, 2022 @ 09:47:41
  Author: yan12125
Revision: 1186464

upgpkg: python-pg8000 1.24.2-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-04-15 08:44:45 UTC (rev 1186463)
+++ PKGBUILD2022-04-15 09:47:41 UTC (rev 1186464)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.24.1
+pkgver=1.24.2
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('291222c5ddfd66a3fc0d321700cf591c8b0f930d2fc848777d6cfcff55443ce6'
+sha256sums=('ab7fc048a56fcac4d9c247b22a8356e608dd9a03d4835f1c87fba2e4f26284a5'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-03-03 Thread Chih-Hsuan Yen via arch-commits
Date: Thursday, March 3, 2022 @ 13:01:12
  Author: yan12125
Revision: 1140744

upgpkg: python-pg8000 1.24.1-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-03-03 13:00:56 UTC (rev 1140743)
+++ PKGBUILD2022-03-03 13:01:12 UTC (rev 1140744)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.24.0
+pkgver=1.24.1
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('06c6b0b068d07ce366f7bcedadf76a0b5da6a61f86302c8caff690b7fc5dfedb'
+sha256sums=('291222c5ddfd66a3fc0d321700cf591c8b0f930d2fc848777d6cfcff55443ce6'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2022-02-06 Thread Chih-Hsuan Yen via arch-commits
Date: Monday, February 7, 2022 @ 02:38:40
  Author: yan12125
Revision: 1127396

upgpkg: python-pg8000 1.24.0-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-02-07 02:38:07 UTC (rev 1127395)
+++ PKGBUILD2022-02-07 02:38:40 UTC (rev 1127396)
@@ -3,8 +3,8 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.23.0
-pkgrel=3
+pkgver=1.24.0
+pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
 url='https://github.com/tlocke/pg8000'
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('a413e00141342813a2ca47e8b7b0549ff338cca02bc819076b6d70f12d755c79'
+sha256sums=('06c6b0b068d07ce366f7bcedadf76a0b5da6a61f86302c8caff690b7fc5dfedb'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-12-02 Thread Evangelos Foutras via arch-commits
Date: Thursday, December 2, 2021 @ 15:21:52
  Author: foutrelis
Revision: 1062057

upgpkg: python-pg8000 1.23.0-3: Python 3.10 rebuild

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-12-02 15:21:52 UTC (rev 1062056)
+++ PKGBUILD2021-12-02 15:21:52 UTC (rev 1062057)
@@ -4,7 +4,7 @@
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
 pkgver=1.23.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
 url='https://github.com/tlocke/pg8000'



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-11-18 Thread Chih-Hsuan Yen via arch-commits
Date: Thursday, November 18, 2021 @ 15:34:34
  Author: yan12125
Revision: 1052436

upgpkg: python-pg8000 1.23.0-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-11-18 15:33:56 UTC (rev 1052435)
+++ PKGBUILD2021-11-18 15:34:34 UTC (rev 1052436)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.22.1
+pkgver=1.23.0
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('fd69ad5af2781e59608cb3f4d966b234d961c62f093edd3194ac45df65b8d1d4'
+sha256sums=('a413e00141342813a2ca47e8b7b0549ff338cca02bc819076b6d70f12d755c79'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-11-11 Thread Chih-Hsuan Yen via arch-commits
Date: Thursday, November 11, 2021 @ 13:44:50
  Author: yan12125
Revision: 1042118

upgpkg: python-pg8000 1.22.1-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-11-11 13:42:28 UTC (rev 1042117)
+++ PKGBUILD2021-11-11 13:44:50 UTC (rev 1042118)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.22.0
+pkgver=1.22.1
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('c5172252fc92142ec104cd5e7231be4580a1a0a814403707bafbf7bb8383a29a'
+sha256sums=('fd69ad5af2781e59608cb3f4d966b234d961c62f093edd3194ac45df65b8d1d4'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-10-14 Thread Chih-Hsuan Yen via arch-commits
Date: Thursday, October 14, 2021 @ 15:16:43
  Author: yan12125
Revision: 1030107

upgpkg: python-pg8000 1.22.0-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-10-14 14:18:28 UTC (rev 1030106)
+++ PKGBUILD2021-10-14 15:16:43 UTC (rev 1030107)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.21.3
+pkgver=1.22.0
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('f73f1d477cda12a7b784be73c8a0c06c71e4284ef90cae4883cbc7c524b95fbf'
+sha256sums=('c5172252fc92142ec104cd5e7231be4580a1a0a814403707bafbf7bb8383a29a'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-10-10 Thread Chih-Hsuan Yen via arch-commits
Date: Sunday, October 10, 2021 @ 17:48:23
  Author: yan12125
Revision: 1029276

upgpkg: python-pg8000 1.21.3-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-10-10 17:45:56 UTC (rev 1029275)
+++ PKGBUILD2021-10-10 17:48:23 UTC (rev 1029276)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 # https://github.com/tlocke/pg8000#release-notes
-pkgver=1.21.2
+pkgver=1.21.3
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -14,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('36a3b517408334967c1fa0d29656da03608d63122a372ec92c85f49aed2d24e3'
+sha256sums=('f73f1d477cda12a7b784be73c8a0c06c71e4284ef90cae4883cbc7c524b95fbf'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-09-18 Thread Chih-Hsuan Yen via arch-commits
Date: Sunday, September 19, 2021 @ 04:41:20
  Author: yan12125
Revision: 1017130

upgpkg: python-pg8000 1.21.2-1; add a link to changelogs

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-09-19 04:37:57 UTC (rev 1017129)
+++ PKGBUILD2021-09-19 04:41:20 UTC (rev 1017130)
@@ -2,7 +2,8 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.21.1
+# https://github.com/tlocke/pg8000#release-notes
+pkgver=1.21.2
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,7 +14,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('1ccbeec93b70e2e8532df3abddc6905c7821909c96dceaaef751b57c5291869a'
+sha256sums=('36a3b517408334967c1fa0d29656da03608d63122a372ec92c85f49aed2d24e3'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-09-03 Thread Chih-Hsuan Yen via arch-commits
Date: Saturday, September 4, 2021 @ 01:32:07
  Author: yan12125
Revision: 1010757

upgpkg: python-pg8000 1.21.1-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-09-04 01:27:31 UTC (rev 1010756)
+++ PKGBUILD2021-09-04 01:32:07 UTC (rev 1010757)
@@ -2,7 +2,7 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.21.0
+pkgver=1.21.1
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,7 +13,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('c99108c630b1c468668a8def38be4c91b2fb7cf0154ce7918e7a3912e60652d7'
+sha256sums=('1ccbeec93b70e2e8532df3abddc6905c7821909c96dceaaef751b57c5291869a'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-07-31 Thread Chih-Hsuan Yen via arch-commits
Date: Saturday, July 31, 2021 @ 13:13:11
  Author: yan12125
Revision: 991106

upgpkg: python-pg8000 1.21.0-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-07-31 12:33:59 UTC (rev 991105)
+++ PKGBUILD2021-07-31 13:13:11 UTC (rev 991106)
@@ -2,7 +2,7 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.20.0
+pkgver=1.21.0
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,7 +13,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('490ec22a92601f0454b3ed4c8d4ecddc30f66c0e3f783f0ecc581037749a8c55'
+sha256sums=('c99108c630b1c468668a8def38be4c91b2fb7cf0154ce7918e7a3912e60652d7'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-07-04 Thread Chih-Hsuan Yen via arch-commits
Date: Sunday, July 4, 2021 @ 13:13:28
  Author: yan12125
Revision: 972046

upgpkg: python-pg8000 1.20.0-1; drop unneeded patching

Since [1], upstream no longer uses a fixed version for dependencies

[1] https://github.com/tlocke/pg8000/issues/74

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |   12 ++--
 1 file changed, 2 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-07-04 13:09:11 UTC (rev 972045)
+++ PKGBUILD2021-07-04 13:13:28 UTC (rev 972046)
@@ -2,7 +2,7 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.19.5
+pkgver=1.20.0
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,20 +13,12 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('dcb9afb9cb87acc79388ae633c45cf7f806aabe3bb5d8cf154572b699393f937'
+sha256sums=('490ec22a92601f0454b3ed4c8d4ecddc30f66c0e3f783f0ecc581037749a8c55'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke
 )
 
-prepare() {
-  cd pg8000-$pkgver
-
-  # Remove upper bounds of dependencies
-  sed --in-place=.orig -r 's#,?<[0-9.]+,?##;s#==([0-9.]+)#>=\1#' setup.py
-  diff -u setup.py{.orig,} || true
-}
-
 build() {
   cd pg8000-$pkgver
   python setup.py build



[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-05-21 Thread Chih-Hsuan Yen via arch-commits
Date: Saturday, May 22, 2021 @ 01:18:27
  Author: yan12125
Revision: 941147

upgpkg: python-pg8000 1.19.5-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-05-22 01:13:01 UTC (rev 941146)
+++ PKGBUILD2021-05-22 01:18:27 UTC (rev 941147)
@@ -2,7 +2,7 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.19.4
+pkgver=1.19.5
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,7 +13,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('7c9c6d57541b0f2153e23a8d759ceb3d7cb9308918fba6ad9e92f8e0e5a90bc8'
+sha256sums=('dcb9afb9cb87acc79388ae633c45cf7f806aabe3bb5d8cf154572b699393f937'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke


[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-05-05 Thread Chih-Hsuan Yen via arch-commits
Date: Thursday, May 6, 2021 @ 04:35:30
  Author: yan12125
Revision: 928358

upgpkg: python-pg8000 1.19.4-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-05-06 04:29:27 UTC (rev 928357)
+++ PKGBUILD2021-05-06 04:35:30 UTC (rev 928358)
@@ -2,7 +2,7 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.19.2
+pkgver=1.19.4
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,7 +13,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('44cbb4d3c912f2da167ca02bf98a0040f7e93260e4ef114c28d5d6152012ea07'
+sha256sums=('7c9c6d57541b0f2153e23a8d759ceb3d7cb9308918fba6ad9e92f8e0e5a90bc8'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke


[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-04-11 Thread Chih-Hsuan Yen via arch-commits
Date: Monday, April 12, 2021 @ 01:05:21
  Author: yan12125
Revision: 915843

upgpkg: python-pg8000 1.19.2-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-04-12 00:58:57 UTC (rev 915842)
+++ PKGBUILD2021-04-12 01:05:21 UTC (rev 915843)
@@ -2,7 +2,7 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.19.1
+pkgver=1.19.2
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,7 +13,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('cb7ace8c582b7000a5ee428efa8ff6c82a7d710cc0f7d2d76258703a2aa7afe3'
+sha256sums=('44cbb4d3c912f2da167ca02bf98a0040f7e93260e4ef114c28d5d6152012ea07'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke
@@ -65,7 +65,9 @@
 hostall all 127.0.0.1/32trust
 EOF
   pg_ctl reload
-  PYTHONPATH="$PWD" pytest test
+  # Upstream tests require LANG=en_GB.UTF-8 or LANG=C.UTF-8 :/
+  # 
https://github.com/tlocke/pg8000/blob/1.19.2/test/native/test_typeconversion.py#L455-L458
+  PYTHONPATH="$PWD" LANG=C.UTF-8 pytest test
   pg_ctl stop
 }
 


[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-04-04 Thread Chih-Hsuan Yen via arch-commits
Date: Sunday, April 4, 2021 @ 15:24:47
  Author: yan12125
Revision: 911746

upgpkg: python-pg8000 1.19.1-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-04-04 12:37:05 UTC (rev 911745)
+++ PKGBUILD2021-04-04 15:24:47 UTC (rev 911746)
@@ -2,7 +2,7 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.19.0
+pkgver=1.19.1
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,7 +13,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('11ec70c0b20ea440807e2c869940f1484eea93d71b435807b63856dd82b744dd'
+sha256sums=('cb7ace8c582b7000a5ee428efa8ff6c82a7d710cc0f7d2d76258703a2aa7afe3'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke


[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-03-29 Thread Chih-Hsuan Yen via arch-commits
Date: Monday, March 29, 2021 @ 18:51:38
  Author: yan12125
Revision: 909458

upgpkg: python-pg8000 1.19.0-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-03-29 18:42:27 UTC (rev 909457)
+++ PKGBUILD2021-03-29 18:51:38 UTC (rev 909458)
@@ -2,7 +2,7 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.18.0
+pkgver=1.19.0
 pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
@@ -13,7 +13,7 @@
   python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('35baf2c8bf5445e85f516449474b547dbbd0e08c0baa3a6b20aa355a92eb72da'
+sha256sums=('11ec70c0b20ea440807e2c869940f1484eea93d71b435807b63856dd82b744dd'
 'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke


[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-03-07 Thread Chih-Hsuan Yen via arch-commits
Date: Sunday, March 7, 2021 @ 13:49:14
  Author: yan12125
Revision: 886017

upgpkg: python-pg8000 1.18.0-1

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |   15 +--
 1 file changed, 5 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-03-07 13:31:39 UTC (rev 886016)
+++ PKGBUILD2021-03-07 13:49:14 UTC (rev 886017)
@@ -2,8 +2,8 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.17.0
-pkgrel=2
+pkgver=1.18.0
+pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
 url='https://github.com/tlocke/pg8000'
@@ -12,11 +12,9 @@
 checkdepends=(python-pytest python-pytest-mock python-pytest-benchmark
   python-pytz postgresql)
 depends=(python python-scramp)
-source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc}
-scram.diff)
-sha256sums=('14198c5afeb289106e40ee6e5e4c0529c5369939f6ca588a028b371a75fe20dd'
-'SKIP'
-'71cccb7b33863dc94f93251b8f7cbff93e9505e120e7b9213c4ede2feb4a8e1c')
+source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
+sha256sums=('35baf2c8bf5445e85f516449474b547dbbd0e08c0baa3a6b20aa355a92eb72da'
+'SKIP')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke
 )
@@ -27,9 +25,6 @@
   # Remove upper bounds of dependencies
   sed --in-place=.orig -r 's#,?<[0-9.]+,?##;s#==([0-9.]+)#>=\1#' setup.py
   diff -u setup.py{.orig,} || true
-
-  # Partial backport of 
https://github.com/tlocke/pg8000/commit/18eee18f7525bf3026339d206790d4d5843cf055
-  patch -Np1 -i ../scram.diff
 }
 
 build() {


[arch-commits] Commit in python-pg8000/trunk (PKGBUILD scram.diff)

2021-02-09 Thread Chih-Hsuan Yen via arch-commits
Date: Tuesday, February 9, 2021 @ 09:52:45
  Author: yan12125
Revision: 850896

upgpkg: python-pg8000 1.17.0-2; rework on check() and backport a fix for SCRAM 
authentication

Added:
  python-pg8000/trunk/scram.diff
Modified:
  python-pg8000/trunk/PKGBUILD

+
 PKGBUILD   |   51 ++-
 scram.diff |   13 +
 2 files changed, 51 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-02-09 09:51:40 UTC (rev 850895)
+++ PKGBUILD2021-02-09 09:52:45 UTC (rev 850896)
@@ -3,7 +3,7 @@
 
 pkgname=python-pg8000
 pkgver=1.17.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
 url='https://github.com/tlocke/pg8000'
@@ -10,13 +10,13 @@
 license=(BSD)
 makedepends=(python-setuptools)
 checkdepends=(python-pytest python-pytest-mock python-pytest-benchmark
-  python-pytz pifpaf postgresql)
+  python-pytz postgresql)
 depends=(python python-scramp)
 
source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc}
-pghost-unix-sock.patch::https://github.com/tlocke/pg8000/pull/64.patch)
+scram.diff)
 sha256sums=('14198c5afeb289106e40ee6e5e4c0529c5369939f6ca588a028b371a75fe20dd'
 'SKIP'
-'0a851dbbc0f8d0116795eb0d875e9178659bdf7c6964bff8b26c6b014c37e9c9')
+'71cccb7b33863dc94f93251b8f7cbff93e9505e120e7b9213c4ede2feb4a8e1c')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke
 )
@@ -28,7 +28,8 @@
   sed --in-place=.orig -r 's#,?<[0-9.]+,?##;s#==([0-9.]+)#>=\1#' setup.py
   diff -u setup.py{.orig,} || true
 
-  patch -Np1 -i ../pghost-unix-sock.patch
+  # Partial backport of 
https://github.com/tlocke/pg8000/commit/18eee18f7525bf3026339d206790d4d5843cf055
+  patch -Np1 -i ../scram.diff
 }
 
 build() {
@@ -38,15 +39,39 @@
 
 check() {
   cd pg8000-$pkgver
-  # GSS tests: need custom pg_hba.conf, while pifpaf does not support it yet
-  # SSL tests: need TCP connections [1][2], while pifpaf uses unix domain 
sockets
-  # [1] 
https://github.com/postgres/postgres/blob/REL_13_1/src/backend/postmaster/postmaster.c#L2027
-  # [2] 
https://www.postgresql.org/message-id/flat/200801041713.22341.peter_e%40gmx.net
-  PYTHONPATH="$PWD" pifpaf run postgresql -- bash -c "
-psql -c \"CREATE ROLE postgres WITH LOGIN SUPERUSER PASSWORD 'pw';\"
-psql -c \"create extension hstore;\"
-pytest test -k 'not testGss and not test_gss and not testSsl and not 
test_ssl'
+
+  export PGDATA="$srcdir/postgres-testdata"
+  export PGHOST=127.0.0.1
+  export PGPORT=$((49152+$RANDOM%1))
+
+  # See https://github.com/tlocke/pg8000#tests about database initialization 
steps for testing
+  initdb --username=postgres --auth=trust
+  openssl req -subj "/CN=self-signed" -nodes -x509 -newkey rsa:4096 -days 1 
-keyout "$PGDATA/self-signed.key" -out "$PGDATA/self-signed.crt"
+  cat <> "$PGDATA/postgresql.conf"
+ssl = on
+ssl_cert_file = 'self-signed.crt'
+ssl_key_file = 'self-signed.key'
+password_encryption = 'scram-sha-256'
+EOF
+
+  pg_ctl start -o "-k '' -h $PGHOST -p $PGPORT" -l "$srcdir/postgresql.log"
+  # Change the password for postgres after password_encryption is specified, 
so that the role has a valid SCRAM secret
+  psql -U postgres -c "
+CREATE EXTENSION hstore;
+ALTER ROLE postgres PASSWORD 'pw';
   "
+
+  # should overwrite pg_hba.conf, or unexpected matches may happen against 
existing entries
+  cat < "$PGDATA/pg_hba.conf"
+hostpg8000_md5  all 127.0.0.1/32md5
+hostpg8000_gss  all 127.0.0.1/32gss
+hostpg8000_password all 127.0.0.1/32password
+hostpg8000_scram_sha_256 all127.0.0.1/32scram-sha-256
+hostall all 127.0.0.1/32trust
+EOF
+  pg_ctl reload
+  PYTHONPATH="$PWD" pytest test
+  pg_ctl stop
 }
 
 package() {

Added: scram.diff
===
--- scram.diff  (rev 0)
+++ scram.diff  2021-02-09 09:52:45 UTC (rev 850896)
@@ -0,0 +1,13 @@
+diff --git a/pg8000/core.py b/pg8000/core.py
+index 8c4c512..8c544b1 100644
+--- a/pg8000/core.py
 b/pg8000/core.py
+@@ -492,7 +492,7 @@ class CoreConnection():
+ elif auth_code == 10:
+ # AuthenticationSASL
+ mechanisms = [
+-m.decode('ascii') for m in data[4:-1].split(NULL_BYTE)]
++m.decode('ascii') for m in data[4:-2].split(NULL_BYTE)]
+ 
+ self.auth = ScramClient(
+ mechanisms, self.user.decode('utf8'),


[arch-commits] Commit in python-pg8000/trunk (PKGBUILD)

2021-02-08 Thread Chih-Hsuan Yen via arch-commits
Date: Monday, February 8, 2021 @ 17:21:34
  Author: yan12125
Revision: 849440

upgpkg: python-pg8000 1.17.0-1; improve comments for disabled tests

Modified:
  python-pg8000/trunk/PKGBUILD

--+
 PKGBUILD |   27 +++
 1 file changed, 15 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-02-08 17:21:26 UTC (rev 849439)
+++ PKGBUILD2021-02-08 17:21:34 UTC (rev 849440)
@@ -2,8 +2,8 @@
 # Contributor: quomoow 
 
 pkgname=python-pg8000
-pkgver=1.16.6
-pkgrel=3
+pkgver=1.17.0
+pkgrel=1
 pkgdesc="Pure-Python PostgreSQL database driver, DB-API compatible"
 arch=(any)
 url='https://github.com/tlocke/pg8000'
@@ -12,9 +12,11 @@
 checkdepends=(python-pytest python-pytest-mock python-pytest-benchmark
   python-pytz pifpaf postgresql)
 depends=(python python-scramp)
-source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc})
-sha256sums=('8fc1e6a62ccb7c9830f1e7e9288e2d20eaf373cc8875b5c55b7d5d9b7717be91'
-'SKIP')
+source=("https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-$pkgver.tar.gz"{,.asc}
+pghost-unix-sock.patch::https://github.com/tlocke/pg8000/pull/64.patch)
+sha256sums=('14198c5afeb289106e40ee6e5e4c0529c5369939f6ca588a028b371a75fe20dd'
+'SKIP'
+'0a851dbbc0f8d0116795eb0d875e9178659bdf7c6964bff8b26c6b014c37e9c9')
 validpgpkeys=(
   'D5681B7EC7292511C4CC1450892B00AB699851E8'  # Tony Locke 
, proven by https://keybase.io/tlocke
 )
@@ -25,6 +27,8 @@
   # Remove upper bounds of dependencies
   sed --in-place=.orig -r 's#,?<[0-9.]+,?##;s#==([0-9.]+)#>=\1#' setup.py
   diff -u setup.py{.orig,} || true
+
+  patch -Np1 -i ../pghost-unix-sock.patch
 }
 
 build() {
@@ -34,15 +38,14 @@
 
 check() {
   cd pg8000-$pkgver
-  # See upstream .travis.yml for initialization SQL commands
-  # XXX: The postgres plugin in pifpaf does not listen on a TCP port
-  #  without --host
-  # XXX: testGss and testSsl needs custom pg_hba.conf and postgresql.conf,
-  #  and pifpaf does not support that yet
-  PYTHONPATH="$PWD" pifpaf run postgresql --host localhost -- bash -c "
+  # GSS tests: need custom pg_hba.conf, while pifpaf does not support it yet
+  # SSL tests: need TCP connections [1][2], while pifpaf uses unix domain 
sockets
+  # [1] 
https://github.com/postgres/postgres/blob/REL_13_1/src/backend/postmaster/postmaster.c#L2027
+  # [2] 
https://www.postgresql.org/message-id/flat/200801041713.22341.peter_e%40gmx.net
+  PYTHONPATH="$PWD" pifpaf run postgresql -- bash -c "
 psql -c \"CREATE ROLE postgres WITH LOGIN SUPERUSER PASSWORD 'pw';\"
 psql -c \"create extension hstore;\"
-pytest -v test -k 'not testGss and not testSsl'
+pytest test -k 'not testGss and not test_gss and not testSsl and not 
test_ssl'
   "
 }