[arch-commits] Commit in python-progressbar/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Aug 27 17:05:27 UTC 2019


    Date: Tuesday, August 27, 2019 @ 17:05:27
  Author: dvzrv
Revision: 503313

archrelease: copy trunk to community-any

Added:
  python-progressbar/repos/community-any/PKGBUILD
    (from rev 503312, python-progressbar/trunk/PKGBUILD)
Deleted:
  python-progressbar/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  101 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 54 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-27 17:05:11 UTC (rev 503312)
+++ PKGBUILD	2019-08-27 17:05:27 UTC (rev 503313)
@@ -1,47 +0,0 @@
-# Maintainer: Maxim Andersson <thesilentboatman at gmail.com>
-# Co-Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
-# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
-
-_pkgname=python-progressbar
-pkgbase=python-progressbar
-pkgdesc="A progress bar for Python 2 and Python 3"
-pkgname=('python-progressbar' 'python2-progressbar')
-pkgver=3.42.0
-pkgrel=1
-url="https://github.com/WoLpH/python-progressbar"
-license=('BSD')
-arch=("any")
-makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' 'python-utils' 'python2-utils')
-source=("${_pkgname}-${pkgver}.tar.xz::https://github.com/WoLpH/python-progressbar/releases/download/v${pkgver}/python-progressbar-v${pkgver}.tar.xz"
-        "${_pkgname}-${pkgver}.tar.xz.asc::https://github.com/WoLpH/python-progressbar/releases/download/v${pkgver}/python-progressbar-v${pkgver}.tar.xz.asc")
-sha512sums=('fefcf9c211413b108de4aac18470a2335a55cf01aca29df01d9a92746320efc656b63d837af9d90fcf4c3078c4af5b451048be1017b0a2af9843f5311bd355f0'
-            'SKIP')
-validpgpkeys=('149325FD15904E9C4EB89E95E81444E9CE1F695D') # Rick van Hattem <wolph at wol.ph>
-
-prepare() {
-    cp -a "${srcdir}/${_pkgname}-v${pkgver}"{,-py2}
-}
-
-build() {
-    cd "${srcdir}/${_pkgname}-v${pkgver}"
-    python setup.py build
-
-    cd "${srcdir}/${_pkgname}-v${pkgver}-py2"
-    python2 setup.py build
-}
-
-package_python-progressbar() {
-    depends=('python' 'python-utils')
-
-    cd "${srcdir}/${_pkgname}-v${pkgver}"
-    python setup.py install --skip-build --root="${pkgdir}" --optimize=1
-    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python2-progressbar() {
-    depends=('python2' 'python2-utils')
-
-    cd "${srcdir}/${_pkgname}-v${pkgver}-py2"
-    python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
-    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-progressbar/repos/community-any/PKGBUILD (from rev 503312, python-progressbar/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-27 17:05:27 UTC (rev 503313)
@@ -0,0 +1,54 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Maxim Andersson <thesilentboatman at gmail.com>
+# Contributor: NicoHood <archlinux {cat} nicohood {dog} de>
+
+_name=progressbar2
+pkgname=python-progressbar
+pkgdesc="A progress bar for Python"
+pkgver=3.43.1
+pkgrel=1
+url="https://github.com/WoLpH/python-progressbar"
+license=('BSD')
+arch=('any')
+depends=('python-six' 'python-utils')
+makedepends=('python-setuptools' 'python-sphinx')
+checkdepends=('python-pytest' 'python-freezegun')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('57da1f804e4e3929751b9d27b3f6dc03df65dbf6d567a83d26c6e32dcba22592af1d1153fa3da9f764d11941db2372f22c04d45f963b420e58084d18a15db8c7'
+            'SKIP')
+validpgpkeys=('149325FD15904E9C4EB89E95E81444E9CE1F695D') # Rick van Hattem <wolph at wol.ph>
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  # don't care about custom pytest config
+  rm -v pytest.ini
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  export PYTHONPATH="${PWD}/build:${PYTHONPATH}"
+  # disabling tests not honoring PYTHONPATH:
+  # https://github.com/WoLpH/python-progressbar/issues/201
+  py.test -k 'not test_non_timed \
+              and not test_context_wrapper \
+              and not test_rapid_updates \
+              and not test_generator_example \
+              and not test_list_example'
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --prefix=/usr \
+                          --root="${pkgdir}"
+  install -vDm 644 {CHANGES,CONTRIBUTING,README}.rst \
+    -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list