[arch-commits] Commit in python-astroid/repos (staging-any staging-any/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 16:49:53 UTC 2020
Date: Monday, November 9, 2020 @ 16:49:53
Author: foutrelis
Revision: 399817
archrelease: copy trunk to staging-any
Added:
python-astroid/repos/staging-any/
python-astroid/repos/staging-any/PKGBUILD
(from rev 399816, python-astroid/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-astroid/repos/staging-any/PKGBUILD (from rev 399816, python-astroid/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2020-11-09 16:49:53 UTC (rev 399817)
@@ -0,0 +1,37 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-astroid
+pkgver=2.4.2
+pkgrel=3
+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=('5306428e55bb8fec388353844afb842638114d6163096d4eb4335ac488a88b7a09a03d143e3ea991ea07371d9d87e911578981e4d74e45f6b3819e389f227ba0')
+
+prepare() {
+ cd astroid-astroid-$pkgver
+ sed -i -e 's/six~=[0-9.*]*/six/;s/wrapt~=[0-9.*]*/wrapt/;s/lazy_object_proxy==[0-9.*]*/lazy_object_proxy/' 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