[arch-commits] Commit in twine/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Jun 5 14:21:13 UTC 2017
Date: Monday, June 5, 2017 @ 14:21:12
Author: felixonmars
Revision: 234211
upgpkg: twine 1.9.1-1
Modified:
twine/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-05 14:19:47 UTC (rev 234210)
+++ PKGBUILD 2017-06-05 14:21:12 UTC (rev 234211)
@@ -4,54 +4,54 @@
pkgbase=twine
pkgname=('twine' 'python2-twine')
-pkgver=1.8.1
-pkgrel=2
+pkgver=1.9.1
+pkgrel=1
pkgdesc='Collection of utilities for interacting with PyPI'
arch=('any')
url='https://pypi.python.org/pypi/twine'
license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-clint' 'python2-clint'
- 'python-requests-toolbelt' 'python2-requests-toolbelt' 'python-pkginfo'
- 'python2-pkginfo' 'git')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests-toolbelt'
+ 'python2-requests-toolbelt' 'python-pkginfo' 'python2-pkginfo' 'python-tqdm'
+ 'python2-tqdm')
checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend')
-source=("git+https://github.com/pypa/twine.git#tag=$pkgver")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/twine/archive/$pkgver.tar.gz")
+sha512sums=('SKIP')
prepare() {
- cp -a twine{,-py2}
+ cp -a twine-$pkgver{,-py2}
}
build() {
- cd "$srcdir"/twine
+ cd "$srcdir"/twine-$pkgver
python setup.py build
- cd "$srcdir"/twine-py2
+ cd "$srcdir"/twine-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/twine
- python setup.py ptr
+ cd "$srcdir"/twine-$pkgver
+ python setup.py pytest
- cd "$srcdir"/twine-py2
- python2 setup.py ptr
+ cd "$srcdir"/twine-$pkgver-py2
+ python2 setup.py pytest
}
package_twine() {
- depends=('python-setuptools' 'python-requests-toolbelt' 'python-pkginfo' 'python-clint')
+ depends=('python-setuptools' 'python-requests-toolbelt' 'python-pkginfo' 'python-tqdm')
provides=('python-twine')
conflicts=('python-twine')
replaces=('python-twine')
- cd twine
+ cd twine-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
ln -s twine "$pkgdir"/usr/bin/twine3
}
package_python2-twine() {
- depends=('python2-setuptools' 'python2-requests-toolbelt' 'python2-pkginfo' 'python2-clint')
+ depends=('python2-setuptools' 'python2-requests-toolbelt' 'python2-pkginfo' 'python2-tqdm')
- cd twine-py2
+ cd twine-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
mv "$pkgdir"/usr/bin/twine{,2}
}
More information about the arch-commits
mailing list