Date: Friday, August 20, 2021 @ 13:15:21
  Author: alerque
Revision: 1003982

upgpkg: python-astroid 2.7.1-1

Modified:
  python-astroid/trunk/PKGBUILD

----------+
 PKGBUILD |   56 ++++++++++++++++++++++++++++----------------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-08-20 12:48:58 UTC (rev 1003981)
+++ PKGBUILD    2021-08-20 13:15:21 UTC (rev 1003982)
@@ -1,39 +1,39 @@
-# Maintainer: Angel Velasquez <an...@archlinux.org>
-# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Maintainer: Caleb Maclennan <ca...@alerque.com>
+# Contributor: Angel Velasquez <an...@archlinux.org>
+# Contributor: Felix Yan <felixonm...@archlinux.org>
 
-pkgname=python-astroid
-pkgver=2.6.2
+_pyname=astroid
+pkgname=python-$_pyname
+pkgver=2.7.1
 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')
+pkgdesc='A common base representation of python source code'
+arch=(any)
+url="https://github.com/PyCQA/$_pyname";
+license=(LGPL)
+_pydeps=(lazy-object-proxy
+         wrapt)
+depends=(python
+         "${_pydeps[@]/#/python-}")
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+replaces=(python-logilab-astng)
+conflicts=(python-logilab-astng)
+_archive="$_pyname-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('ca57b56be54a803e43e2bd18e3886fbdfbe3fd60ef42ccb166ea516643dd92dc')
 
-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
+       cd "$_archive"
+       python setup.py build
 }
 
 check() {
-  cd astroid-$pkgver
-  pytest
+       cd "$_archive"
+       pytest
 }
 
 package() {
-  cd astroid-$pkgver
-  python setup.py install --optimize=1 --skip-build --prefix=/usr 
--root="$pkgdir"
+       cd "$_archive"
+       export PYTHONHASHSEED=0
+       python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }

Reply via email to