Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] GCP-Guest-Environment: move to python3
Date: Sat, 01 Oct 2022 04:04:03 +0200	[thread overview]
Message-ID: <20221001020403.zWfo5FpNavd6E8TTB7_RN82AId_EmaDv7IkJCz5MhY4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39563@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages fix/GCP-Guest-Environment
https://github.com/void-linux/void-packages/pull/39563

GCP-Guest-Environment: move to python3
supports both python 2 and 3, but was using 2 still

#### Testing the changes
- I tested the changes in this PR: **NO**
    - I *don't* use anything google-cloud-related so I can't test this



A patch file from https://github.com/void-linux/void-packages/pull/39563.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-fix/GCP-Guest-Environment-39563.patch --]
[-- Type: text/x-diff, Size: 5822 bytes --]

From 8c0bb13c9450714e9dbd7df9d5babfb5c431edff Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Fri, 30 Sep 2022 21:26:29 -0400
Subject: [PATCH 1/2] GCP-Guest-Environment: move to python3

supports both python 2 and 3, but was using 2 still
---
 srcpkgs/GCP-Guest-Environment/template | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/GCP-Guest-Environment/template b/srcpkgs/GCP-Guest-Environment/template
index c2733015eb0b..1a237402da69 100644
--- a/srcpkgs/GCP-Guest-Environment/template
+++ b/srcpkgs/GCP-Guest-Environment/template
@@ -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;

From 4080f4fd5493230d092b6a2f13b79482ec2bd77c Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Fri, 30 Sep 2022 21:34:05 -0400
Subject: [PATCH 2/2] python{,3}-boto: remove package.

with the update of GCP-Guest-Environment to python3, no longer needed.
---
 srcpkgs/python-boto/template      | 71 -------------------------------
 srcpkgs/python3-boto              |  1 -
 srcpkgs/removed-packages/template |  2 +
 3 files changed, 2 insertions(+), 72 deletions(-)
 delete mode 100644 srcpkgs/python-boto/template
 delete mode 120000 srcpkgs/python3-boto

diff --git a/srcpkgs/python-boto/template b/srcpkgs/python-boto/template
deleted file mode 100644
index 354b4d3af547..000000000000
--- a/srcpkgs/python-boto/template
+++ /dev/null
@@ -1,71 +0,0 @@
-# Template file for 'python-boto'
-pkgname=python-boto
-version=2.49.0
-revision=5
-wrksrc="boto-${version}"
-build_style=python-module
-pycompile_module="boto"
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python"
-short_desc="Python interface to Amazon Web Services (Python2)"
-maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="http://docs.pythonboto.org/"
-changelog="https://raw.githubusercontent.com/boto/boto/develop/docs/source/releasenotes/v${version}.rst"
-distfiles="https://github.com/boto/boto/archive/${version}.tar.gz"
-checksum=3dbefd4f4542f85a323d4f54601f31ed4d362fc87945245f32e4a85029513314
-alternatives="
- boto:asadmin:/usr/bin/asadmin2
- boto:bundle_image:/usr/bin/bundle_image2
- boto:cfadmin:/usr/bin/cfadmin2
- boto:cq:/usr/bin/cq2
- boto:cwutil:/usr/bin/cwutil2
- boto:dynamodb_dump:/usr/bin/dynamodb_dump2
- boto:dynamodb_load:/usr/bin/dynamodb_load2
- boto:elbadmin:/usr/bin/elbadmin2
- boto:fetch_file:/usr/bin/fetch_file2
- boto:glacier:/usr/bin/glacier2
- boto:instance_events:/usr/bin/instance_events2
- boto:kill_instance:/usr/bin/kill_instance2
- boto:launch_instance:/usr/bin/launch_instance2
- boto:list_instances:/usr/bin/list_instances2
- boto:mturk:/usr/bin/mturk2
- boto:pyami_sendmail:/usr/bin/pyami_sendmail2
- boto:s3put:/usr/bin/s3put2
- boto:sdbadmin:/usr/bin/sdbadmin2
- boto:taskadmin:/usr/bin/taskadmin2"
-
-post_install() {
-	vlicense LICENSE
-}
-
-python3-boto_package() {
-	depends="python3"
-	pycompile_module="boto"
-	short_desc="${short_desc/Python2/Python3}"
-	alternatives="
-	 boto:asadmin:/usr/bin/asadmin3
-	 boto:bundle_image:/usr/bin/bundle_image3
-	 boto:cfadmin:/usr/bin/cfadmin3
-	 boto:cq:/usr/bin/cq3
-	 boto:cwutil:/usr/bin/cwutil3
-	 boto:dynamodb_dump:/usr/bin/dynamodb_dump3
-	 boto:dynamodb_load:/usr/bin/dynamodb_load3
-	 boto:elbadmin:/usr/bin/elbadmin3
-	 boto:fetch_file:/usr/bin/fetch_file3
-	 boto:glacier:/usr/bin/glacier3
-	 boto:instance_events:/usr/bin/instance_events3
-	 boto:kill_instance:/usr/bin/kill_instance3
-	 boto:launch_instance:/usr/bin/launch_instance3
-	 boto:list_instances:/usr/bin/list_instances3
-	 boto:mturk:/usr/bin/mturk3
-	 boto:pyami_sendmail:/usr/bin/pyami_sendmail3
-	 boto:s3put:/usr/bin/s3put3
-	 boto:sdbadmin:/usr/bin/sdbadmin3
-	 boto:taskadmin:/usr/bin/taskadmin3"
-	pkg_install() {
-		vmove usr/bin/*3
-		vmove usr/lib/python3*
-		vlicense LICENSE
-	}
-}
diff --git a/srcpkgs/python3-boto b/srcpkgs/python3-boto
deleted file mode 120000
index 43ba1796b6d4..000000000000
--- a/srcpkgs/python3-boto
+++ /dev/null
@@ -1 +0,0 @@
-python-boto
\ No newline at end of file
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 9c9b0611a47e..1d18003fb0a4 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -331,6 +331,7 @@ replaces="
  python-Pygments<=2.5.2_4
  python-SecretStorage<=2.3.1_4
  python-audit<=2.8.5_2
+ python-boto<=2.49.0_5
  python-chardet<=4.0.0_3
  python-configobj<=5.0.6_9
  python-crypto<=3.9.7_3
@@ -380,6 +381,7 @@ replaces="
  python3-aiohttp-cors2<=0.7.0_3
  python3-aiohttp2<=2.3.10_4
  python3-bluez<=0.23_2
+ python3-boto<=2.49.0_5
  python3-docker-pycreds<=0.4.0_4
  python3-grako<=3.99.9_7
  python3-idna-ssl<=1.1.0_3

  parent reply	other threads:[~2022-10-01  2:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-01  1:27 [PR PATCH] " classabbyamp
2022-10-01  1:35 ` [PR PATCH] [Updated] " classabbyamp
2022-10-01  1:37 ` classabbyamp
2022-10-01  2:04 ` classabbyamp [this message]
2022-10-01  8:30 ` [PR PATCH] [Merged]: " the-maldridge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221001020403.zWfo5FpNavd6E8TTB7_RN82AId_EmaDv7IkJCz5MhY4@z \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).