GCP-Guest-Environment: move to python3
supports both python 2 and 3, but was using 2 still
This commit is contained in:
parent
ee2841052e
commit
035c532dc7
|
@ -1,12 +1,13 @@
|
|||
# Template file for 'GCP-Guest-Environment'
|
||||
pkgname=GCP-Guest-Environment
|
||||
version=20191210
|
||||
revision=2
|
||||
revision=3
|
||||
wrksrc="compute-image-packages-${version}"
|
||||
build_wrksrc="packages/python-google-compute-engine"
|
||||
build_style=python2-module
|
||||
hostmakedepends="python-setuptools"
|
||||
depends="${hostmakedepends} python-boto socklog-void"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools python3-distro"
|
||||
depends="${hostmakedepends} socklog-void"
|
||||
checkdepends="${depends} python3-pytest python3-pytest-cov"
|
||||
short_desc="Packages for Google Compute Engine Linux images"
|
||||
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
||||
license="Apache-2.0"
|
||||
|
@ -14,6 +15,10 @@ homepage="https://github.com/GoogleCloudPlatform/compute-image-packages"
|
|||
distfiles="https://github.com/GoogleCloudPlatform/compute-image-packages/archive/v${version}.tar.gz"
|
||||
checksum=19a2ca537f876e4a19341646f2865c6429b8ea041a3a6651ff8c1ed966f72fe1
|
||||
|
||||
do_check() {
|
||||
PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest -k 'not CallDhclientIpv6'
|
||||
}
|
||||
|
||||
post_install() {
|
||||
for _i in Guest-Initialization accounts clock-skew ip-forwarding ; do
|
||||
vsv GCP-$_i;
|
||||
|
|
Loading…
Reference in New Issue