Date: Saturday, April 8, 2023 @ 02:53:32
Author: felixonmars
Revision: 1441528
archrelease: copy trunk to community-staging-any
Added:
python-openstacksdk/repos/community-staging-any/
python-openstacksdk/repos/community-staging-any/PKGBUILD
(from rev 1441527, python-openstacksdk/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-openstacksdk/repos/community-staging-any/PKGBUILD (from rev
1441527, python-openstacksdk/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 02:53:32 UTC (rev 1441528)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-openstacksdk
+pkgver=1.0.1
+_commit=3876f3f6d9d45f22de7429e14744e66439d90fdf
+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-cryptography')
+makedepends=('git' 'python-setuptools')
+checkdepends=('python-stestr' 'python-ddt' 'python-requests-mock'
'python-oslotest'
+ 'python-jsonschema' 'python-oslo-config'
'python-prometheus_client' 'python-hacking')
+source=("git+https://github.com/openstack/openstacksdk.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd openstacksdk
+ 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
+ # TODO
+ stestr run || echo "Tests failed"
+}
+
+package() {
+ cd openstacksdk
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et: