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

Antonio Rojas arojas at gemini.archlinux.org
Sun Jul 31 10:17:47 UTC 2022


    Date: Sunday, July 31, 2022 @ 10:17:47
  Author: arojas
Revision: 1259260

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-31 10:17:38 UTC (rev 1259259)
+++ PKGBUILD	2022-07-31 10:17:47 UTC (rev 1259260)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-openapi-spec-validator
-pkgver=0.3.1
-pkgrel=4
-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-jsonschema' 'python-openapi-schema-validator' 'python-six' 'python-yaml')
-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=('c7004f82971c668498881070d7a8b77e0de1596b5487ad3e44a5b8d54e931512352739089efb5d496782635c6c314d86e33d801d6decd9918b167e45f8211ff6')
-
-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
-}

Copied: python-openapi-spec-validator/repos/community-any/PKGBUILD (from rev 1259259, python-openapi-spec-validator/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-31 10:17:47 UTC (rev 1259260)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-openapi-spec-validator
+pkgver=0.4.0
+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')
+depends=('python-jsonschema' 'python-openapi-schema-validator' 'python-six' 'python-yaml')
+makedepends=('python-build' 'python-installer' 'python-poetry')
+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=('d2eaf22c75e72eb5061a916eb37b13179a5ba65eb8a00ec42e81c6b4168239bc8613388f2d77ce35113d260385b175280d8863a3deedf18ea5aa93a79f058419')
+
+build() {
+  cd openapi-spec-validator-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd openapi-spec-validator-$pkgver
+  PYTHONPATH="$PWD" pytest
+}
+
+package() {
+  cd openapi-spec-validator-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}



More information about the arch-commits mailing list