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/09/08 11:49:11 UTC

[libcloud] branch trunk updated (bbfabc39c -> 138efe99a)

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 bbfabc39c Merge branch 'trunk' of http://gitbox.apache.org/repos/asf/libcloud into trunk
     new 4b1819f84 Update min / target Python version in mypy and black config,
     new 74ce67df7 Upgrade mypy version.
     new ef16c5385 Fix invalid type annotation.
     new 138efe99a Update various test and lint dependencies (pylint, astroid, coverage) to the latest stable version and utilize Python 3.8 which is not EOL for those checks / tox targets so we can utilize those library versions which don't support Python 3.7 anymore.

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:
 .github/workflows/main.yml                  | 12 ++++++------
 .github/workflows/publish_pricing_to_s3.yml |  2 +-
 .pylintrc                                   |  2 +-
 libcloud/common/types.py                    |  2 +-
 mypy.ini                                    |  2 +-
 pyproject.toml                              |  2 +-
 requirements-tests.txt                      |  6 +++---
 tox.ini                                     |  5 +++--
 8 files changed, 17 insertions(+), 16 deletions(-)


[libcloud] 02/04: Upgrade mypy version.

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 74ce67df7a5899f9d58f955d0eebb8ac7a366713
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Sep 8 13:29:28 2022 +0200

    Upgrade mypy version.
---
 tox.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index c3b541262..206b16e84 100644
--- a/tox.ini
+++ b/tox.ini
@@ -361,7 +361,7 @@ commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
 deps =
     typing
     # Mypy requires typed-ast, which is broken on PyPy 3.7 (could work in PyPy 3.8).
-    mypy==0.910; implementation_name == "cpython"
+    mypy==0.971; implementation_name == "cpython"
     types-simplejson
     types-certifi
     types-requests


[libcloud] 01/04: Update min / target Python version in mypy and black config,

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 4b1819f84275d784df312761708952791e8bee28
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Sep 8 13:26:55 2022 +0200

    Update min / target Python version in mypy and black config,
---
 mypy.ini       | 2 +-
 pyproject.toml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mypy.ini b/mypy.ini
index 709d522a2..bc5ffe376 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -1,5 +1,5 @@
 [mypy]
-python_version = 3.6
+python_version = 3.7
 platform = linux
 show_error_context = True
 show_column_numbers = True
diff --git a/pyproject.toml b/pyproject.toml
index 036b69c24..e263bc4fd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [tool.black]
 max-line-length = 100
-target_version = ['py36', 'py37', 'py38']
+target_version = ['py37', 'py38', 'py39', 'py310']
 include = '\.pyi?$'
 exclude = '''
 (


[libcloud] 04/04: Update various test and lint dependencies (pylint, astroid, coverage) to the latest stable version and utilize Python 3.8 which is not EOL for those checks / tox targets so we can utilize those library versions which don't support Python 3.7 anymore.

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 138efe99ab9b72b1d4c1676090812bd06a4a3dce
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Sep 8 13:48:26 2022 +0200

    Update various test and lint dependencies (pylint, astroid, coverage) to the
    latest stable version and utilize Python 3.8 which is not EOL for those checks
    / tox targets so we can utilize those library versions which don't support
    Python 3.7 anymore.
    
    Also removed deprecated pylint config option value.
---
 .github/workflows/main.yml                  | 12 ++++++------
 .github/workflows/publish_pricing_to_s3.yml |  2 +-
 .pylintrc                                   |  2 +-
 requirements-tests.txt                      |  6 +++---
 tox.ini                                     |  3 ++-
 5 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 0d89ccd9c..2f5e72c41 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -130,7 +130,7 @@ jobs:
 
     strategy:
       matrix:
-        python_version: [3.7]
+        python_version: [3.8]
 
     steps:
       - uses: actions/checkout@master
@@ -172,7 +172,7 @@ jobs:
 
     strategy:
       matrix:
-        python_version: [3.7]
+        python_version: [3.8]
 
     steps:
       - uses: actions/checkout@master
@@ -214,7 +214,7 @@ jobs:
 
     strategy:
       matrix:
-        python_version: [3.7]
+        python_version: [3.8]
 
     steps:
       - uses: actions/checkout@master
@@ -241,7 +241,7 @@ jobs:
 
     strategy:
       matrix:
-        python_version: [3.7]
+        python_version: [3.8]
 
     steps:
       - uses: actions/checkout@master
@@ -290,7 +290,7 @@ jobs:
 
     strategy:
       matrix:
-        python_version: [3.7]
+        python_version: [3.8]
 
     steps:
       - uses: actions/checkout@master
@@ -332,7 +332,7 @@ jobs:
 
     strategy:
       matrix:
-        python_version: [3.7]
+        python_version: [3.8]
 
     steps:
       - name: Print Environment Info
diff --git a/.github/workflows/publish_pricing_to_s3.yml b/.github/workflows/publish_pricing_to_s3.yml
index 4ec82b6e0..ab3d3c869 100644
--- a/.github/workflows/publish_pricing_to_s3.yml
+++ b/.github/workflows/publish_pricing_to_s3.yml
@@ -17,7 +17,7 @@ jobs:
 
     strategy:
       matrix:
-        python_version: [3.7]
+        python_version: [3.8]
 
     steps:
       - name: Print Environment Info
diff --git a/.pylintrc b/.pylintrc
index 156272740..a0b4ddde0 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -12,7 +12,7 @@ load-plugins=
 
 
 [MESSAGES CONTROL]
-disable=redefined-builtin,too-many-arguments,too-few-public-methods,missing-docstring,invalid-name,abstract-method,no-self-use
+disable=redefined-builtin,too-many-arguments,too-few-public-methods,missing-docstring,invalid-name,abstract-method
 
 
 [TYPECHECK]
diff --git a/requirements-tests.txt b/requirements-tests.txt
index 8c2278e88..7addf375a 100644
--- a/requirements-tests.txt
+++ b/requirements-tests.txt
@@ -1,9 +1,9 @@
 pep8==1.7.1
 flake8==5.0.4
-astroid==2.11.4
-pylint==2.13.8
+astroid==2.12.9
+pylint==2.15.2
 codecov==2.1.12
-coverage==6.2.0
+coverage==6.4.4
 requests>=2.27.1
 requests_mock==1.10.0
 pytest==7.0.1
diff --git a/tox.ini b/tox.ini
index 206b16e84..5239d01e9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,7 +18,8 @@ basepython =
     pypypy-3.8: pypy3.8
     pypyjion: pyjion
     {py3.6,py3.6-dist,py3.6-dist-wheel}: python3.6
-    {py3.7,docs,checks,black,lint,pylint,bandit,mypy,micro-benchmarks,coverage,docs,py3.7-dist,py3.7-dist-wheel}: python3.7
+    {py3.7,py3.7-dist,py3.7-dist-wheel}: python3.7
+    {docs,checks,black,lint,pylint,bandit,mypy,micro-benchmarks,coverage}: python3.8
     {py3.8,py3.8-windows,integration-storage,py3.8-dist,py3.8-dist-wheel}: python3.8
     {py3.9,py3.9-dist,py3.9-dist-wheel}: python3.9
     {py3.10,py3.10-dist,py3.10-dist-wheel}: python3.10


[libcloud] 03/04: Fix invalid type annotation.

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 ef16c53859b578c6fb3c817d141fea7a9c9aca8e
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Sep 8 13:29:45 2022 +0200

    Fix invalid type annotation.
---
 libcloud/common/types.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcloud/common/types.py b/libcloud/common/types.py
index 7dd6d26f9..29c54d425 100644
--- a/libcloud/common/types.py
+++ b/libcloud/common/types.py
@@ -49,7 +49,7 @@ class Type(str, Enum):
 
     @classmethod
     def fromstring(cls, value):
-        # type: (str) -> str
+        # type: (str) -> Optional[str]
         """Return the state object attribute that matches the string
         :param str value: the string to look up
         :return: the state object attribute that matches the string