[arch-commits] Commit in python-pygit2/repos/community-x86_64 (PKGBUILD PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Feb 24 15:31:53 UTC 2022
Date: Thursday, February 24, 2022 @ 15:31:53
Author: alerque
Revision: 1136429
archrelease: copy trunk to community-x86_64
Added:
python-pygit2/repos/community-x86_64/PKGBUILD
(from rev 1136428, python-pygit2/trunk/PKGBUILD)
Deleted:
python-pygit2/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 77 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 39 insertions(+), 38 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-24 15:31:46 UTC (rev 1136428)
+++ PKGBUILD 2022-02-24 15:31:53 UTC (rev 1136429)
@@ -1,38 +0,0 @@
-# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
-# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-# Contributor: Daniel Micay <danielmicay at gmail.com>
-
-pkgname=python-pygit2
-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.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)
-sha256sums=('c4c04215eed965c9455b2736155695b08f0ffeaaf24299d9d33b0314499acdca')
-
-prepare() {
- cd "pygit2-$pkgver"
- # Disable tests that do stuff online
- sed -i -e '/has_network/s/True/False/' test/utils.py
-}
-
-build() {
- cd "pygit2-$pkgver"
- python -m build -wn
-}
-
-check() {
- cd "pygit2-$pkgver"
- python setup.py pytest
-}
-
-package() {
- cd "pygit2-$pkgver"
- LANG=en_US.UTF8 python -m installer -d "${pkgdir}" dist/*.whl
-}
Copied: python-pygit2/repos/community-x86_64/PKGBUILD (from rev 1136428, python-pygit2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-02-24 15:31:53 UTC (rev 1136429)
@@ -0,0 +1,39 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+
+pkgname=python-pygit2
+pkgver=1.9.0
+pkgrel=2
+pkgdesc='Python bindings for libgit2'
+arch=('x86_64')
+url="https://github.com/libgit2/pygit2"
+license=('GPL2')
+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)
+sha256sums=('c4c04215eed965c9455b2736155695b08f0ffeaaf24299d9d33b0314499acdca')
+
+prepare() {
+ cd "pygit2-$pkgver"
+ # Disable tests that do stuff online
+ sed -i -e '/has_network/s/True/False/' test/utils.py
+}
+
+build() {
+ cd "pygit2-$pkgver"
+ python -m build -wn
+}
+
+check() {
+ cd "pygit2-$pkgver"
+ local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-$_pyver" pytest
+}
+
+package() {
+ cd "pygit2-$pkgver"
+ LANG=en_US.UTF8 python -m installer -d "${pkgdir}" dist/*.whl
+}
More information about the arch-commits
mailing list