mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/py3-pystache: upgrade to 0.6.5
This commit is contained in:
parent
f1f91bae1b
commit
39bdf856ff
@ -4,8 +4,8 @@
|
||||
# Maintainer: Paul Kilar <pkilar@gmail.com>
|
||||
pkgname=py3-pystache
|
||||
_realname=pystache
|
||||
pkgver=0.6.0
|
||||
pkgrel=3
|
||||
pkgver=0.6.5
|
||||
pkgrel=0
|
||||
pkgdesc="Pystache is a Python implementation of Mustache"
|
||||
url="https://pypi.org/project/pystache"
|
||||
arch="noarch"
|
||||
@ -13,28 +13,30 @@ license="MIT"
|
||||
replaces="py-pystache" # For backwards compatibility
|
||||
provides="py-pystache=$pkgver-r$pkgrel" # For backwards compatibility
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-installer py3-wheel py3-setuptools_scm"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_realname-$pkgver
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
# This package uses 2to3 to convert itself to Python 3 on the fly
|
||||
# So we need to jump through some hoops here
|
||||
local _py3ver=$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
|
||||
mkdir -p test_dir
|
||||
python3 setup.py install --root=test_dir
|
||||
PYTHONPATH=test_dir/usr/lib/python$_py3ver/site-packages test_dir/usr/bin/pystache-test
|
||||
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="
|
||||
802e12795c3ae08fbde37c9e266a60478d46d55a42e2fc339389b664edf3c5ebb2e34069546b820789ad48ed9921f4a2b89f82bb37e72e94846eec0a9ba1568c pystache-0.6.0.tar.gz
|
||||
56b6e5ce6bc95aa2d5d77172d75d3fa2a37cf0927259f9136d77d9a73ce26384d72b3dd158577d247e1cbbe887916d7bc7982b6d8df2d1c0411dc33c93be6e1c pystache-0.6.5.tar.gz
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user