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

Felix Yan fyan at archlinux.org
Sun Sep 13 00:43:39 UTC 2015


    Date: Sunday, September 13, 2015 @ 02:43:39
  Author: fyan
Revision: 140011

upgpkg: twine 1.5.0-4

use git source to fix upstream tests (https://github.com/pypa/twine/issues/120)

Modified:
  twine/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-12 20:46:50 UTC (rev 140010)
+++ PKGBUILD	2015-09-13 00:43:39 UTC (rev 140011)
@@ -5,38 +5,37 @@
 pkgbase=twine
 pkgname=('twine' 'python2-twine')
 pkgver=1.5.0
-pkgrel=3
+pkgrel=4
 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')
+             'python-pkginfo' 'python2-pkginfo' 'git')
 checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend')
 options=('!emptydirs')
-source=("https://pypi.python.org/packages/source/${pkgbase:0:1}/${pkgbase}/${pkgbase}-${pkgver}.tar.gz")
-md5sums=('12948245aeb59acf32f663e1d81fed34')
+source=("git+https://github.com/pypa/twine.git#tag=$pkgver")
+md5sums=('SKIP')
 
 prepare() {
-  cd "${srcdir}/${pkgbase}-${pkgver}"
-  cp -a "${srcdir}/${pkgbase}-${pkgver}" "${srcdir}/${pkgbase}-${pkgver}-py2"
+  cd "${srcdir}/${pkgbase}"
+  cp -a "${srcdir}/${pkgbase}" "${srcdir}/${pkgbase}-py2"
 }
 
 build() {
-  cd "${srcdir}/${pkgbase}-${pkgver}"
+  cd "${srcdir}/${pkgbase}"
   python setup.py build
 
-  cd "${srcdir}/${pkgbase}-${pkgver}-py2"
+  cd "${srcdir}/${pkgbase}-py2"
   python2 setup.py build
 }
 
-check() {(
-  cd "${srcdir}/${pkgbase}-${pkgver}"
+check() {
+  cd "${srcdir}/${pkgbase}"
   python setup.py ptr
 
-  cd "${srcdir}/${pkgbase}-${pkgver}-py2"
+  cd "${srcdir}/${pkgbase}-py2"
   python2 setup.py ptr
-  ) || warning "Tests failed"
 }
 
 package_twine() {
@@ -45,7 +44,7 @@
   conflicts=('python-twine')
   replaces=('python-twine')
 
-  cd "${srcdir}/${pkgbase}-${pkgver}"
+  cd "${srcdir}/${pkgbase}"
   python3 setup.py install --root="${pkgdir}/" --optimize=1
   ln -s ${pkgbase} "${pkgdir}/usr/bin/${pkgbase}3"
 }
@@ -53,7 +52,7 @@
 package_python2-twine() {
   depends=('python2-setuptools' 'python2-requests-toolbelt' 'python2-pkginfo')
 
-  cd "${srcdir}/${pkgbase}-${pkgver}-py2"
+  cd "${srcdir}/${pkgbase}-py2"
   python2 setup.py install --root="${pkgdir}/" --optimize=1
   mv "${pkgdir}/usr/bin/${pkgbase}" "${pkgdir}/usr/bin/${pkgbase}2"
 }



More information about the arch-commits mailing list