[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Aug 19 12:35:07 UTC 2021


    Date: Thursday, August 19, 2021 @ 12:35:07
  Author: felixonmars
Revision: 1003814

extra2community: Moving python-astroid from extra to community

Added:
  python-astroid/
  python-astroid/repos/
  python-astroid/trunk/
  python-astroid/trunk/PKGBUILD

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

Added: python-astroid/trunk/PKGBUILD
===================================================================
--- python-astroid/trunk/PKGBUILD	                        (rev 0)
+++ python-astroid/trunk/PKGBUILD	2021-08-19 12:35:07 UTC (rev 1003814)
@@ -0,0 +1,39 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-astroid
+pkgver=2.6.2
+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-scm')
+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/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('776f8f9a12d425b7f048318b632dedb8894b6a3051a0607d1079437084aab4e9593e39cf9c7e01c2dd722364d2396cf13d7d26cc2acf33482d75584c458d4b89')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cd 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-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd astroid-$pkgver
+  pytest
+}
+
+package() {
+  cd astroid-$pkgver
+  python setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir"
+}



More information about the arch-commits mailing list