[arch-commits] Commit in python-astroid/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon May 31 21:41:20 UTC 2021


    Date: Monday, May 31, 2021 @ 21:41:20
  Author: felixonmars
Revision: 416912

upgpkg: python-astroid 2.5.7-1

Modified:
  python-astroid/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-31 20:04:55 UTC (rev 416911)
+++ PKGBUILD	2021-05-31 21:41:20 UTC (rev 416912)
@@ -2,7 +2,7 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-astroid
-pkgver=2.5.6
+pkgver=2.5.7
 pkgrel=1
 pkgdesc="Useful miscellaneous modules used by Logilab projects"
 arch=('any')
@@ -9,29 +9,31 @@
 url="https://github.com/PyCQA/astroid"
 license=('LGPL')
 depends=('python-six' 'python-lazy-object-proxy' 'python-wrapt')
-makedepends=('python-setuptools')
+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/astroid-$pkgver.tar.gz)
-sha512sums=('3d10d0f92c4b4c2d7d5e0035f23ae554b512f34ddd55b4c1c4032b328643dfe60cb4aa675a3824423fcd12baea7961847435f1894a47fafa99802f3e17a5605f')
+source=(https://github.com/PyCQA/astroid/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('17fc185752510396fda9cce842df8ba72473e469b61c037195a9d6ff72af3ec8d3df01bdcf61d6059d4f90c95278928eba3e3380048bf5c6b4fa2a3c9b267176')
 
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
 prepare() {
-  cd astroid-astroid-$pkgver
+  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-astroid-$pkgver
+  cd astroid-$pkgver
   python setup.py build
 }
 
 check() {
-  cd astroid-astroid-$pkgver
+  cd astroid-$pkgver
   pytest
 }
 
 package() {
-  cd astroid-astroid-$pkgver
+  cd astroid-$pkgver
   python setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir"
 }



More information about the arch-commits mailing list