Date: Tuesday, January 31, 2023 @ 23:56:03
  Author: felixonmars
Revision: 1391592

upgpkg: python-openapi-schema-validator 0.4.2-1

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

----------+
 PKGBUILD |   26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 22:22:00 UTC (rev 1391591)
+++ PKGBUILD    2023-01-31 23:56:03 UTC (rev 1391592)
@@ -2,7 +2,8 @@
 # Contributor: Felix Yan <[email protected]>
 
 pkgname=python-openapi-schema-validator
-pkgver=0.4.1
+pkgver=0.4.2
+_commit=f9165ecf70e8d00584a723ade7e0aedec48dd70f
 pkgrel=1
 pkgdesc="OpenAPI schema validation for Python"
 url="https://github.com/p1c2u/openapi-schema-validator";
@@ -9,34 +10,29 @@
 license=('BSD')
 arch=('any')
 depends=('python-jsonschema')
-makedepends=('python-build' 'python-installer' 'python-poetry-core')
-checkdepends=('python-pytest' 'python-isodate' 'python-rfc3339-validator' 
'python-strict-rfc3339')
-optdepends=(
-  'python-isodate: validate datetime with isodate'
-  'python-rfc3339-validator: validate datetime with rfc3339_validator'
-  'python-strict-rfc3339: validate datetime with strict_rfc3339'
-)
-source=("https://github.com/p1c2u/openapi-schema-validator/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('e437309a6e741eaefa6b49bb038bd5976288bd6559fc6957d7029d9c0fed36ee368ac5fb26133a0fe54366da77ec649b5e44eb6a7926d9d5c49573afdfa3309b')
+makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
+checkdepends=('python-pytest' 'python-rfc3339-validator')
+optdepends=('python-rfc3339-validator: validate datetime with 
rfc3339_validator')
+source=("git+https://github.com/p1c2u/openapi-schema-validator.git#commit=$_commit";)
+sha512sums=('SKIP')
 
 prepare() {
-  cd openapi-schema-validator-$pkgver
+  cd openapi-schema-validator
   sed -i '/--cov/d' pyproject.toml
 }
 
 build() {
-  cd openapi-schema-validator-$pkgver
+  cd openapi-schema-validator
   python -m build --wheel --no-isolation
 }
 
 check() {
-  cd openapi-schema-validator-$pkgver
+  cd openapi-schema-validator
   python -m pytest
 }
 
 package() {
-  cd openapi-schema-validator-$pkgver
+  cd openapi-schema-validator
   python -m installer --destdir="$pkgdir" dist/*.whl
-
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to