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

David Runge dvzrv at gemini.archlinux.org
Sun Sep 19 20:57:28 UTC 2021


    Date: Sunday, September 19, 2021 @ 20:57:27
  Author: dvzrv
Revision: 1017773

upgpkg: python-gitpython 3.1.24-1: Upgrade to 3.1.24.

Add dummy pytest file to unset all implicit pytest configuration.
Simplify installation in package() to adhere to python package guidelines.

Modified:
  python-gitpython/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-19 20:28:38 UTC (rev 1017772)
+++ PKGBUILD	2021-09-19 20:57:27 UTC (rev 1017773)
@@ -5,7 +5,7 @@
 _name=gitpython
 pkgdesc="A python library used to interact with Git repositories"
 pkgname=python-gitpython
-pkgver=3.1.18
+pkgver=3.1.24
 pkgrel=1
 url="https://github.com/gitpython-developers/gitpython"
 license=('BSD')
@@ -18,6 +18,12 @@
 b2sums=('SKIP')
 validpgpkeys=('27C50E7F590947D7273A741E85194C08421980C9') # Sebastian Thiel (In Rust I trust!) <byronimo at gmail.com>
 
+prepare() {
+  # create empty dummy pytest config so that we can deselect all implicit settings
+  touch pytest.ini
+  cd "${_name}"
+}
+
 build() {
   cd "${_name}"
   python setup.py build
@@ -29,14 +35,13 @@
   git config --global user.name "Test User"
   git config --global user.email "test at user.org"
   ./init-tests-after-clone.sh
-  PYTHONDONTWRITEBYTECODE=1 pytest -v -k 'not test_reading and not test_writing and not test_base and not test_index_file_diffing'
+  PYTHONDONTWRITEBYTECODE=1 pytest -v -c ../pytest.ini \
+    -k "not test_base and not test_reading and not test_writing"
 }
 
 package() {
   cd "${_name}"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
+  python setup.py install --optimize=1 --root="${pkgdir}"
   install -vDm 644 {AUTHORS,CHANGES,{CONTRIBUTING,README}.md} \
     -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"



More information about the arch-commits mailing list