mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-redmine: build with gpep517
This commit is contained in:
parent
473c8c7e54
commit
ac218ec0ec
@ -3,13 +3,13 @@
|
|||||||
pkgname=py3-redmine
|
pkgname=py3-redmine
|
||||||
_pkgname=python-redmine
|
_pkgname=python-redmine
|
||||||
pkgver=2.4.0
|
pkgver=2.4.0
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="A simple library for communicating with redmine"
|
pkgdesc="A simple library for communicating with redmine"
|
||||||
url="https://github.com/maxtepkeev/python-redmine"
|
url="https://github.com/maxtepkeev/python-redmine"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
depends="python3 py3-requests"
|
depends="python3 py3-requests"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="py3-pytest py3-pytest-cov"
|
checkdepends="py3-pytest py3-pytest-cov"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
||||||
@ -21,15 +21,20 @@ replaces="py-redmine" # Backwards compatibility
|
|||||||
provides="py-redmine=$pkgver-r$pkgrel" # Backwards compatibility
|
provides="py-redmine=$pkgver-r$pkgrel" # Backwards compatibility
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
pytest
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user