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

Felix Yan felixonmars at archlinux.org
Sat Nov 16 16:28:40 UTC 2019


    Date: Saturday, November 16, 2019 @ 16:28:39
  Author: felixonmars
Revision: 529571

archrelease: copy trunk to community-testing-any

Added:
  twine/repos/community-testing-any/
  twine/repos/community-testing-any/PKGBUILD
    (from rev 529570, twine/trunk/PKGBUILD)

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

Copied: twine/repos/community-testing-any/PKGBUILD (from rev 529570, twine/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-11-16 16:28:39 UTC (rev 529571)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Chris Warrick <aur at chriswarrick.com>
+
+pkgname=twine
+pkgver=2.0.0
+pkgrel=1
+pkgdesc='Collection of utilities for interacting with PyPI'
+arch=('any')
+url='https://pypi.python.org/pypi/twine'
+license=('Apache')
+depends=('python-setuptools' 'python-requests-toolbelt' 'python-pkginfo' 'python-tqdm'
+         'python-readme-renderer' 'python-keyring')
+makedepends=('python-setuptools-scm')
+provides=('python-twine')
+conflicts=('python-twine')
+replaces=('python-twine')
+checkdepends=('python-pytest-runner' 'python-pretend')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/twine/archive/$pkgver.tar.gz")
+sha512sums=('a13d1f3fb547f41356d222befdfa0aa293876844c872222c68d0e6acaa1f97e2f6be9ea0c7815ac054bb826b61679692fa6e9f8eb861c70a1c87b4ede4442f2b')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd twine-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd twine-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd twine-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  ln -s twine "$pkgdir"/usr/bin/twine3
+}



More information about the arch-commits mailing list