Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 5a338c1

Browse files
yan12125svntogit
yan12125
authored and
svntogit
committed
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] python-openapi/openapi-schema-validator#62 git-svn-id: file:///srv/repos/svn-community/svn@1399545 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent dc2e30f commit 5a338c1

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Diff for: trunk/PKGBUILD

+12-6
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,26 @@
22
# Contributor: Felix Yan <[email protected]>
33

44
pkgname=python-openapi-schema-validator
5-
pkgver=0.4.2
6-
_commit=f9165ecf70e8d00584a723ade7e0aedec48dd70f
5+
# https://github.com/p1c2u/openapi-schema-validator/releases
6+
pkgver=0.4.3
7+
# curl https://api.github.com/repos/p1c2u/openapi-schema-validator/git/ref/tags/$pkgver | jq -r .object.sha
8+
_tag=03715982780dae67884228001ed056e88faa6ce2
79
pkgrel=1
810
pkgdesc="OpenAPI schema validation for Python"
911
url="https://github.com/p1c2u/openapi-schema-validator"
1012
license=('BSD')
1113
arch=('any')
12-
depends=('python-jsonschema')
14+
depends=('python-jsonschema' 'python-rfc3339-validator')
1315
makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
14-
checkdepends=('python-pytest' 'python-rfc3339-validator')
15-
optdepends=('python-rfc3339-validator: validate datetime with rfc3339_validator')
16-
source=("git+https://github.com/p1c2u/openapi-schema-validator.git#commit=$_commit")
16+
checkdepends=('python-pytest')
17+
source=("git+https://github.com/p1c2u/openapi-schema-validator.git#tag=$_tag")
1718
sha512sums=('SKIP')
1819

20+
pkgver() {
21+
cd openapi-schema-validator
22+
git describe --tags
23+
}
24+
1925
prepare() {
2026
cd openapi-schema-validator
2127
sed -i '/--cov/d' pyproject.toml

0 commit comments

Comments
 (0)