[arch-commits] Commit in python-packaging/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Sep 28 06:17:35 UTC 2018
Date: Friday, September 28, 2018 @ 06:17:35
Author: felixonmars
Revision: 335491
upgpkg: python-packaging 18.0-1
Modified:
python-packaging/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++------------------
1 file changed, 8 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-27 21:59:28 UTC (rev 335490)
+++ PKGBUILD 2018-09-28 06:17:35 UTC (rev 335491)
@@ -2,9 +2,8 @@
pkgbase=python-packaging
pkgname=(python-packaging python2-packaging)
-pkgver=17.1
-_commit=0dfec396998e7237e12dc2e3a06385ffa1bd97b1
-pkgrel=2
+pkgver=18.0
+pkgrel=1
pkgdesc="Core utilities for Python packages"
arch=('any')
url="https://github.com/pypa/packaging"
@@ -12,27 +11,18 @@
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=("$pkgbase-$_commit.tar.gz::https://github.com/pypa/packaging/archive/$_commit.tar.gz")
-sha512sums=('00f0ac87794813372931b31c5dd52f76153b0fa8fc21c2a1d5dafdd792e12ef0d87503aa7bbceb8642f777900dcaccfafca77dc391c5afdce1471a7ba9c4021e')
+source=("https://pypi.io/packages/source/p/packaging/packaging-$pkgver.tar.gz")
+sha512sums=('9f7cab9bdd756cc49192379b8381f81d218d3201e071498f2f6fd0307b1c46ad1a8c8b9d4f27e62d5f469eb05603a57be54deb8a5e0dbc2cf542e436a7127b34')
-prepare() {
- mv packaging-{$_commit,$pkgver}
- cp -a packaging-$pkgver{,-py2}
-}
-
build() {
- cd "$srcdir"/packaging-$pkgver
+ cd packaging-$pkgver
python setup.py build
-
- cd "$srcdir"/packaging-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/packaging-$pkgver
+ cd packaging-$pkgver
python setup.py pytest
-
- cd "$srcdir"/packaging-$pkgver-py2
python2 setup.py pytest
}
@@ -39,7 +29,7 @@
package_python-packaging() {
depends=('python-pyparsing' 'python-six')
- cd "$srcdir"/packaging-$pkgver
+ cd packaging-$pkgver
python setup.py install --root "$pkgdir"
}
@@ -46,6 +36,6 @@
package_python2-packaging() {
depends=('python2-pyparsing' 'python2-six')
- cd "$srcdir"/packaging-$pkgver-py2
+ cd packaging-$pkgver
python2 setup.py install --root "$pkgdir"
}
More information about the arch-commits
mailing list