[arch-commits] Commit in python-apispec/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Monday, September 17, 2018 @ 12:35:36
  Author: felixonmars
Revision: 382379

archrelease: copy trunk to community-any

Added:
  python-apispec/repos/community-any/PKGBUILD
    (from rev 382378, python-apispec/trunk/PKGBUILD)
Deleted:
  python-apispec/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  114 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 60 insertions(+), 54 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-17 12:35:03 UTC (rev 382378)
+++ PKGBUILD	2018-09-17 12:35:36 UTC (rev 382379)
@@ -1,54 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-apispec
-pkgname=(python-apispec python2-apispec)
-pkgver=0.37.1
-pkgrel=2
-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')
-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')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/marshmallow-code/apispec/archive/$pkgver.tar.gz")
-sha512sums=('cbf6de044d8d70b9ea0171d3067e690c5c6cb15f0bc3bee8a1729e6bfc420f3bcd978c7d3ab42e68658ca7bf90df7357bb2a0c03e299abd696afd4bb48927af2')
-
-prepare() {
-  sed -i 's/<2/<3/' apispec-$pkgver/setup.py
-  cp -a apispec-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/apispec-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/apispec-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/apispec-$pkgver
-  python setup.py pytest
-
-  cd "$srcdir"/apispec-$pkgver-py2
-  python2 setup.py pytest
-}
-
-package_python-apispec() {
-  depends=('python-yaml')
-
-  cd apispec-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-apispec() {
-  depends=('python2-yaml')
-
-  cd apispec-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-apispec/repos/community-any/PKGBUILD (from rev 382378, python-apispec/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-09-17 12:35:36 UTC (rev 382379)
@@ -0,0 +1,60 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-apispec
+pkgname=(python-apispec python2-apispec)
+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')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-tornado' 'python2-tornado'
+              'python-bottle' 'python2-bottle' 'python-marshmallow' 'python2-marshmallow'
+              '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=('e43ed4ef6e7ac565e306427ad3bed619d72c9f894b1d7803635505496914ac6a1b784e670f98cf2ef3c119f0aad3891ded2a4f632694ead3ce0450b4402c875a')
+
+prepare() {
+  cp -a apispec-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/apispec-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/apispec-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/apispec-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/apispec-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-apispec() {
+  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
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-apispec() {
+  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
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list