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

Felix Yan felixonmars at archlinux.org
Wed Jun 9 18:29:06 UTC 2021


    Date: Wednesday, June 9, 2021 @ 18:29:06
  Author: felixonmars
Revision: 960332

upgpkg: python-jsonlines 2.0.0-1

Modified:
  python-jsonlines/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-09 18:26:24 UTC (rev 960331)
+++ PKGBUILD	2021-06-09 18:29:06 UTC (rev 960332)
@@ -1,30 +1,30 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-jsonlines
-pkgver=1.2.0
-pkgrel=7
+pkgver=2.0.0
+pkgrel=1
 pkgdesc="Library with helpers for the jsonlines file format"
 url="https://github.com/wbolster/jsonlines"
 license=('BSD')
 arch=('any')
-depends=('python-six')
+depends=('python-attrs')
 makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/wbolster/jsonlines/archive/$pkgver.tar.gz")
-sha512sums=('21af1c74024e1db9e301be0cd025b4cd82899059ecb3fde4c9a6ab4087ef413b7ecb6b5c41bdbb45ed1a48247c88c532c3671a4407890f96207616d2f7467c34')
+checkdepends=('python-pytest')
+source=("https://github.com/wbolster/jsonlines/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('24a86ca3ff100eb16ba573130ce8f0d933dbf4686c73f1251178195265ef8d11f0786cda13635bf5828a36c80903a77fed37147f3ffb81353769112971bf5952')
 
 build() {
-  cd "$srcdir"/jsonlines-$pkgver
+  cd jsonlines-$pkgver
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/jsonlines-$pkgver
-  python setup.py pytest
+  cd jsonlines-$pkgver
+  python -m pytest
 }
 
 package() {
   cd jsonlines-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+  install -Dm644 LICENSE.rst -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



More information about the arch-commits mailing list