[arch-commits] Commit in python-redbaron/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Fri Dec 3 00:36:32 UTC 2021
Date: Friday, December 3, 2021 @ 00:36:32
Author: foutrelis
Revision: 1063897
archrelease: copy trunk to community-staging-any
Added:
python-redbaron/repos/community-staging-any/
python-redbaron/repos/community-staging-any/PKGBUILD
(from rev 1063896, python-redbaron/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-redbaron/repos/community-staging-any/PKGBUILD (from rev 1063896, python-redbaron/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-03 00:36:32 UTC (rev 1063897)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-redbaron
+pkgver=0.9.2
+pkgrel=6
+pkgdesc="Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task"
+url="https://github.com/PyCQA/redbaron"
+license=('LGPL')
+arch=('any')
+depends=('python-baron')
+makedepends=('python-setuptools' 'python-pypandoc')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/redbaron/archive/$pkgver.tar.gz"
+ https://github.com/PyCQA/redbaron/commit/812081b7bd8774ceb61016ac37da43107c26eea2.patch)
+sha512sums=('acebde8fcf5fea419960c2647e8251deb6ea9426e886d642d58ee29924f668a8359867cec934aa10a0eeedf511b454a5f9e603458355869989e3b168165d6f6a'
+ 'ba829d260ae1994ef12faaa3dd10531046ca754627de44a79f0b5ae9a27eed7a8b304ee5cac709586969b8ad2129b6a68b59631f88a4c616a65ca91937d6b45f')
+
+prepare() {
+ patch -d redbaron-$pkgver -p1 -i ../812081b7bd8774ceb61016ac37da43107c26eea2.patch
+}
+
+build() {
+ cd redbaron-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd redbaron-$pkgver
+ pytest tests
+}
+
+package() {
+ cd redbaron-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list