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

Caleb Maclennan alerque at gemini.archlinux.org
Thu Feb 24 13:59:26 UTC 2022


    Date: Thursday, February 24, 2022 @ 13:59:25
  Author: alerque
Revision: 1136414

upgpkg: python-pygit2 1.9.0-1; also switch to pep517 build

Modified:
  python-pygit2/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++----------------
 1 file changed, 9 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-24 13:46:25 UTC (rev 1136413)
+++ PKGBUILD	2022-02-24 13:59:25 UTC (rev 1136414)
@@ -4,42 +4,35 @@
 # Contributor: Daniel Micay <danielmicay at gmail.com>
 
 pkgname=python-pygit2
-pkgver=1.8.0
-pkgrel=2
+pkgver=1.9.0
+pkgrel=1
 pkgdesc='Python bindings for libgit2'
 arch=('x86_64')
 url="https://github.com/libgit2/pygit2"
 license=('GPL2')
-depends=('libgit2>=1:1.3.0' 'python-cffi' 'python-six' 'python-cached-property')
-makedepends=('python-cffi' 'python-setuptools' 'git' 'python-six')
+depends=('libgit2>=1:1.4.0' 'python-cffi' 'python-six' 'python-cached-property')
+makedepends=('python-build' 'python-cffi' 'python-installer' 'python-setuptools' 'git' 'python-six' 'python-wheel')
 checkdepends=('python-pytest-runner')
-source=("$pkgname-$pkgver.tar.gz"::$url/archive/v$pkgver.tar.gz
-        "$pkgname-1.4.x.patch"::$url/commit/935e2b5b4cd36bfbc8c15b5498a4f80df77c3176.patch)
-sha256sums=('61da6f55643bc7d9c70344b1b3f9f80fedbbc5bf41e88f82d10670380ae704b5'
-            '9e1fe49f58b833eda5821be5df811f75b8c20374645398840a608f554eb02ad3')
+source=("$pkgname-$pkgver.tar.gz"::$url/archive/v$pkgver.tar.gz)
+sha256sums=('c4c04215eed965c9455b2736155695b08f0ffeaaf24299d9d33b0314499acdca')
 
 prepare() {
 	cd "pygit2-$pkgver"
 	# Disable tests that do stuff online
 	sed -i -e '/has_network/s/True/False/' test/utils.py
-	# Unblock libgit2 1.4.x
-	patch -p1 < ../${source[1]%::*}
 }
 
 build() {
 	cd "pygit2-$pkgver"
-	python setup.py build
+	python -m build -wn
 }
 
 check() {
 	cd "pygit2-$pkgver"
-
-	# Skipped tests fail because upstream test suite hasn't 100% adapted to libgit2 1.4.x
-	python setup.py pytest \
-		--addopts "--deselect test/test_diff.py::test_diff_patch --deselect test/test_diff.py::test_diff_patchid"
+	python setup.py pytest
 }
 
 package() {
 	cd "pygit2-$pkgver"
-	LANG=en_US.UTF8 python setup.py install --root="${pkgdir}" --optimize=1
+	LANG=en_US.UTF8 python -m installer -d "${pkgdir}" dist/*.whl
 }



More information about the arch-commits mailing list