Skip to content
Snippets Groups Projects
Commit a53fc7c4 authored by Celeste's avatar Celeste Committed by Francesco Colista
Browse files

main/py3-future: switch to gpep517

parent 5230412f
No related branches found
No related tags found
1 merge request!54286main/py3-future: switch to gpep517
Pipeline #191371 skipped
......@@ -3,14 +3,14 @@
pkgname=py3-future
_pkgname=future
pkgver=0.18.3
pkgrel=3
pkgrel=4
pkgdesc="Easy, clean, reliable Python 2/3 compatibility"
url="https://python-future.org/"
arch="noarch"
license="MIT"
depends="python3"
# It can be built without it but it misses a lot of functionality
makedepends="py3-setuptools"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz
......@@ -23,15 +23,20 @@ replaces="py-future" # Backwards compatibility
provides="py-future=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="$builddir/build/lib" python3 -m pytest
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment