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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 20:20:31 UTC 2020


    Date: Monday, November 9, 2020 @ 20:20:31
  Author: felixonmars
Revision: 748206

archrelease: copy trunk to community-staging-any

Added:
  python-hacking/repos/community-staging-any/
  python-hacking/repos/community-staging-any/PKGBUILD
    (from rev 748205, python-hacking/trunk/PKGBUILD)

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

Copied: python-hacking/repos/community-staging-any/PKGBUILD (from rev 748205, python-hacking/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 20:20:31 UTC (rev 748206)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-hacking
+pkgver=3.2.0
+pkgrel=2
+arch=('any')
+pkgdesc='OpenStack Hacking Guideline Enforcement'
+url='https://docs.openstack.org/developer/hacking'
+license=('Apache')
+depends=('flake8')
+makedepends=('python-pbr' 'python-setuptools')
+checkdepends=('python-oslotest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/hacking/archive/$pkgver.tar.gz")
+sha512sums=('199a5320aa7362cc9aea8993d3816fe94710a5618e9052850ed990b03ca407417faf8ee5076acccf2f90ef7ad1232e3925dca9146b648d2bde5bfea5cb6e3d19')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+  cd hacking-$pkgver
+  sed -i 's/<.*//' requirements.txt
+}
+
+build() {
+  cd "$srcdir"/hacking-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd hacking-$pkgver
+  stestr run
+}
+
+package_python-hacking() {
+  cd hacking-$pkgver
+  python setup.py install --root "$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list