[arch-commits] Commit in python-astroid/repos (2 files)

Caleb Maclennan alerque at gemini.archlinux.org
Fri Aug 20 13:16:22 UTC 2021


    Date: Friday, August 20, 2021 @ 13:16:22
  Author: alerque
Revision: 1003983

archrelease: copy trunk to community-testing-any

Added:
  python-astroid/repos/community-testing-any/
  python-astroid/repos/community-testing-any/PKGBUILD
    (from rev 1003982, python-astroid/trunk/PKGBUILD)

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

Copied: python-astroid/repos/community-testing-any/PKGBUILD (from rev 1003982, python-astroid/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-08-20 13:16:22 UTC (rev 1003983)
@@ -0,0 +1,39 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+
+_pyname=astroid
+pkgname=python-$_pyname
+pkgver=2.7.1
+pkgrel=1
+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')
+
+build() {
+	cd "$_archive"
+	python setup.py build
+}
+
+check() {
+	cd "$_archive"
+	pytest
+}
+
+package() {
+	cd "$_archive"
+	export PYTHONHASHSEED=0
+	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list