[arch-commits] Commit in python-openapi-spec-validator/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat May 25 05:30:49 UTC 2019


    Date: Saturday, May 25, 2019 @ 05:30:49
  Author: felixonmars
Revision: 469722

upgpkg: python-openapi-spec-validator 0.2.7-2

remove python2 sibling

Modified:
  python-openapi-spec-validator/trunk/PKGBUILD

----------+
 PKGBUILD |   43 +++++++++++--------------------------------
 1 file changed, 11 insertions(+), 32 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-25 05:27:27 UTC (rev 469721)
+++ PKGBUILD	2019-05-25 05:30:49 UTC (rev 469722)
@@ -1,51 +1,30 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-openapi-spec-validator
-pkgname=(python-openapi-spec-validator python2-openapi-spec-validator)
+pkgname=python-openapi-spec-validator
 pkgver=0.2.7
-pkgrel=1
+pkgrel=2
 pkgdesc="A Python library that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification"
 url="https://github.com/p1c2u/openapi-spec-validator"
 license=('Apache')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-yaml'
-             'python2-yaml' 'python-jsonschema' 'python2-jsonschema' 'python2-pathlib')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/p1c2u/openapi-spec-validator/archive/$pkgver.tar.gz")
+depends=('python-six' 'python-yaml' 'python-jsonschema')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-mock' 'python-pytest-flake8' 'python-pytest-cov'
+              'python-tox')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/p1c2u/openapi-spec-validator/archive/$pkgver.tar.gz")
 sha512sums=('61e09b1fcb8526d0ccbb1b3e990dd3508924cc6eeda2c68be6d3ea6b692813015a34ae83c1800eed74a3415463c21a3118ec913092906e4c1c4abeb256313843')
 
-prepare() {
-  cp -a openapi-spec-validator-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/openapi-spec-validator-$pkgver
+  cd openapi-spec-validator-$pkgver
   python setup.py build
-
-  cd "$srcdir"/openapi-spec-validator-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/openapi-spec-validator-$pkgver
-  PYTHONPATH="$PWD/build/lib" pytest
-
-  cd "$srcdir"/openapi-spec-validator-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib" pytest2
+  cd openapi-spec-validator-$pkgver
+  python setup.py pytest
 }
 
-package_python-openapi-spec-validator() {
-  depends=('python-six' 'python-yaml' 'python-jsonschema')
-
+package() {
   cd openapi-spec-validator-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-openapi-spec-validator() {
-  depends=('python2-six' 'python2-yaml' 'python2-jsonschema' 'python2-pathlib')
-
-  cd openapi-spec-validator-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  mv "$pkgdir"/usr/bin/openapi-spec-validator{,2}
-}



More information about the arch-commits mailing list