You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2022/12/08 21:59:03 UTC

[libcloud] branch trunk updated (121ebe507 -> bb6f5d0c6)

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


    from 121ebe507 Fix typo.
     new e2c9614be Reformat the code using isort.
     new 003d221e0 Use python 3.7+ syntax for pyupgrade.
     add 7fef596ce Bump pyupgrade from 3.1.0 to 3.3.1
     new 5462b8643 Merge remote-tracking branch 'remotes/github/dependabot/pip/pyupgrade-3.3.1' into trunk
     add 2c0ecc178 Bump paramiko from 2.11.0 to 2.12.0
     new bb6f5d0c6 Merge remote-tracking branch 'github/dependabot/pip/paramiko-2.12.0' into trunk

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 libcloud/common/google.py           |  6 +++---
 libcloud/test/common/test_google.py |  4 ++--
 requirements-lint.txt               |  4 ++--
 requirements-tests.txt              |  2 +-
 tox.ini                             | 14 +++++++-------
 5 files changed, 15 insertions(+), 15 deletions(-)


[libcloud] 04/04: Merge remote-tracking branch 'github/dependabot/pip/paramiko-2.12.0' into trunk

Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit bb6f5d0c68eb474403dd63a5792f3580a3d51d99
Merge: 5462b8643 2c0ecc178
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Dec 8 22:56:13 2022 +0100

    Merge remote-tracking branch 'github/dependabot/pip/paramiko-2.12.0' into trunk

 requirements-lint.txt  | 2 +-
 requirements-tests.txt | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)



[libcloud] 03/04: Merge remote-tracking branch 'remotes/github/dependabot/pip/pyupgrade-3.3.1' into trunk

Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 5462b864350fd2fe33db05687fc1dd076e0f3483
Merge: 003d221e0 7fef596ce
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Dec 8 22:54:02 2022 +0100

    Merge remote-tracking branch 'remotes/github/dependabot/pip/pyupgrade-3.3.1' into trunk

 requirements-lint.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


[libcloud] 01/04: Reformat the code using isort.

Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit e2c9614bed6f0d008210af8b61a671f8651f55b5
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Dec 8 22:51:25 2022 +0100

    Reformat the code using isort.
---
 libcloud/common/google.py           | 6 +++---
 libcloud/test/common/test_google.py | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libcloud/common/google.py b/libcloud/common/google.py
index 1884ada4f..aa79859db 100644
--- a/libcloud/common/google.py
+++ b/libcloud/common/google.py
@@ -75,7 +75,7 @@ import logging
 import datetime
 import urllib.parse
 from typing import Optional
-from http.server import BaseHTTPRequestHandler, HTTPServer
+from http.server import HTTPServer, BaseHTTPRequestHandler
 
 from libcloud.utils.py3 import b, httplib, urlparse, urlencode
 from libcloud.common.base import BaseDriver, JsonResponse, PollingConnection, ConnectionUserAndKey
@@ -517,8 +517,8 @@ class GoogleInstalledAppAuthConnection(GoogleBaseAuthConnection):
                 self_.send_response(200)
                 self_.send_header("Content-type", "text/html")
                 self_.end_headers()
-                self_.wfile.write("<html><head><title>Libcloud Sign-In</title></head>".encode())
-                self_.wfile.write("<body><p>You can now close this tab</p>".encode())
+                self_.wfile.write(b"<html><head><title>Libcloud Sign-In</title></head>")
+                self_.wfile.write(b"<body><p>You can now close this tab</p>")
 
         if (
             "127.0.0.1" in self.redirect_uri
diff --git a/libcloud/test/common/test_google.py b/libcloud/test/common/test_google.py
index efe3fba74..6f4d2b7d7 100644
--- a/libcloud/test/common/test_google.py
+++ b/libcloud/test/common/test_google.py
@@ -17,10 +17,10 @@ Tests for Google Connection classes.
 """
 import os
 import sys
+import urllib
 import datetime
-import threading
 import unittest
-import urllib
+import threading
 from unittest import mock
 
 import requests


[libcloud] 02/04: Use python 3.7+ syntax for pyupgrade.

Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 003d221e0aa20d3dee91ce80632c6a0d2fc42d2b
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Dec 8 22:52:13 2022 +0100

    Use python 3.7+ syntax for pyupgrade.
---
 tox.ini | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tox.ini b/tox.ini
index f9562ab7a..4c1941c15 100644
--- a/tox.ini
+++ b/tox.ini
@@ -343,13 +343,13 @@ commands =
 deps =
     -r{toxinidir}/requirements-lint.txt
 commands =
-    bash -c "find libcloud/ -name '*.py' -print0 | xargs -0 pyupgrade --py36-plus --py3-only"
-    bash -c "find contrib/ -name '*.py' -print0 | xargs -0 pyupgrade --py36-plus --py3-only"
-    bash -c "find demos/ -name '*.py' -print0 | xargs -0 pyupgrade --py36-plus --py3-only"
-    bash -c "find pylint_plugins/ -name '*.py' -print0 | xargs -0 pyupgrade --py36-plus --py3-only"
-    bash -c "find integration/ -name '*.py' -print0 | xargs -0 pyupgrade --py36-plus --py3-only"
-    bash -c "find scripts/ -name '*.py' -print0 | xargs -0 pyupgrade --py36-plus --py3-only"
-    bash -c "find docs/examples/ -name '*.py' -print0 | xargs -0 pyupgrade --py36-plus --py3-only"
+    bash -c "find libcloud/ -name '*.py' -print0 | xargs -0 pyupgrade --py37-plus --py3-only"
+    bash -c "find contrib/ -name '*.py' -print0 | xargs -0 pyupgrade --py37-plus --py3-only"
+    bash -c "find demos/ -name '*.py' -print0 | xargs -0 pyupgrade --py37-plus --py3-only"
+    bash -c "find pylint_plugins/ -name '*.py' -print0 | xargs -0 pyupgrade --py37-plus --py3-only"
+    bash -c "find integration/ -name '*.py' -print0 | xargs -0 pyupgrade --py37-plus --py3-only"
+    bash -c "find scripts/ -name '*.py' -print0 | xargs -0 pyupgrade --py37-plus --py3-only"
+    bash -c "find docs/examples/ -name '*.py' -print0 | xargs -0 pyupgrade --py37-plus --py3-only"
 
     isort {toxinidir}