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

Felix Yan felixonmars at archlinux.org
Thu Aug 20 21:32:28 UTC 2020


    Date: Thursday, August 20, 2020 @ 21:32:28
  Author: felixonmars
Revision: 394459

archrelease: copy trunk to testing-any

Added:
  python-attrs/repos/testing-any/
  python-attrs/repos/testing-any/PKGBUILD
    (from rev 394458, python-attrs/trunk/PKGBUILD)

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

Copied: python-attrs/repos/testing-any/PKGBUILD (from rev 394458, python-attrs/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2020-08-20 21:32:28 UTC (rev 394459)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-attrs
+pkgname=('python-attrs' 'python2-attrs')
+pkgver=20.1.0
+pkgrel=1
+pkgdesc="Attributes without boilerplate."
+arch=('any')
+license=('MIT')
+url="https://attrs.readthedocs.org/"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python-zope-interface' 'python-hypothesis')
+source=("https://pypi.io/packages/source/a/attrs/attrs-$pkgver.tar.gz")
+sha512sums=('0be286c9263ea26fbb29a89a1c9a37577577b1147cbf440de257a3652147bcb559c8fc4118a900cef558b9f49b59074a276c8a4843f3e8829278eaae5b70e913')
+
+prepare() {
+  cp -a attrs-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/attrs-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/attrs-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd attrs-$pkgver
+  python setup.py pytest
+}
+
+package_python-attrs() {
+  depends=('python')
+
+  cd attrs-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-attrs() {
+  depends=('python2')
+
+  cd attrs-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list