Date: Saturday, May 25, 2019 @ 04:26:31 Author: felixonmars Revision: 469701
archrelease: copy trunk to community-any Added: python-apispec/repos/community-any/PKGBUILD (from rev 469700, python-apispec/trunk/PKGBUILD) Deleted: python-apispec/repos/community-any/PKGBUILD ----------+ PKGBUILD | 113 ++++++++++++++++++++++++++++--------------------------------- 1 file changed, 53 insertions(+), 60 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-05-25 04:26:19 UTC (rev 469700) +++ PKGBUILD 2019-05-25 04:26:31 UTC (rev 469701) @@ -1,60 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-apispec -pkgname=(python-apispec python2-apispec) -pkgver=1.2.1 -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=('dae5658b046afa2437f46f948ad44c5d9199fe481e9e6ab34bceb430186dcef4ce4c665e11c3235c4a698339ebdb6327d38c2a2259a30fd8de6f5d9553a653aa') - -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 469700, python-apispec/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-05-25 04:26:31 UTC (rev 469701) @@ -0,0 +1,53 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-apispec +pkgname=(python-apispec python2-apispec) +pkgver=1.3.3 +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' 'python-tornado' 'python-bottle' 'python-marshmallow' + 'python-flask' 'python-prance' 'python-yaml' 'python-mock' + 'python-openapi-spec-validator') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/marshmallow-code/apispec/archive/$pkgver.tar.gz") +sha512sums=('27b7b69ddc501ac81cabce06e9ba780273d4d2762b5ae492eae3d46261a06473c752305df383d2e2eaa9c3ff8e1b010b56966e9a3bf928a550e352647aa28787') + +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 apispec-$pkgver + python 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') + + cd apispec-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}