[arch-commits] Commit in python-gitpython/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Aug 27 13:37:59 UTC 2019


    Date: Tuesday, August 27, 2019 @ 13:37:59
  Author: dvzrv
Revision: 502814

archrelease: copy trunk to community-any

Added:
  python-gitpython/repos/community-any/PKGBUILD
    (from rev 502813, python-gitpython/trunk/PKGBUILD)
Deleted:
  python-gitpython/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   97 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 49 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-27 13:37:54 UTC (rev 502813)
+++ PKGBUILD	2019-08-27 13:37:59 UTC (rev 502814)
@@ -1,48 +0,0 @@
-# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
-# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
-# Contributor: brent s. <bts[at]square-r00t[dot]net>
-
-_pkgname=python-gitpython
-_pypiname=GitPython
-pkgbase=python-gitpython
-pkgdesc="A python library used to interact with Git repositories"
-pkgname=('python-gitpython' 'python2-gitpython')
-pkgver=2.1.11
-pkgrel=2
-url="https://github.com/gitpython-developers/gitpython"
-license=('BSD')
-arch=("any")
-makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
-source=("${_pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/G/${_pypiname}/${_pypiname}-${pkgver}.tar.gz"
-        "${_pkgname}-${pkgver}.tar.gz.asc::https://pypi.org/packages/source/G/${_pypiname}/${_pypiname}-${pkgver}.tar.gz.asc")
-sha512sums=('5f964ee56c3f27c28f502150216af29b8463b19d9c0f773458dbabf17ba8587ee5c5e3fbcb31ad46c55e202d06bae447fd40007890a1bc116fe0370cdfc6401f'
-            'SKIP')
-validpgpkeys=('2CF6E0B51AAF73F09B1C21174D1DA68C88710E60') # Sebastian Thiel (In Rust I trust!) <byronimo at gmail.com>
-
-prepare() {
-    cp -a "${srcdir}/${_pypiname}-${pkgver}"{,-py2}
-}
-
-build() {
-    cd "${srcdir}/${_pypiname}-${pkgver}"
-    python setup.py build
-
-    cd "${srcdir}/${_pypiname}-${pkgver}-py2"
-    python2 setup.py build
-}
-
-package_python-gitpython() {
-    depends=('python' 'python-gitdb>=2.0.0')
-
-    cd "${srcdir}/${_pypiname}-${pkgver}"
-    python setup.py install --skip-build --root="${pkgdir}" --optimize=1
-    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python2-gitpython() {
-    depends=('python2' 'python2-gitdb>=2.0.0')
-
-    cd "${srcdir}/${_pypiname}-${pkgver}-py2"
-    python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
-    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-gitpython/repos/community-any/PKGBUILD (from rev 502813, python-gitpython/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-27 13:37:59 UTC (rev 502814)
@@ -0,0 +1,49 @@
+# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
+# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
+# Contributor: brent s. <bts[at]square-r00t[dot]net>
+
+_name=GitPython
+pkgdesc="A python library used to interact with Git repositories"
+pkgname=python-gitpython
+pkgver=3.0.2
+pkgrel=1
+url="https://github.com/gitpython-developers/gitpython"
+license=('BSD')
+arch=('any')
+depends=('git' 'python-gitdb')
+makedepends=('python-setuptools')
+checkdepends=('python-ddt' 'python-nose')
+source=("${pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/G/${_name}/${_name}-${pkgver}.tar.gz"
+        "${pkgname}-${pkgver}.tar.gz.asc::https://pypi.org/packages/source/G/${_name}/${_name}-${pkgver}.tar.gz.asc")
+sha512sums=('3ee5f31a45284f62a7d93500f559b130a62e848ee62bdaa6d18e15982b23d3457fecaa9d82eb5d20473531e69c4e21b6fdceb3ad1a82d73a47bc2112dcf67187'
+            'SKIP')
+validpgpkeys=('2CF6E0B51AAF73F09B1C21174D1DA68C88710E60') # Sebastian Thiel (In Rust I trust!) <byronimo at gmail.com>
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+# # tests are broken (only in released pypi sources):
+# # https://github.com/gitpython-developers/GitPython/issues/914
+# check() {
+#   cd "${pkgname}-${pkgver}"
+#   git config --global user.email "something at something.tld"
+#   git config --global user.name "Test User"
+#   nosetests -vd
+# }
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --prefix=/usr \
+                          --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