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

Felix Yan felixonmars at archlinux.org
Thu Sep 19 06:21:45 UTC 2019


    Date: Thursday, September 19, 2019 @ 06:21:45
  Author: felixonmars
Revision: 511140

upgpkg: python-apispec 3.0.0-1

Modified:
  python-apispec/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++++-----------------------------
 1 file changed, 11 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-19 05:38:40 UTC (rev 511139)
+++ PKGBUILD	2019-09-19 06:21:45 UTC (rev 511140)
@@ -1,30 +1,26 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-apispec
-pkgname=(python-apispec python2-apispec)
-pkgver=2.0.2
+pkgname=python-apispec
+pkgver=3.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')
+depends=('python')
+optdepends=('python-yaml: for yaml support'
+            'python-prance: for validation'
+            'python-openapi-spec-validator: for validation')
+makedepends=('python-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=('c2b13ea631109fba224544932a2dd6bbc0552903686d176e693149095c8326e113569c7cfdab661a3a36f7eaf72b9f453714774ffb02a55155bccedfbef23a66')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/marshmallow-code/apispec/archive/$pkgver.tar.gz")
+sha512sums=('7bcdcc2f1d8d0692228a5f1731ef6e23608a7e96a4a30fe294977ec3f304294f04c1649d9e8a93bbba2ad1c2a85c42c8cf2db4773478525eb1127c8c87be4af8')
 
-prepare() {
-  cp -a apispec-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/apispec-$pkgver
+  cd apispec-$pkgver
   python setup.py build
-
-  cd "$srcdir"/apispec-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -32,22 +28,8 @@
   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')
-
+package() {
   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
-}


More information about the arch-commits mailing list