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

Felix Yan felixonmars at archlinux.org
Fri May 1 18:59:32 UTC 2020


    Date: Friday, May 1, 2020 @ 18:59:28
  Author: felixonmars
Revision: 382106

archrelease: copy trunk to testing-any

Added:
  python-astroid/repos/testing-any/
  python-astroid/repos/testing-any/PKGBUILD
    (from rev 382105, python-astroid/trunk/PKGBUILD)

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

Copied: python-astroid/repos/testing-any/PKGBUILD (from rev 382105, python-astroid/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2020-05-01 18:59:28 UTC (rev 382106)
@@ -0,0 +1,37 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-astroid
+pkgver=2.4.0
+pkgrel=1
+pkgdesc="Useful miscellaneous modules used by Logilab projects"
+arch=('any')
+url="https://github.com/PyCQA/astroid"
+license=('LGPL')
+depends=('python-six' 'python-lazy-object-proxy' 'python-wrapt')
+makedepends=('python-setuptools')
+checkdepends=('python-dateutil' 'python-pytest' 'python-numpy' 'python-nose' 'python-pytest-runner')
+replaces=('python-logilab-astng')
+conflicts=('python-logilab-astng')
+source=(https://github.com/PyCQA/astroid/archive/astroid-$pkgver.tar.gz)
+sha512sums=('b393637518725d55477880530fb1ee8c0afcb656f39f9e07e3222c89fce1ea6af2265153358c47107b24ddac40bd30699f89a6255da94c3d7f3e84b198a91b89')
+
+prepare() {
+  cd astroid-astroid-$pkgver
+  sed -i -e 's/six~=[0-9.*]*/six/' -e 's/wrapt==[0-9.*]*/wrapt/' astroid/__pkginfo__.py
+}
+
+build() {
+  cd astroid-astroid-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd astroid-astroid-$pkgver
+  pytest
+}
+
+package() {
+  cd astroid-astroid-$pkgver
+  python setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir"
+}


More information about the arch-commits mailing list