Drop Python2 support. Round 4

This commit is contained in:
Alexey Pavlov
2020-03-02 12:44:15 +03:00
parent 8e4c3cd3da
commit 885bbbadf0
53 changed files with 218 additions and 262 deletions

View File

@@ -3,29 +3,27 @@
_realname=packaging
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=19.2
pkgrel=2
pkgver=20.1
pkgrel=1
pkgdesc="Core utilities for Python packages"
arch=('any')
url="https://github.com/pypa/packaging"
license=('Apache')
depends=('python3-attrs' 'python3-pyparsing' 'python3-six')
makedepends=('python3-setuptools' 'git')
depends=('python-attrs' 'python-pyparsing' 'python-six')
makedepends=('python-setuptools' 'git')
provides=("python3-${_realname}")
replaces=("python3-${_realname}")
conflicts=("python3-${_realname}")
source=("https://pypi.io/packages/source/p/packaging/packaging-${pkgver}.tar.gz")
sha256sums=('28b924174df7a2fa32c1953825ff29c61e2f5e082343165438812f00d3a7fc47')
sha256sums=('e665345f9eef0c621aa0bf2f8d78cf6d21904eef16a93f020240b704a57f1334')
build() {
cd "${srcdir}"/packaging-${pkgver}
python3 setup.py build
/usr/bin/python setup.py build
}
package() {
cd "${srcdir}"/packaging-${pkgver}
python3 setup.py install --root "${pkgdir}"
/usr/bin/python setup.py install --root "${pkgdir}"
}