[arch-commits] Commit in twine/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Jul 13 19:51:19 UTC 2018


    Date: Friday, July 13, 2018 @ 19:51:19
  Author: foutrelis
Revision: 358801

archrelease: copy trunk to community-staging-any

Added:
  twine/repos/community-staging-any/
  twine/repos/community-staging-any/PKGBUILD
    (from rev 358800, twine/trunk/PKGBUILD)

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

Copied: twine/repos/community-staging-any/PKGBUILD (from rev 358800, twine/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-13 19:51:19 UTC (rev 358801)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Chris Warrick <aur at chriswarrick.com>
+
+pkgbase=twine
+pkgname=('twine' 'python2-twine')
+pkgver=1.11.0
+pkgrel=2
+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-tqdm'
+             'python2-tqdm')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/twine/archive/$pkgver.tar.gz")
+sha512sums=('28e588f26b59bc9f4a8481caf2353934ad6927734762ffebb4416c147ec9e6dffb37092def20a76eb888c94b27f97e013dacc42c63e5dcda30f4290bb6c90a22')
+
+prepare() {
+  cp -a twine-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/twine-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/twine-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/twine-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/twine-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_twine() {
+  depends=('python-setuptools' 'python-requests-toolbelt' 'python-pkginfo' 'python-tqdm')
+  provides=('python-twine')
+  conflicts=('python-twine')
+  replaces=('python-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-tqdm')
+
+  cd twine-$pkgver-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