[arch-commits] Commit in python-stem/repos/community-staging-any (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Nov 3 13:10:53 UTC 2019


    Date: Sunday, November 3, 2019 @ 13:10:53
  Author: foutrelis
Revision: 522514

archrelease: copy trunk to community-staging-any

Added:
  python-stem/repos/community-staging-any/PKGBUILD
    (from rev 522513, python-stem/trunk/PKGBUILD)
  python-stem/repos/community-staging-any/stem-python-3.8.patch
    (from rev 522513, python-stem/trunk/stem-python-3.8.patch)
Deleted:
  python-stem/repos/community-staging-any/PKGBUILD

-----------------------+
 PKGBUILD              |   99 +++++++++++++++++++++++++-----------------------
 stem-python-3.8.patch |   11 +++++
 2 files changed, 63 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-03 13:10:48 UTC (rev 522513)
+++ PKGBUILD	2019-11-03 13:10:53 UTC (rev 522514)
@@ -1,47 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Spider.007 <archlinux AT spider007 DOT net>
-
-pkgname=python-stem
-_pypiname=${pkgname#*-}
-pkgver=1.7.1
-pkgrel=2
-pkgdesc='Python controller library for Tor'
-url='https://stem.torproject.org/'
-arch=('any')
-license=('LGPL3')
-depends=('python' 'python-cryptography' 'python-pynacl' 'procps-ng')
-checkdepends=('tor' 'python-mock')
-optdepends=('tor: tor-server to talk to')
-replaces=('stem')
-provides=('stem')
-source=(https://files.pythonhosted.org/packages/source/${_pypiname::1}/${_pypiname}/${_pypiname}-${pkgver}.tar.gz{,.asc})
-sha256sums=('c9eaf3116cb60c15995cbd3dec3a5cbc50e9bb6e062c4d6d42201e566f498ca2'
-            'SKIP')
-validpgpkeys=('68278CC5DD2D1E85C4E45AD90445B7AB9ABBEEC6') # Damian Johnson (www.atagar.com) <atagar1 at gmail.com>
-
-prepare() {
-  cd ${_pypiname}-${pkgver}
-  # remove flaky integration tests
-  sed -i test/settings.cfg \
-    -e '/|test.integ.client.connection.TestConnection/d' \
-    -e '/|test.integ.process.TestProcess/d' \
-    -e '/|test.integ.installation.TestInstallation/d'
-  rm test/integ/{client/connection,{installation,process}}.py
-}
-
-build() {
-  cd ${_pypiname}-${pkgver}
-  python setup.py build
-}
-
-check() {
-  cd ${_pypiname}-${pkgver}
-  ./run_tests.py --all
-}
-
-package() {
-  cd ${_pypiname}-${pkgver}
-  python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-stem/repos/community-staging-any/PKGBUILD (from rev 522513, python-stem/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-03 13:10:53 UTC (rev 522514)
@@ -0,0 +1,52 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Spider.007 <archlinux AT spider007 DOT net>
+
+pkgname=python-stem
+_pypiname=${pkgname#*-}
+pkgver=1.7.1
+pkgrel=3
+pkgdesc='Python controller library for Tor'
+url='https://stem.torproject.org/'
+arch=('any')
+license=('LGPL3')
+depends=('python' 'python-cryptography' 'python-pynacl' 'procps-ng')
+checkdepends=('tor' 'python-mock')
+optdepends=('tor: tor-server to talk to')
+replaces=('stem')
+provides=('stem')
+source=(https://files.pythonhosted.org/packages/source/${_pypiname::1}/${_pypiname}/${_pypiname}-${pkgver}.tar.gz{,.asc}
+        stem-python-3.8.patch)
+sha256sums=('c9eaf3116cb60c15995cbd3dec3a5cbc50e9bb6e062c4d6d42201e566f498ca2'
+            'SKIP'
+            '294e645ceba300c34693df2e8269c844686f3a1bb7b9bb1e3ffc6882a07f2505')
+validpgpkeys=('68278CC5DD2D1E85C4E45AD90445B7AB9ABBEEC6') # Damian Johnson (www.atagar.com) <atagar1 at gmail.com>
+
+prepare() {
+  cd ${_pypiname}-${pkgver}
+  # remove flaky integration tests
+  sed -i test/settings.cfg \
+    -e '/|test.integ.client.connection.TestConnection/d' \
+    -e '/|test.integ.process.TestProcess/d' \
+    -e '/|test.integ.installation.TestInstallation/d'
+  rm test/integ/{client/connection,{installation,process}}.py
+
+  # fix tests with python 3.8
+  patch -p1 -i ../stem-python-3.8.patch
+}
+
+build() {
+  cd ${_pypiname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pypiname}-${pkgver}
+  ./run_tests.py --all
+}
+
+package() {
+  cd ${_pypiname}-${pkgver}
+  python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
+}
+
+# vim: ts=2 sw=2 et:

Copied: python-stem/repos/community-staging-any/stem-python-3.8.patch (from rev 522513, python-stem/trunk/stem-python-3.8.patch)
===================================================================
--- stem-python-3.8.patch	                        (rev 0)
+++ stem-python-3.8.patch	2019-11-03 13:10:53 UTC (rev 522514)
@@ -0,0 +1,11 @@
+--- stem-1.7.1/test/task.py.orig	2019-11-03 13:00:05.941355453 +0000
++++ stem-1.7.1/test/task.py	2019-11-03 13:00:25.131576581 +0000
+@@ -81,7 +81,7 @@
+   elif platform.system() == 'Darwin':
+     extra = platform.release()
+   elif platform.system() == 'Linux':
+-    extra = ' '.join(platform.linux_distribution()[:2])
++    extra = platform.release()
+   else:
+     extra = None
+ 



More information about the arch-commits mailing list