Date: Friday, February 10, 2023 @ 09:20:32
  Author: yan12125
Revision: 1399545

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

* Add a link to release notes
* Switch from commit to tag SHA for easier updating
* Add pkgver() to avoid forgotten SHA updates
* Move python-rfc3339-validator to depends. It's now required [1]

[1] https://github.com/p1c2u/openapi-schema-validator/pull/62

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

----------+
 PKGBUILD |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-10 09:05:01 UTC (rev 1399544)
+++ PKGBUILD    2023-02-10 09:20:32 UTC (rev 1399545)
@@ -2,20 +2,26 @@
 # Contributor: Felix Yan <[email protected]>
 
 pkgname=python-openapi-schema-validator
-pkgver=0.4.2
-_commit=f9165ecf70e8d00584a723ade7e0aedec48dd70f
+# https://github.com/p1c2u/openapi-schema-validator/releases
+pkgver=0.4.3
+# curl 
https://api.github.com/repos/p1c2u/openapi-schema-validator/git/ref/tags/$pkgver
 | jq -r .object.sha
+_tag=03715982780dae67884228001ed056e88faa6ce2
 pkgrel=1
 pkgdesc="OpenAPI schema validation for Python"
 url="https://github.com/p1c2u/openapi-schema-validator";
 license=('BSD')
 arch=('any')
-depends=('python-jsonschema')
+depends=('python-jsonschema' 'python-rfc3339-validator')
 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";)
+checkdepends=('python-pytest')
+source=("git+https://github.com/p1c2u/openapi-schema-validator.git#tag=$_tag";)
 sha512sums=('SKIP')
 
+pkgver() {
+  cd openapi-schema-validator
+  git describe --tags
+}
+
 prepare() {
   cd openapi-schema-validator
   sed -i '/--cov/d' pyproject.toml

Reply via email to