[arch-commits] Commit in python-six/repos (testing-any testing-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Jan 17 00:32:45 UTC 2020


    Date: Friday, January 17, 2020 @ 00:32:44
  Author: felixonmars
Revision: 373605

archrelease: copy trunk to testing-any

Added:
  python-six/repos/testing-any/
  python-six/repos/testing-any/PKGBUILD
    (from rev 373604, python-six/trunk/PKGBUILD)

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

Copied: python-six/repos/testing-any/PKGBUILD (from rev 373604, python-six/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2020-01-17 00:32:44 UTC (rev 373605)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributer: Allan McRae <allan at archlinux.org>
+
+pkgbase=python-six
+pkgname=('python2-six' 'python-six')
+pkgver=1.14.0
+pkgrel=1
+pkgdesc="Python 2 and 3 compatibility utilities"
+arch=('any')
+url="https://pypi.python.org/pypi/six/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'tk')
+source=("https://pypi.io/packages/source/s/six/six-$pkgver.tar.gz")
+sha512sums=('4dea0f4e7961e8b582d665501c65852dc3b73516a0b6f78b0888c8670f1450df58bd3eea418777f41080b842ab6c3d8633be1034bcf920192e5590d5316e2c9e')
+
+build() {
+  cp -a six-$pkgver{,-py2}
+}
+
+check() {
+  cd "$srcdir"/six-$pkgver
+  python -m pytest
+
+  cd "$srcdir"/six-$pkgver-py2
+  python2 -m pytest
+}
+
+package_python-six() {
+  depends=('python')
+
+  cd six-$pkgver
+  python setup.py install --root "$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-six() {
+  depends=('python2')
+
+  cd six-$pkgver-py2
+  python2 setup.py install --root "$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list