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

Johannes Löthberg demize at archlinux.org
Sun Aug 11 17:28:49 UTC 2019


    Date: Sunday, August 11, 2019 @ 17:28:49
  Author: demize
Revision: 359620

upgpkg: python-prometheus_client 0.7.1-1

Modified:
  python-prometheus_client/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++--------------------------
 1 file changed, 7 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-11 16:18:16 UTC (rev 359619)
+++ PKGBUILD	2019-08-11 17:28:49 UTC (rev 359620)
@@ -1,7 +1,7 @@
 # Maintainer: Johannes Löthberg <johannes at kyriasis.com>
 
-pkgname=(python-prometheus_client python2-prometheus_client)
-pkgver=0.6.0
+pkgname=python-prometheus_client
+pkgver=0.7.1
 pkgrel=1
 
 pkgdesc="Prometheus instrumentation library for Python applications"
@@ -9,44 +9,25 @@
 arch=('any')
 license=('APACHE')
 
-makedepends=('python' 'python-setuptools'
-             'python2' 'python2-setuptools')
-checkdepends=('python-twisted' 'python-pytest'
-              'python2-twisted' 'python2-pytest' 'python2-futures')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-twisted' 'python-pytest')
 
 source=(client_python-$pkgver.tar.gz::https://github.com/prometheus/client_python/archive/v${pkgver}.tar.gz)
-sha512sums=('a2b92683f939961c567c266a54699de6f37088cd4e61c9d9a5f4451228b4c3bfa4c517e4a5187867f5463d726a8dc6e7fdae30973c1e9aa9aa1a03247b2e99cd')
 
-prepare() {
-  cp -r client_python-$pkgver client_python-$pkgver-py2
-}
+sha512sums=('84b145ed191c9903d390b152c72de4f2afcb4c500b8debba59ded081f00cc76109b336ed2d7783d59e9922ea2927632f7ef730f336974294b20048c51e9d58a4')
 
 build() {
   cd client_python-$pkgver
   python setup.py build
-
-  cd "$srcdir"/client_python-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd client_python-$pkgver
   python setup.py test
-
-  cd "$srcdir"/client_python-$pkgver-py2
-  python2 setup.py test
 }
 
-package_python-prometheus_client() {
-  depends=('python')
-
+package() {
   cd client_python-$pkgver
   python setup.py install --root="$pkgdir" --skip-build --optimize=1
 }
-
-package_python2-prometheus_client() {
-  depends=('python2')
-
-  cd client_python-$pkgver
-  python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
-}


More information about the arch-commits mailing list