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

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 6 15:31:47 UTC 2021


    Date: Friday, August 6, 2021 @ 15:31:47
  Author: felixonmars
Revision: 421176

upgpkg: python-pylint 2.8.2-1

Modified:
  python-pylint/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-06 12:44:49 UTC (rev 421175)
+++ PKGBUILD	2021-08-06 15:31:47 UTC (rev 421176)
@@ -4,7 +4,7 @@
 # Contributor: Alexander Fehr <pizzapunk gmail com>
 
 pkgname=python-pylint
-pkgver=2.8.1
+pkgver=2.8.2
 pkgrel=1
 pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
 arch=('any')
@@ -11,27 +11,29 @@
 url="https://pylint.org"
 license=('GPL')
 depends=('python-astroid' 'python-mccabe' 'python-isort' 'python-setuptools' 'python-toml')
-makedepends=('python-pytest-runner' 'python-pytest-benchmark' 'python-sphinx')
+makedepends=('python-pytest-runner' 'python-pytest-benchmark' 'python-setuptools-scm'
+             'python-sphinx')
 checkdepends=('mpdecimal')
 optdepends=('tk: Pylint GUI'
             'graphviz: To have other output formats than dot or vcg')
-source=("https://github.com/PyCQA/pylint/archive/pylint-$pkgver.tar.gz")
-sha512sums=('ec8710396f07cdec8a395748ffda403a1f3fbd00094a1ad32e976c52be946c08b9e32521205dc165a0284467c68d9f467be40d141907bcd148b94e285eeca606')
+source=("https://github.com/PyCQA/pylint/archive/v$pkgver/pylint-$pkgver.tar.gz")
+sha512sums=('7023603668f540ecc0b35f3289377855c4c0df01e04a9af255f5c8031f568f6b76508bb3a7f0aba8e76a86b63eae423908c30f47258d6dee46bb23320c952701')
 
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
 build() {
-  cd pylint-pylint-$pkgver
+  cd pylint-$pkgver
   python setup.py build
   make PYTHONPATH="$PWD/build/lib" -C doc man
 }
 
 check() {
-  cd pylint-pylint-$pkgver
-  # https://github.com/PyCQA/pylint/issues/3895
+  cd pylint-$pkgver
   python setup.py pytest || echo "Tests failed"
 }
 
 package() {
-  cd pylint-pylint-$pkgver
+  cd pylint-$pkgver
   python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
 
   install -d "$pkgdir"/usr/share/man/man1



More information about the arch-commits mailing list