Date: Thursday, March 15, 2018 @ 10:34:05
  Author: felixonmars
Revision: 308421

addpkg: python-os-service-types 1.2.0-1

Added:
  python-os-service-types/
  python-os-service-types/repos/
  python-os-service-types/trunk/
  python-os-service-types/trunk/PKGBUILD

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

Added: python-os-service-types/trunk/PKGBUILD
===================================================================
--- python-os-service-types/trunk/PKGBUILD                              (rev 0)
+++ python-os-service-types/trunk/PKGBUILD      2018-03-15 10:34:05 UTC (rev 
308421)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-os-service-types
+pkgname=(python-os-service-types python2-os-service-types)
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="Python library for consuming OpenStack sevice-types-authority data"
+arch=('any')
+url="https://pypi.python.org/pypi/os-service-types/$pkgver";
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 
'python2-pbr')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock' 
'python2-requests-mock')
+options=('!emptydirs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/os-service-types/archive/$pkgver.tar.gz";)
+sha512sums=('f7e0aedfcf18514bb8a112a27363971361dfa4abeb05ec32f206197f07bbc55c119cf6b47058977925e77306658a83aab7619aa3a97f3581976e81ae5abef056')
+
+prepare() {
+  cp -a os-service-types-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/os-service-types-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/os-service-types-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/os-service-types-$pkgver
+  python setup.py testr
+
+  cd "$srcdir"/os-service-types-$pkgver-py2
+  PYTHON=python2 python2 setup.py testr
+}
+
+package_python-os-service-types() {
+  depends=('python-pbr')
+
+  cd "$srcdir"/os-service-types-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-os-service-types() {
+  depends=('python2-pbr')
+
+  cd "$srcdir"/os-service-types-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: python-os-service-types/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property

Reply via email to