From c887862ca485015e48c6e6ec5a454fff384530c2 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 4 Oct 2020 13:48:56 +0000 Subject: python-packaging: update 20.4 --- abs/core/python_modules/python-packaging/PKGBUILD | 34 +++++++++-------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/abs/core/python_modules/python-packaging/PKGBUILD b/abs/core/python_modules/python-packaging/PKGBUILD index 34a48bc..d23b937 100644 --- a/abs/core/python_modules/python-packaging/PKGBUILD +++ b/abs/core/python_modules/python-packaging/PKGBUILD @@ -1,49 +1,41 @@ -# $Id$ # Maintainer: Felix Yan pkgbase=python-packaging pkgname=(python-packaging python2-packaging) -pkgver=16.8 -pkgrel=3 +pkgver=20.4 +pkgrel=1 pkgdesc="Core utilities for Python packages" arch=('any') url="https://github.com/pypa/packaging" license=('Apache') -makedepends=('python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing' 'git') -checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend' 'python-coverage' 'python2-coverage') -source=("git+https://github.com/pypa/packaging.git#tag=$pkgver") -md5sums=('SKIP') - -prepare() { - cp -a packaging{,-py2} -} +makedepends=('python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend' + 'python-coverage' 'python2-coverage') +source=("https://pypi.io/packages/source/p/packaging/packaging-$pkgver.tar.gz") +sha512sums=('d53912041a9950efb5d221fc968adc328c2ef1e54ec9806d2158fd6db1b170e37afb05213f5750b10c59927504083ca3781c958caa0c802b1c7c0fe1ac1682a4') build() { - cd "$srcdir"/packaging + cd packaging-$pkgver python setup.py build - - cd "$srcdir"/packaging-py2 python2 setup.py build } check() { - cd "$srcdir"/packaging - python setup.py ptr - - cd "$srcdir"/packaging-py2 - python2 setup.py ptr + cd packaging-$pkgver + python setup.py pytest + python2 setup.py pytest } package_python-packaging() { depends=('python-pyparsing' 'python-six') - cd "$srcdir"/packaging + cd packaging-$pkgver python setup.py install --root "$pkgdir" } package_python2-packaging() { depends=('python2-pyparsing' 'python2-six') - cd "$srcdir"/packaging-py2 + cd packaging-$pkgver python2 setup.py install --root "$pkgdir" } -- cgit v0.12