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