Date: Wednesday, March 20, 2019 @ 12:23:45 Author: felixonmars Revision: 442947
archrelease: copy trunk to community-any Added: python-apispec/repos/community-any/PKGBUILD (from rev 442946, python-apispec/trunk/PKGBUILD) Deleted: python-apispec/repos/community-any/PKGBUILD ----------+ PKGBUILD | 120 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 60 insertions(+), 60 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-03-20 12:23:25 UTC (rev 442946) +++ PKGBUILD 2019-03-20 12:23:45 UTC (rev 442947) @@ -1,60 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-apispec -pkgname=(python-apispec python2-apispec) -pkgver=1.0.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=('fa369bb8662f232aff352572c81711a48a470ddae0f61c5d4dc4a29182b41344002b516579a894459031ed57ff35110fb896191f7555c8d821a908704e9c867d') - -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 -} Copied: python-apispec/repos/community-any/PKGBUILD (from rev 442946, python-apispec/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-03-20 12:23:45 UTC (rev 442947) @@ -0,0 +1,60 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-apispec +pkgname=(python-apispec python2-apispec) +pkgver=1.1.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=('2d4c36947864840a32b654066d9a384a692437681fc2aa72d963872f2b6ac0e41d58ec2b99e7eeb292e1942740650f6c513cc4178c7aa916977ed386b11fc885') + +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 +}