Date: Friday, November 27, 2020 @ 11:58:20
  Author: foutrelis
Revision: 764082

archrelease: copy trunk to community-testing-any

Added:
  python-imdbpy/repos/community-testing-any/PKGBUILD
    (from rev 764081, python-imdbpy/trunk/PKGBUILD)
  
python-imdbpy/repos/community-testing-any/msgfmt.py-use-array.tobytes-on-Python-3.2.patch
    (from rev 764081, 
python-imdbpy/trunk/msgfmt.py-use-array.tobytes-on-Python-3.2.patch)
Deleted:
  python-imdbpy/repos/community-testing-any/PKGBUILD

-------------------------------------------------+
 PKGBUILD                                        |   84 +++++++++++-----------
 msgfmt.py-use-array.tobytes-on-Python-3.2.patch |   26 ++++++
 2 files changed, 70 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2020-11-27 11:58:15 UTC (rev 764081)
+++ PKGBUILD    2020-11-27 11:58:20 UTC (rev 764082)
@@ -1,40 +0,0 @@
-# Maintainer: David Runge <dv...@archlinux.org>
-
-_name=IMDbPY
-pkgname=python-imdbpy
-pkgver=2020.9.25
-pkgrel=2
-pkgdesc="Python bindings for the Internet Movie Database (IMDb)"
-url="https://imdbpy.sourceforge.io/";
-arch=('any')
-license=('GPL2')
-depends=('python-lxml' 'python-sqlalchemy' 'python-setuptools')
-checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz";)
-sha512sums=('5cea5146ace93b525be97ce5f3d8bb037be2e43280b3893c5475b8b2f84265e61db72ef935b1a50c341577a22ce4c98ac6d052eb047868fa88fb2dd3fab6d86a')
-b2sums=('a703682d11d798c182bb4fe0a93f8dd50c9e673ff8bb6f1acbea768121c32ec6c3293a559b48381e547c21b12103732d537c6402f0f9c3851016ae0d36376d32')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
-}
-
-build() {
-  cd "${pkgname}-${pkgver}"
-  python setup.py build
-}
-
-# # flaky tests are flaky: https://github.com/alberanid/imdbpy/issues/240
-# check() {
-#   cd "${pkgname}-${pkgver}"
-#   export PYTHONPATH="build:${PYTHONPATH}"
-#   pytest -v
-# }
-
-package() {
-  cd "${pkgname}-${pkgver}"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}/"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
-}
-# vim:set ts=2 sw=2 et:

Copied: python-imdbpy/repos/community-testing-any/PKGBUILD (from rev 764081, 
python-imdbpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2020-11-27 11:58:20 UTC (rev 764082)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dv...@archlinux.org>
+
+_name=IMDbPY
+pkgname=python-imdbpy
+pkgver=2020.9.25
+pkgrel=3
+pkgdesc="Python bindings for the Internet Movie Database (IMDb)"
+url="https://imdbpy.sourceforge.io/";
+arch=('any')
+license=('GPL2')
+depends=('python-lxml' 'python-sqlalchemy' 'python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz";
+        msgfmt.py-use-array.tobytes-on-Python-3.2.patch)
+sha512sums=('5cea5146ace93b525be97ce5f3d8bb037be2e43280b3893c5475b8b2f84265e61db72ef935b1a50c341577a22ce4c98ac6d052eb047868fa88fb2dd3fab6d86a'
+            
'45589039aeaaf84a3d17097d655ee3abb6f2ebd0c1cc759b1665aafe075cd91e6a8862659a5b9732182d484ea4ae5775f77ed27f89e69fef0687b9c7fc5a7577')
+b2sums=('a703682d11d798c182bb4fe0a93f8dd50c9e673ff8bb6f1acbea768121c32ec6c3293a559b48381e547c21b12103732d537c6402f0f9c3851016ae0d36376d32'
+        
'1d29c8c255ecfbd2cb5143efd8122a7d12ce2b922704a3e4c379de37b00b24df4231a6569d0eb9e12dcdd31b2426603dca369c50bf882ee86996fe039d539e57')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+  patch -Np1 -d "${pkgname}-${pkgver}" 
<msgfmt.py-use-array.tobytes-on-Python-3.2.patch
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+# # flaky tests are flaky: https://github.com/alberanid/imdbpy/issues/240
+# check() {
+#   cd "${pkgname}-${pkgver}"
+#   export PYTHONPATH="build:${PYTHONPATH}"
+#   pytest -v
+# }
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}/"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}
+# vim:set ts=2 sw=2 et:

Copied: 
python-imdbpy/repos/community-testing-any/msgfmt.py-use-array.tobytes-on-Python-3.2.patch
 (from rev 764081, 
python-imdbpy/trunk/msgfmt.py-use-array.tobytes-on-Python-3.2.patch)
===================================================================
--- msgfmt.py-use-array.tobytes-on-Python-3.2.patch                             
(rev 0)
+++ msgfmt.py-use-array.tobytes-on-Python-3.2.patch     2020-11-27 11:58:20 UTC 
(rev 764082)
@@ -0,0 +1,26 @@
+From aab4cf9fb5a053890f4e8afac73fbbffe42f40bf Mon Sep 17 00:00:00 2001
+From: Evangelos Foutras <evange...@foutrelis.com>
+Date: Fri, 27 Nov 2020 13:44:42 +0200
+Subject: [PATCH] msgfmt.py: use array.tobytes() on Python >= 3.2
+
+array.tostring() was deprecated in Python 3.2 and removed in 3.9.
+---
+ imdb/locale/msgfmt.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/imdb/locale/msgfmt.py b/imdb/locale/msgfmt.py
+index 52cbfa5..8861b06 100644
+--- a/imdb/locale/msgfmt.py
++++ b/imdb/locale/msgfmt.py
+@@ -87,7 +87,10 @@ def generate():
+                          7*4,               # start of key index
+                          7*4+len(keys)*8,   # start of value index
+                          0, 0)              # size and offset of hash table
+-    output += array.array("i", offsets).tostring()
++    if sys.version_info < (3, 2):
++        output += array.array("i", offsets).tostring()
++    else:
++        output += array.array("i", offsets).tobytes()
+     output += ids
+     output += strs
+     return output

Reply via email to