[arch-commits] Commit in python-apispec/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Sep 17 12:35:05 UTC 2018


    Date: Monday, September 17, 2018 @ 12:35:03
  Author: felixonmars
Revision: 382378

upgpkg: python-apispec 0.39.0-1

Modified:
  python-apispec/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-17 12:34:48 UTC (rev 382377)
+++ PKGBUILD	2018-09-17 12:35:03 UTC (rev 382378)
@@ -2,21 +2,22 @@
 
 pkgbase=python-apispec
 pkgname=(python-apispec python2-apispec)
-pkgver=0.37.1
-pkgrel=2
+pkgver=0.39.0
+pkgrel=1
 pkgdesc="A pluggable API specification generator. Currently supports the OpenAPI Specification."
 url="https://github.com/marshmallow-code/apispec"
 license=('MIT')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-yaml' 'python2-yaml')
+makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-tornado' 'python2-tornado'
               'python-bottle' 'python2-bottle' 'python-marshmallow' 'python2-marshmallow'
-              'python-flask' 'python2-flask' 'python-mock' 'python2-mock' 'check_api')
+              'python-flask' 'python2-flask' 'python-prance' 'python2-prance' 'python-yaml'
+              'python2-yaml' 'python-mock' 'python2-mock' 'python-openapi-spec-validator'
+              'python2-openapi-spec-validator')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/marshmallow-code/apispec/archive/$pkgver.tar.gz")
-sha512sums=('cbf6de044d8d70b9ea0171d3067e690c5c6cb15f0bc3bee8a1729e6bfc420f3bcd978c7d3ab42e68658ca7bf90df7357bb2a0c03e299abd696afd4bb48927af2')
+sha512sums=('e43ed4ef6e7ac565e306427ad3bed619d72c9f894b1d7803635505496914ac6a1b784e670f98cf2ef3c119f0aad3891ded2a4f632694ead3ce0450b4402c875a')
 
 prepare() {
-  sed -i 's/<2/<3/' apispec-$pkgver/setup.py
   cp -a apispec-$pkgver{,-py2}
 }
 
@@ -37,7 +38,10 @@
 }
 
 package_python-apispec() {
-  depends=('python-yaml')
+  depends=('python')
+  optdepends=('python-yaml: for yaml support'
+              'python-prance: for validation'
+              'python-openapi-spec-validator: for validation')
 
   cd apispec-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
@@ -45,7 +49,10 @@
 }
 
 package_python2-apispec() {
-  depends=('python2-yaml')
+  depends=('python2')
+  optdepends=('python2-yaml: for yaml support'
+              'python2-prance: for validation'
+              'python2-openapi-spec-validator: for validation')
 
   cd apispec-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1



More information about the arch-commits mailing list