Date: Saturday, October 29, 2022 @ 21:13:03
  Author: grawlinson
Revision: 1339349

archrelease: copy trunk to community-any

Added:
  python-pgpy/repos/community-any/PKGBUILD
    (from rev 1339348, python-pgpy/trunk/PKGBUILD)
  python-pgpy/repos/community-any/idea-deprecation.patch
    (from rev 1339348, python-pgpy/trunk/idea-deprecation.patch)
Deleted:
  python-pgpy/repos/community-any/PKGBUILD

------------------------+
 PKGBUILD               |  134 ++++++++++++++++++++++++-----------------------
 idea-deprecation.patch |   16 +++++
 2 files changed, 87 insertions(+), 63 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-29 21:11:41 UTC (rev 1339348)
+++ PKGBUILD    2022-10-29 21:13:03 UTC (rev 1339349)
@@ -1,63 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-# Contributor: James Morris <[email protected]>
-
-pkgname=python-pgpy
-pkgver=0.5.4
-pkgrel=2
-pkgdesc="Pretty Good Privacy for Python"
-arch=('any')
-license=('BSD')
-url="https://github.com/SecurityInnovation/PGPy";
-depends=(
-  'python'
-  'python-cryptography'
-  'python-six'
-  'python-pyasn1'
-)
-makedepends=(
-  'git'
-  'python-setuptools'
-)
-checkdepends=(
-  'python-pytest'
-  'python-pytest-order'
-)
-_commit='345f4b8d74f4123b97198e10a383f485f80946d8'
-source=("$pkgname::git+$url.git#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
-  cd "$pkgname"
-
-  git describe --tags | sed 's/^v//'
-}
-
-prepare() {
-  cd "$pkgname"
-
-  # https://github.com/SecurityInnovation/PGPy/pull/378
-  sed -i '/wheel/d' setup.cfg
-
-  # https://github.com/SecurityInnovation/PGPy/pull/373
-  git cherry-pick --no-commit e2f427ea5c0347fb5995ed2a9bc00f780c212c70
-}
-
-build() {
-  cd "$pkgname"
-
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname"
-
-  pytest
-}
-
-package() {
-  cd "$pkgname"
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-}

Copied: python-pgpy/repos/community-any/PKGBUILD (from rev 1339348, 
python-pgpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-29 21:13:03 UTC (rev 1339349)
@@ -0,0 +1,71 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: James Morris <[email protected]>
+
+pkgname=python-pgpy
+pkgver=0.5.4
+pkgrel=3
+pkgdesc='Pretty Good Privacy for Python'
+arch=('any')
+license=('BSD')
+url='https://github.com/SecurityInnovation/PGPy'
+depends=(
+  'python'
+  'python-cryptography'
+  'python-six'
+  'python-pyasn1'
+)
+makedepends=(
+  'git'
+  'python-setuptools'
+)
+checkdepends=(
+  'python-pytest'
+  'python-pytest-order'
+)
+_commit='345f4b8d74f4123b97198e10a383f485f80946d8'
+source=(
+  "$pkgname::git+$url.git#commit=$_commit"
+  'idea-deprecation.patch'
+)
+b2sums=('SKIP'
+        
'55917c5f5e17aeea00c879e9c1329a5e28add956e87fb4e6159119fa7a2a4793f788851cbe716258acf34c9ffd6524f44273fe599329354a22b990ddc768dbf2')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # https://github.com/SecurityInnovation/PGPy/pull/378
+  sed -i '/wheel/d' setup.cfg
+
+  # https://github.com/SecurityInnovation/PGPy/pull/373
+  git cherry-pick --no-commit e2f427ea5c0347fb5995ed2a9bc00f780c212c70
+
+  # https://github.com/SecurityInnovation/PGPy/pull/403
+  git cherry-pick --no-commit d84597eb8417a482433ff51dc6b13060d4b2e686
+  patch -p1 -i "$srcdir/idea-deprecation.patch"
+}
+
+build() {
+  cd "$pkgname"
+
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname"
+
+  pytest
+}
+
+package() {
+  cd "$pkgname"
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Copied: python-pgpy/repos/community-any/idea-deprecation.patch (from rev 
1339348, python-pgpy/trunk/idea-deprecation.patch)
===================================================================
--- idea-deprecation.patch                              (rev 0)
+++ idea-deprecation.patch      2022-10-29 21:13:03 UTC (rev 1339349)
@@ -0,0 +1,16 @@
+--- a/tests/test_10_exceptions.py
++++ b/tests/test_10_exceptions.py
+@@ -230,11 +230,11 @@ class TestPGPKey(object):
+         rsa_pub.subkeys['EEE097A017B979CA'].encrypt(PGPMessage.new('asdf'),
+                                                     
cipher=SymmetricKeyAlgorithm.CAST5)
+ 
+-        w = recwarn.pop(UserWarning)
++        w = recwarn.list[-2]
+         assert str(w.message) == "Selected symmetric algorithm not in key 
preferences"
+         assert w.filename == __file__
+ 
+-        w = recwarn.pop(UserWarning)
++        w = recwarn.list[-1]
+         assert str(w.message) == "Selected compression algorithm not in key 
preferences"
+         assert w.filename == __file__
+

Reply via email to