[arch-commits] Commit in python-openapi-spec-validator/repos/community-any (2 files)

Felix Yan felixonmars at archlinux.org
Sat May 25 05:31:02 UTC 2019


    Date: Saturday, May 25, 2019 @ 05:31:02
  Author: felixonmars
Revision: 469723

archrelease: copy trunk to community-any

Added:
  python-openapi-spec-validator/repos/community-any/PKGBUILD
    (from rev 469722, python-openapi-spec-validator/trunk/PKGBUILD)
Deleted:
  python-openapi-spec-validator/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   81 ++++++++++++++++++++++---------------------------------------
 1 file changed, 30 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-25 05:30:49 UTC (rev 469722)
+++ PKGBUILD	2019-05-25 05:31:02 UTC (rev 469723)
@@ -1,51 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-openapi-spec-validator
-pkgname=(python-openapi-spec-validator python2-openapi-spec-validator)
-pkgver=0.2.7
-pkgrel=1
-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")
-sha512sums=('61e09b1fcb8526d0ccbb1b3e990dd3508924cc6eeda2c68be6d3ea6b692813015a34ae83c1800eed74a3415463c21a3118ec913092906e4c1c4abeb256313843')
-
-prepare() {
-  cp -a openapi-spec-validator-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/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
-}
-
-package_python-openapi-spec-validator() {
-  depends=('python-six' 'python-yaml' 'python-jsonschema')
-
-  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}
-}

Copied: python-openapi-spec-validator/repos/community-any/PKGBUILD (from rev 469722, python-openapi-spec-validator/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-05-25 05:31:02 UTC (rev 469723)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-openapi-spec-validator
+pkgver=0.2.7
+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')
+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')
+
+build() {
+  cd openapi-spec-validator-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd openapi-spec-validator-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd openapi-spec-validator-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list