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

Caleb Maclennan alerque at gemini.archlinux.org
Thu Sep 16 18:39:54 UTC 2021


    Date: Thursday, September 16, 2021 @ 18:39:54
  Author: alerque
Revision: 1016523

upgpkg: python-pygit2 1.6.1-2; rebuild for libgit2-1.2.x

Modified:
  python-pygit2/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++-------------
 1 file changed, 4 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-16 18:27:35 UTC (rev 1016522)
+++ PKGBUILD	2021-09-16 18:39:54 UTC (rev 1016523)
@@ -14,14 +14,14 @@
 makedepends=('python-cffi' 'python-setuptools' 'git' 'python-six')
 checkdepends=('python-pytest-runner')
 source=("$pkgname-$pkgver.tar.gz"::$url/archive/v$pkgver.tar.gz
-        libgit2-1.2.x.patch::$url/commit/c777aa33f899d9199fb71716e312603fadef6502.patch)
+        "https://raw.githubusercontent.com/Homebrew/formula-patches/bf370d7782f7686a4a61d8d7d28068e78e28e48c/pygit2/libgit2-1.2.0.patch")
 sha256sums=('2e3fe066bb9a94694e6f87a54f28fffc3ff834fe3b1ff62036f4c9ec8aad1846'
-            '6f05c053a9a6d8f1f091b662c58aabce85dd62f1ed22b5a3a16934e18abb448e')
+            'b5acca41ff7752ea25adb050d7494939fc6d471f4f91d94a06f4afc9902f4117')
 
 prepare() {
 	cd "pygit2-$pkgver"
 	# Upstream Issue: https://github.com/libgit2/pygit2/pull/1089
-	patch -p1 < ../libgit2-1.2.x.patch
+	patch -p1 < ../libgit2-1.2.0.patch
 	# Disable tests that do stuff online
 	sed -i -e '/has_network/s/True/False/' test/utils.py
 }
@@ -33,16 +33,7 @@
 
 check() {
 	cd "pygit2-$pkgver"
-	local _pyver==$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-	# Disabled tests are related to the libgit2-1.2.x patch, re-enable when
-	# upstream supports it properly
-	python setup.py pytest --addopts "
-		--deselect test/test_branch_empty.py
-		--deselect test/test_remote_prune.py
-		--deselect test/test_remote.py
-		--deselect test/test_remote_utf8.py
-		--deselect test/test_repository.py
-		"
+	python setup.py pytest
 }
 
 package() {



More information about the arch-commits mailing list