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

Maxime Gauduin alucryd at archlinux.org
Sun Sep 29 18:00:07 UTC 2019


    Date: Sunday, September 29, 2019 @ 18:00:06
  Author: alucryd
Revision: 512090

upgpkg: python-blessed 1.15.1-1

Modified:
  python-blessed/trunk/PKGBUILD

----------+
 PKGBUILD |   44 +++++++++++++++++++++++++++++---------------
 1 file changed, 29 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-29 17:49:10 UTC (rev 512089)
+++ PKGBUILD	2019-09-29 18:00:06 UTC (rev 512090)
@@ -2,34 +2,48 @@
 # Contributor: Tatsuyuki Ishi <ishitatsuyuki at gmail.com>
 
 pkgname=python-blessed
-pkgver=1.15.0
-pkgrel=2
+pkgver=1.15.1
+pkgrel=1
 pkgdesc='A thin, practical wrapper around terminal styling, screen positioning, and keyboard input'
-arch=('any')
-url='https://github.com/jquast/blessed'
-license=('GPL')
-depends=('python-six' 'python-wcwidth')
-makedepends=('python-setuptools')
-checkdepends=('python-mock' 'python-pytest')
-source=("https://pypi.python.org/packages/source/b/blessed/blessed-${pkgver}.tar.gz")
-sha256sums=('777b0b6b5ce51f3832e498c22bc6a093b6b5f99148c7cbf866d26e2dec51ef21')
+arch=(any)
+url=https://github.com/jquast/blessed
+license=(GPL)
+depends=(
+  python-six
+  python-wcwidth
+)
+makedepends=(
+  git
+  python-setuptools
+)
+checkdepends=(
+  python-tox
+)
+source=(git+https://github.com/jquast/blessed.git#tag=9579f0e789262dfef88b916f0cc23787623eaf16)
+sha256sums=(SKIP)
 
+pkgver() {
+  cd blessed
+
+  git describe --tags
+}
+
 build() {
-  cd blessed-${pkgver}
+  cd blessed
 
   python setup.py build
 }
 
 check() {
-  cd blessed-${pkgver}
+  cd blessed
 
-  python -m pytest
+  tox -e py37
 }
 
 package() {
-  cd blessed-${pkgver}
+  cd blessed
 
-  python setup.py install --root="${pkgdir}" --optimize='1' --skip-build
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list