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

Felix Yan felixonmars at archlinux.org
Sat Mar 7 18:05:44 UTC 2020


    Date: Saturday, March 7, 2020 @ 18:05:44
  Author: felixonmars
Revision: 591230

upgpkg: python-pygit2 1.0.3-3

- add a patch to fix import failure with libgit 0.99.0
- enable tests

Modified:
  python-pygit2/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-07 17:30:30 UTC (rev 591229)
+++ PKGBUILD	2020-03-07 18:05:44 UTC (rev 591230)
@@ -4,7 +4,7 @@
 
 pkgname=python-pygit2
 pkgver=1.0.3
-pkgrel=2
+pkgrel=3
 pkgdesc='Python bindings for libgit2'
 arch=('x86_64')
 url="https://github.com/libgit2/pygit2"
@@ -11,16 +11,30 @@
 license=('GPL2')
 depends=('libgit2>=1:0.27.0' 'python-cffi' 'python-six')
 makedepends=('python-cffi' 'python-setuptools' 'git' 'python-six')
+checkdepends=('python-pytest-runner')
 source=("$pkgname-$pkgver.tar.gz"::https://github.com/libgit2/pygit2/archive/v$pkgver.tar.gz
-        https://github.com/libgit2/pygit2/commit/0328605c855a1a52bde4bd41d507f161cf7b224f.patch)
+        https://github.com/libgit2/pygit2/commit/0328605c855a1a52bde4bd41d507f161cf7b224f.patch
+		https://github.com/libgit2/pygit2/commit/7a06a54a149e09e9e442a6dd0a2799ceeb2a843c.patch)
 sha256sums=('d6428fd4cd5263c76842675519b85874cfbb79db02bc32523eb784573c328a5b'
-            '20ac8232a3aea678aaa9271304643fc1d767a545b7849ed9ef14a18cbeab5da7')
+            '20ac8232a3aea678aaa9271304643fc1d767a545b7849ed9ef14a18cbeab5da7'
+            '5ee521c55d51a40ff07577f5adec33c9694aa7dbe164086bd7ce5038cc101f68')
 
 prepare() {
 	cd "pygit2-$pkgver"
 	patch -p1 -i ../0328605c855a1a52bde4bd41d507f161cf7b224f.patch
+	patch -p1 -i ../7a06a54a149e09e9e442a6dd0a2799ceeb2a843c.patch
 }
 
+build() {
+	cd "pygit2-$pkgver"
+	python setup.py build
+}
+
+check() {
+	cd "pygit2-$pkgver"
+	python setup.py pytest
+}
+
 package() {
 	cd "pygit2-$pkgver"
 	LANG=en_US.UTF8 python setup.py install --root="${pkgdir}" --optimize=1



More information about the arch-commits mailing list