[arch-commits] Commit in python-openapi-schema-validator/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Sun Jul 31 10:32:32 UTC 2022
Date: Sunday, July 31, 2022 @ 10:32:32
Author: arojas
Revision: 1259271
upgpkg: python-openapi-schema-validator 0.3.0-1: Update to 0.3.0
Modified:
python-openapi-schema-validator/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-07-31 10:30:33 UTC (rev 1259270)
+++ PKGBUILD 2022-07-31 10:32:32 UTC (rev 1259271)
@@ -1,27 +1,22 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=python-openapi-schema-validator
-pkgver=0.1.5
-pkgrel=3
+pkgver=0.3.0
+pkgrel=1
pkgdesc="OpenAPI schema validation for Python"
url="https://github.com/p1c2u/openapi-schema-validator"
license=('BSD')
arch=('any')
depends=('python-isodate' 'python-jsonschema' 'python-six')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-poetry')
checkdepends=('python-pytest-cov' 'python-pytest-flake8' 'python-rfc3339-validator'
'python-strict-rfc3339')
source=("https://github.com/p1c2u/openapi-schema-validator/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('b564c83d3a5c6ce01a39b2e3920fa2b9f8263ca8dc21954c5f96f6648b3a191ba66488bafba2ef4e18ba5a717293465a86a3d76ea831de7b4755b375fe4f1ddf')
+sha512sums=('003ea97a1cac598eb3728d96291d8be56c6ba9e2d3cd4f77c1258962f67b460a887f4473fed39587870583e13a83403623c3b2f96fa8d02345583cd3bdaf008b')
-prepare() {
- cd openapi-schema-validator-$pkgver
- sed -i 's/import mock/from unittest import mock/' tests/integration/test_validators.py
-}
-
build() {
cd openapi-schema-validator-$pkgver
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
@@ -31,7 +26,7 @@
package() {
cd openapi-schema-validator-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
More information about the arch-commits
mailing list