Lukas Fleischer pushed to branch main at Arch Linux / Packaging / Packages /
python-pygit2
Commits:
da888742 by Lukas Fleischer at 2026-11-12T18:29:37-05:00
upgpkg: 1.21.0-1: upstream release
Closes archlinux/packaging/packages/python-pygit2#8
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
pkgbase = python-pygit2
pkgdesc = Python bindings for libgit2
- pkgver = 1.20.1
+ pkgver = 1.21.0
pkgrel = 1
url = https://github.com/libgit2/pygit2
arch = x86_64
@@ -15,8 +15,10 @@ pkgbase = python-pygit2
depends = libgit2
depends = python
depends = python-cffi
- source =
https://github.com/libgit2/pygit2/archive/v1.20.1/python-pygit2-1.20.1.tar.gz
- sha256sums =
b52fb94c73664f383e6205955c80e228edee098ba37b9b94e46facc6333f102f
+ source =
https://github.com/libgit2/pygit2/archive/v1.21.0/python-pygit2-1.21.0.tar.gz
+ source =
https://github.com/libgit2/pygit2/commit/1c788f345ef4e525d6a6a1a7d0d4da7dbbe8ec6f.patch
+ sha256sums =
d2e82fc3dfd50ade667728bac34618e70e7d66b49d573b32a67f50a15f05b44f
+ sha256sums =
0678e49b37e891e2511fd35ed5622b62c554df09d51cfc6d81345c864bbe0f83
pkgname = python-pygit2
depends = glibc
=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
# Contributor: Daniel Micay <[email protected]>
pkgname=python-pygit2
-pkgver=1.20.1
+pkgver=1.21.0
pkgrel=1
pkgdesc='Python bindings for libgit2'
arch=('x86_64')
@@ -13,13 +13,19 @@ license=('LicenseRef-GPL-2.0-only-with-linking-exception')
depends=('glibc' 'libgit2' 'python' 'python-cffi')
makedepends=('cython' 'python-build' 'python-installer' 'python-setuptools'
'python-wheel')
checkdepends=('python-pytest')
-source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha256sums=('b52fb94c73664f383e6205955c80e228edee098ba37b9b94e46facc6333f102f')
+source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+ "$url"/commit/1c788f345ef4e525d6a6a1a7d0d4da7dbbe8ec6f.patch)
+sha256sums=('d2e82fc3dfd50ade667728bac34618e70e7d66b49d573b32a67f50a15f05b44f'
+ '0678e49b37e891e2511fd35ed5622b62c554df09d51cfc6d81345c864bbe0f83')
prepare() {
cd "pygit2-$pkgver"
+
# Disable tests that do stuff online
sed -e '/has_network/s/True/False/' -i test/utils.py
+
+ # Fix build with setuptools 84.2.1
+ patch -p1 -i ../1c788f345ef4e525d6a6a1a7d0d4da7dbbe8ec6f.patch
}
build() {
@@ -30,7 +36,7 @@ build() {
check() {
cd "pygit2-$pkgver"
local _pyver=cpython-$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-$_pyver" pytest
+ PYTHONSAFEPATH=1 PYTHONPATH="$PWD/build/lib.linux-$CARCH-$_pyver" pytest
}
package() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pygit2/-/commit/da88874214f641bc5828b1ddedc432779ad30b62
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pygit2/-/commit/da88874214f641bc5828b1ddedc432779ad30b62
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help