mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
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 changed files with 9 additions and 4 deletions
|
@ -1,12 +1,13 @@
|
||||||
# Template file for 'GCP-Guest-Environment'
|
# Template file for 'GCP-Guest-Environment'
|
||||||
pkgname=GCP-Guest-Environment
|
pkgname=GCP-Guest-Environment
|
||||||
version=20191210
|
version=20191210
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="compute-image-packages-${version}"
|
wrksrc="compute-image-packages-${version}"
|
||||||
build_wrksrc="packages/python-google-compute-engine"
|
build_wrksrc="packages/python-google-compute-engine"
|
||||||
build_style=python2-module
|
build_style=python3-module
|
||||||
hostmakedepends="python-setuptools"
|
hostmakedepends="python3-setuptools python3-distro"
|
||||||
depends="${hostmakedepends} python-boto socklog-void"
|
depends="${hostmakedepends} socklog-void"
|
||||||
|
checkdepends="${depends} python3-pytest python3-pytest-cov"
|
||||||
short_desc="Packages for Google Compute Engine Linux images"
|
short_desc="Packages for Google Compute Engine Linux images"
|
||||||
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
||||||
license="Apache-2.0"
|
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"
|
distfiles="https://github.com/GoogleCloudPlatform/compute-image-packages/archive/v${version}.tar.gz"
|
||||||
checksum=19a2ca537f876e4a19341646f2865c6429b8ea041a3a6651ff8c1ed966f72fe1
|
checksum=19a2ca537f876e4a19341646f2865c6429b8ea041a3a6651ff8c1ed966f72fe1
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest -k 'not CallDhclientIpv6'
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
for _i in Guest-Initialization accounts clock-skew ip-forwarding ; do
|
for _i in Guest-Initialization accounts clock-skew ip-forwarding ; do
|
||||||
vsv GCP-$_i;
|
vsv GCP-$_i;
|
||||||
|
|
Loading…
Add table
Reference in a new issue