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

Felix Yan felixonmars at archlinux.org
Tue Jul 5 05:47:11 UTC 2016


    Date: Tuesday, July 5, 2016 @ 05:47:10
  Author: felixonmars
Revision: 182247

upgpkg: twine 1.7.0-1

Modified:
  twine/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-07-05 05:43:58 UTC (rev 182246)
+++ PKGBUILD	2016-07-05 05:47:10 UTC (rev 182247)
@@ -4,58 +4,56 @@
 
 pkgbase=twine
 pkgname=('twine' 'python2-twine')
-pkgver=1.6.5
-_commit=cce0be4334379a04c7e2b958abdebd5d91cb8d01
+pkgver=1.7.0
 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-requests-toolbelt' 'python2-requests-toolbelt'
-             'python-pkginfo' 'python2-pkginfo' 'git')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-clint' 'python2-clint'
+             'python-requests-toolbelt' 'python2-requests-toolbelt' 'python-pkginfo'
+             'python2-pkginfo' 'git')
 checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend')
-options=('!emptydirs')
-source=("git+https://github.com/pypa/twine.git#commit=$_commit")
+source=("git+https://github.com/pypa/twine.git#tag=$pkgver")
 md5sums=('SKIP')
 
 prepare() {
-  cd "${srcdir}/${pkgbase}"
-  cp -a "${srcdir}/${pkgbase}" "${srcdir}/${pkgbase}-py2"
+  cp -a twine{,-py2}
 }
 
 build() {
-  cd "${srcdir}/${pkgbase}"
+  cd "$srcdir"/twine
   python setup.py build
 
-  cd "${srcdir}/${pkgbase}-py2"
+  cd "$srcdir"/twine-py2
   python2 setup.py build
 }
 
 check() {
-  cd "${srcdir}/${pkgbase}"
+  cd "$srcdir"/twine
   python setup.py ptr
 
-  cd "${srcdir}/${pkgbase}-py2"
+  cd "$srcdir"/twine-py2
   python2 setup.py ptr
 }
 
 package_twine() {
-  depends=('python-setuptools' 'python-requests-toolbelt' 'python-pkginfo')
+  depends=('python-setuptools' 'python-requests-toolbelt' 'python-pkginfo' 'python-clint')
   provides=('python-twine')
   conflicts=('python-twine')
   replaces=('python-twine')
 
-  cd "${srcdir}/${pkgbase}"
-  python3 setup.py install --root="${pkgdir}/" --optimize=1
-  ln -s ${pkgbase} "${pkgdir}/usr/bin/${pkgbase}3"
+  cd twine
+  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')
+  depends=('python2-setuptools' 'python2-requests-toolbelt' 'python2-pkginfo' 'python2-clint')
 
-  cd "${srcdir}/${pkgbase}-py2"
-  python2 setup.py install --root="${pkgdir}/" --optimize=1
-  mv "${pkgdir}/usr/bin/${pkgbase}" "${pkgdir}/usr/bin/${pkgbase}2"
+  cd twine-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  mv "$pkgdir"/usr/bin/twine{,2}
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list