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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 18:28:42 UTC 2020


    Date: Monday, November 9, 2020 @ 18:28:42
  Author: foutrelis
Revision: 748004

archrelease: copy trunk to community-staging-any

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

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

Copied: python-openstacksdk/repos/community-staging-any/PKGBUILD (from rev 748002, python-openstacksdk/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 18:28:42 UTC (rev 748004)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-openstacksdk
+pkgver=0.51.0
+pkgrel=2
+pkgdesc="An SDK for building applications to work with OpenStack"
+arch=('any')
+url="https://developer.openstack.org/sdks/python/openstacksdk"
+license=('Apache')
+depends=('python-six' 'python-pbr' 'python-yaml' 'python-jsonpatch' 'python-appdirs'
+         'python-keystoneauth1' 'python-os-service-types' 'python-deprecation'
+         'python-requestsexceptions' 'python-decorator' 'python-jmespath' 'python-iso8601'
+         'python-netifaces' 'python-dogpile.cache' 'python-munch' 'python-cryptography')
+makedepends=('python-setuptools')
+checkdepends=('python-stestr' 'python-ddt' 'python-mock' 'python-requests-mock' 'python-oslotest'
+              'python-jsonschema' 'python-oslo-config' 'python-prometheus_client' 'python-hacking')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/openstacksdk/archive/$pkgver.tar.gz")
+sha512sums=('5e3191df63be98b12c068cefdaa4b13c37a3576cbf8a6dd85625ca23d69ae65d69033c45a1e1456c6e7d7a045e8cde94624c82054e753d132ec69ca5be4d1b99')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+  echo -e "\nglobal-include *.json" >> openstacksdk-$pkgver/MANIFEST.in
+  sed -i 's/assertItemsEqual/assertCountEqual/' openstacksdk-$pkgver/openstack/tests/unit/*.py openstacksdk-$pkgver/openstack/tests/unit/*/*.py
+}
+
+build() {
+  cd openstacksdk-$pkgver
+  python setup.py build
+}
+
+check() {
+  # From https://github.com/openstack/openstacksdk/blob/master/tox.ini
+  export OS_LOG_CAPTURE=true OS_STDOUT_CAPTURE=true OS_STDERR_CAPTURE=true
+
+  cd openstacksdk-$pkgver
+  # TODO
+  stestr run || :
+}
+
+package() {
+  cd openstacksdk-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list