mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
testing/py3-drf-yasg: build with gpep517
This commit is contained in:
parent
e44c40eb9f
commit
ab66b4d438
1 changed files with 10 additions and 7 deletions
|
@ -2,33 +2,36 @@
|
|||
# Maintainer:
|
||||
pkgname=py3-drf-yasg
|
||||
pkgver=1.21.7
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code"
|
||||
options="!check" # Missing dependencies
|
||||
url="https://pypi.org/project/drf-yasg/"
|
||||
arch="noarch"
|
||||
license="BSD-3-Clause"
|
||||
depends="py3-django py3-coreschema py3-ruamel.yaml py3-inflection
|
||||
py3-uritemplate"
|
||||
makedepends="py3-setuptools py3-setuptools_scm py3-pbr"
|
||||
makedepends="py3-setuptools py3-setuptools_scm py3-pbr py3-gpep517"
|
||||
# Requires unpackaged datadiff pytest-pythonpath pytest-django
|
||||
checkdepends="py3-pytest py3-pytest-cov py3-pytest-xdist"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/axnsan12/drf-yasg/archive/$pkgver.tar.gz"
|
||||
builddir="$srcdir"/drf-yasg-$pkgver
|
||||
options="!check" # Missing dependencies
|
||||
|
||||
replaces="py-drf-yasg" # Backwards compatibility
|
||||
provides="py-drf-yasg=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
git init # Workaround
|
||||
python3 setup.py build
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
|
||||
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py --quiet install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
4db6daea8e5c0b3179c1a0146f65ad16feb82d5bbd4220108f1cf6256d160a65e0a4a6831d88aba6991fa4558bea62c7f1cd911cf51ca1f91a940e4fe5202727 py3-drf-yasg-1.21.7.tar.gz
|
||||
"
|
||||
|
|
Loading…
Reference in a new issue