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

George Rawlinson grawlinson at gemini.archlinux.org
Mon May 30 07:37:51 UTC 2022


    Date: Monday, May 30, 2022 @ 07:37:51
  Author: grawlinson
Revision: 1214946

upgpkg: python-debian 0.1.44-1

New upstream release.

Modified:
  python-debian/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++----------
 1 file changed, 25 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-30 07:37:47 UTC (rev 1214945)
+++ PKGBUILD	2022-05-30 07:37:51 UTC (rev 1214946)
@@ -4,30 +4,45 @@
 # Contributor: Johannes Dewender   arch at JonnyJD dot net
 
 pkgname=python-debian
-pkgver=0.1.43
+pkgver=0.1.44
 pkgrel=1
 pkgdesc='Python module to work with Debian-related data formats'
 arch=('any')
 url='https://salsa.debian.org/python-debian-team/python-debian'
 license=('GPL')
-depends=('python-chardet' 'python-six')
-makedepends=('python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('e07584ee7b989be6a225980734b87d5100719b2dd989c174023f31d3cdff51b9ab486676ff03e1895ccf44c12ddfabbb707e30d51ce1afbadb0fcc828a156e64')
-b2sums=('fc0c43a25c4ba5d8a07e8a8e1745c88020c3f3f08de5f4d3ecae2d1697059f0fff7060c627b2eec9a6781990c95494283af2a3ee77ac75c7d4ec501e5842edfe')
+depends=(
+  'python'
+  'python-chardet'
+  'python-six'
+)
+makedepends=('git' 'python-setuptools')
+_commit='541ab6657e7ba2fa80c3882febfb561dfc9649df'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
 
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags
+}
+
 build() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
+
   python setup.py build
 }
 
 check() {
-  cd "$pkgname-$pkgver"
-  rm lib/debian/tests/test_deb{822,file}.py # remove failing tests .. for now
+  cd "$pkgname"
+
+  # remove failing tests .. for now
+  rm lib/debian/tests/test_debfile.py
+
   python -m unittest discover --verbose lib/
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
+
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }



More information about the arch-commits mailing list