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 2021/11/12 15:20:34 UTC

[libcloud] branch 3.4.x updated (ab4069a -> 28d3785)

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

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


    from ab4069a  Re-generate provider tables.
     new dfa5673  Fix a bug in setup.py which causes installation to fail under Python 3.5 when installing from PyPi.
     new edfb4c5  Don't require the very latest version of requests under Python >= 3.6.
     new e0726c8  Add changelog entry.
     new 90d7ec0  Update changelog.
     new 14e90fb  Add a note on chardet LGPL issue to the upgrade notes and changelog.
     new 5f5b509  Use include.
     new 2c1fcdf  Enable CI for 3.4.x series branch.
     new eff80c0  Bump version for v3.4.1 release.
     new 28d3785  Add a workaround for more-itertools upstream change which broke tests under Python 3.5.

The 9 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        |  2 ++
 CHANGES.rst                       | 52 +++++++++++++++++++++++++++++++++++++++
 NOTICE                            |  2 +-
 docs/_requests_chardet_notice.rst | 30 ++++++++++++++++++++++
 docs/conf.py                      |  4 +--
 docs/upgrade_notes.rst            |  4 ++-
 libcloud/__init__.py              |  2 +-
 requirements-tests.txt            |  3 +++
 setup.py                          | 11 +++------
 9 files changed, 97 insertions(+), 13 deletions(-)
 create mode 100644 docs/_requests_chardet_notice.rst

[libcloud] 02/09: Don't require the very latest version of requests under Python >= 3.6.

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

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

commit edfb4c5b9302ef74bedb63d53192a458bc466aa2
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Nov 11 22:03:12 2021 +0100

    Don't require the very latest version of requests under Python >= 3.6.
    
    Libcloud is a library and not application and we shouldn't have very
    strict requirements like that since it may cause issues if users already
    depend on different (conflicting / lower) version of requests.
    
    Due to #1594 this is not ideal from license perspective, but Libcloud
    doesn't bundle any 3rd party dependencies and in most scenarios where
    there are no conflicting version requirements, pip will pick up latest
    version of requests when installing Libcloud.
---
 setup.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 31fa353..4175aa9 100644
--- a/setup.py
+++ b/setup.py
@@ -176,8 +176,7 @@ SUPPORTED_VERSIONS = ['PyPy 3', 'Python 3.5+']
 # We rely on >= 2.26.0 to avoid issues with LGL transitive dependecy
 # See https://github.com/apache/libcloud/issues/1594 for more context
 INSTALL_REQUIREMENTS = [
-    'requests>=2.25.1; python_version <= "3.5"',
-    'requests>=2.26.0; python_version >= "3.6"'
+    'requests>=2.5.0',
 ]
 
 setuptools_version = tuple(setuptools.__version__.split(".")[0:2])

[libcloud] 05/09: Add a note on chardet LGPL issue to the upgrade notes and changelog.

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

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

commit 14e90fbc3cb6b13c7d3d969ecbdfcc0266128dcf
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Nov 12 15:00:50 2021 +0100

    Add a note on chardet LGPL issue to the upgrade notes and changelog.
---
 CHANGES.rst            | 31 +++++++++++++++++++++++++++++++
 NOTICE                 |  2 +-
 docs/upgrade_notes.rst | 33 ++++++++++++++++++++++++++++++++-
 3 files changed, 64 insertions(+), 2 deletions(-)

diff --git a/CHANGES.rst b/CHANGES.rst
index c3c9295..336ad01 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,37 @@
 Changes in Apache Libcloud 3.4.1
 --------------------------------
 
+.. note::
+
+  Libcloud depends on the ``requests`` library for performing HTTP(s) requests.
+
+  Prior to ``requests`` v2.26.0, ``requests`` depended on ``chardet`` library
+  which is licensed under LGPL (requests library itself is licensed under the
+  Apache License 2.0 license).
+
+  Since Libcloud is not an application, but a library which is usually used
+  along many other libraries in the same (virtual) environment, we can't have
+  a strict dependency on requests >= 2.26.0 since that would break a lot of
+  installations where users already depend on and have an older version of
+  requests installed.
+
+  If you are using requests < 2.26.0 along the Libcloud library you are using
+  version of chardet library (chardet is a direct dependency of the requests
+  library) which license is not compatible with Apache Libcloud.
+
+  If using a LGPL dependency is a problem for your application, you should
+  ensure you are using requests >= 2.26.0.
+
+  It's also worth noting that Apache Libcloud doesn't bundle any 3rd party
+  dependencies with our release artifacts - we only provide source code
+  artifacts on our website.
+
+  When installing Libcloud from PyPi using pip, pip will also download and use
+  the latest version of requests without the problematic chardet dependency,
+  unless you already have older version of the requests library installed in
+  the same environment where you also want to use Libcloud - in that case,
+  Libcloud will use the dependency which is already available and installed.
+
 Common
 ~~~~~~
 
diff --git a/NOTICE b/NOTICE
index 176aaf6..fe88c8f 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Apache Libcloud
-Copyright (c) 2010-2020 The Apache Software Foundation
+Copyright (c) 2010-2021 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
diff --git a/docs/upgrade_notes.rst b/docs/upgrade_notes.rst
index a5e1781..cde5670 100644
--- a/docs/upgrade_notes.rst
+++ b/docs/upgrade_notes.rst
@@ -5,7 +5,38 @@ This page describes how to upgrade from a previous version to a new version
 which contains backward incompatible or semi-incompatible changes and how to
 preserve the old behavior when this is possible.
 
-Libcloud 3.3.2
+.. note::
+
+  Libcloud depends on the ``requests`` library for performing HTTP(s) requests.
+
+  Prior to ``requests`` v2.26.0, ``requests`` depended on ``chardet`` library
+  which is licensed under LGPL (requests library itself is licensed under the
+  Apache License 2.0 license).
+
+  Since Libcloud is not an application, but a library which is usually used
+  along many other libraries in the same (virtual) environment, we can't have
+  a strict dependency on requests >= 2.26.0 since that would break a lot of
+  installations where users already depend on and have an older version of
+  requests installed.
+
+  If you are using requests < 2.26.0 along the Libcloud library you are using
+  version of chardet library (chardet is a direct dependency of the requests
+  library) which license is not compatible with Apache Libcloud.
+
+  If using a LGPL dependency is a problem for your application, you should
+  ensure you are using requests >= 2.26.0.
+
+  It's also worth noting that Apache Libcloud doesn't bundle any 3rd party
+  dependencies with our release artifacts - we only provide source code
+  artifacts on our website.
+
+  When installing Libcloud from PyPi using pip, pip will also download and use
+  the latest version of requests without the problematic chardet dependency,
+  unless you already have older version of the requests library installed in
+  the same environment where you also want to use Libcloud - in that case,
+  Libcloud will use the dependency which is already available and installed.
+
+Libclous 3.4.0
 --------------
 
 * Exception message changed in OpenStack drivers

[libcloud] 06/09: Use include.

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

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

commit 5f5b509cca0a58bb47bbba809a42dfbd420f3768
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Nov 12 16:03:21 2021 +0100

    Use include.
---
 docs/_requests_chardet_notice.rst | 30 ++++++++++++++++++++++++++++++
 docs/upgrade_notes.rst            | 31 +------------------------------
 2 files changed, 31 insertions(+), 30 deletions(-)

diff --git a/docs/_requests_chardet_notice.rst b/docs/_requests_chardet_notice.rst
new file mode 100644
index 0000000..146bab9
--- /dev/null
+++ b/docs/_requests_chardet_notice.rst
@@ -0,0 +1,30 @@
+.. note::
+
+  Libcloud depends on the ``requests`` library for performing HTTP(s) requests.
+
+  Prior to ``requests`` v2.26.0, ``requests`` depended on ``chardet`` library
+  which is licensed under LGPL (requests library itself is licensed under the
+  Apache License 2.0 license).
+
+  Since Libcloud is not an application, but a library which is usually used
+  along many other libraries in the same (virtual) environment, we can't have
+  a strict dependency on requests >= 2.26.0 since that would break a lot of
+  installations where users already depend on and have an older version of
+  requests installed.
+
+  If you are using requests < 2.26.0 along the Libcloud library you are using
+  version of chardet library (chardet is a direct dependency of the requests
+  library) which license is not compatible with Apache Libcloud.
+
+  If using a LGPL dependency is a problem for your application, you should
+  ensure you are using requests >= 2.26.0.
+
+  It's also worth noting that Apache Libcloud doesn't bundle any 3rd party
+  dependencies with our release artifacts - we only provide source code
+  artifacts on our website.
+
+  When installing Libcloud from PyPi using pip, pip will also download and use
+  the latest version of requests without the problematic chardet dependency,
+  unless you already have older version of the requests library installed in
+  the same environment where you also want to use Libcloud - in that case,
+  Libcloud will use the dependency which is already available and installed.
diff --git a/docs/upgrade_notes.rst b/docs/upgrade_notes.rst
index cde5670..4efb6d4 100644
--- a/docs/upgrade_notes.rst
+++ b/docs/upgrade_notes.rst
@@ -5,36 +5,7 @@ This page describes how to upgrade from a previous version to a new version
 which contains backward incompatible or semi-incompatible changes and how to
 preserve the old behavior when this is possible.
 
-.. note::
-
-  Libcloud depends on the ``requests`` library for performing HTTP(s) requests.
-
-  Prior to ``requests`` v2.26.0, ``requests`` depended on ``chardet`` library
-  which is licensed under LGPL (requests library itself is licensed under the
-  Apache License 2.0 license).
-
-  Since Libcloud is not an application, but a library which is usually used
-  along many other libraries in the same (virtual) environment, we can't have
-  a strict dependency on requests >= 2.26.0 since that would break a lot of
-  installations where users already depend on and have an older version of
-  requests installed.
-
-  If you are using requests < 2.26.0 along the Libcloud library you are using
-  version of chardet library (chardet is a direct dependency of the requests
-  library) which license is not compatible with Apache Libcloud.
-
-  If using a LGPL dependency is a problem for your application, you should
-  ensure you are using requests >= 2.26.0.
-
-  It's also worth noting that Apache Libcloud doesn't bundle any 3rd party
-  dependencies with our release artifacts - we only provide source code
-  artifacts on our website.
-
-  When installing Libcloud from PyPi using pip, pip will also download and use
-  the latest version of requests without the problematic chardet dependency,
-  unless you already have older version of the requests library installed in
-  the same environment where you also want to use Libcloud - in that case,
-  Libcloud will use the dependency which is already available and installed.
+.. include:: ./_requests_chardet_notice.rst
 
 Libclous 3.4.0
 --------------

[libcloud] 07/09: Enable CI for 3.4.x series branch.

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

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

commit 2c1fcdfa14cce5650cce7ed6d7aad86bdda8cd88
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Nov 12 16:03:39 2021 +0100

    Enable CI for 3.4.x series branch.
---
 .github/workflows/main.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9d3d181..24f26b7 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -4,9 +4,11 @@ on:
   push:
     branches:
       - trunk
+      - 3.4.x
   pull_request:
     branches:
       - trunk
+      - 3.4.x
   schedule:
     - cron: '0 1 * * *'
 

[libcloud] 04/09: Update changelog.

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

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

commit 90d7ec08714369d8bd6e87f76366575692049f11
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Nov 12 13:36:43 2021 +0100

    Update changelog.
---
 CHANGES.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/CHANGES.rst b/CHANGES.rst
index 2a1704b..c3c9295 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -14,11 +14,12 @@ Common
   minimum version requirement.
 
   Previous change would prevent Libcloud from being installed in environments
-  where a conflicting (lower) version of requests library is required.
+  where a conflicting (lower) version of requests library is required and
+  already installed.
 
-  As a library and not an application Libcloud should specify as loose
+  As a library and not an application, Libcloud should specify as loose
   requirements as possible to prevent issues with conflicting requirements
-  versions.
+  versions which could prevent Libcloud from being installed.
   (GITHUB-1594)
 
 Changes in Apache Libcloud 3.4.0

[libcloud] 08/09: Bump version for v3.4.1 release.

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

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

commit eff80c01074f1853aff95ef5f43250545b38b2c2
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Nov 12 16:04:36 2021 +0100

    Bump version for v3.4.1 release.
---
 docs/conf.py         | 4 ++--
 libcloud/__init__.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index f26cd6e..5be4e95 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -68,10 +68,10 @@ html_show_sphinx = False
 # built documents.
 #
 # The short X.Y version.
-version = '3.4.0'
+version = '3.4.1'
 
 # The full version, including alpha/beta/rc tags.
-release = '3.4.0'
+release = '3.4.1'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff --git a/libcloud/__init__.py b/libcloud/__init__.py
index a840946..b05bc71 100644
--- a/libcloud/__init__.py
+++ b/libcloud/__init__.py
@@ -41,7 +41,7 @@ __all__ = [
     'enable_debug'
 ]
 
-__version__ = '3.4.0'
+__version__ = '3.4.1'
 
 
 def enable_debug(fo):

[libcloud] 01/09: Fix a bug in setup.py which causes installation to fail under Python 3.5 when installing from PyPi.

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

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

commit dfa56739fa61c35060322c9cf680bb89cce219b6
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Nov 11 21:42:51 2021 +0100

    Fix a bug in setup.py which causes installation to fail under Python 3.5
    when installing from PyPi.
---
 setup.py | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/setup.py b/setup.py
index 0f3ef37..31fa353 100644
--- a/setup.py
+++ b/setup.py
@@ -175,14 +175,10 @@ SUPPORTED_VERSIONS = ['PyPy 3', 'Python 3.5+']
 # Reference: https://hynek.me/articles/conditional-python-dependencies/
 # We rely on >= 2.26.0 to avoid issues with LGL transitive dependecy
 # See https://github.com/apache/libcloud/issues/1594 for more context
-INSTALL_REQUIREMENTS = []
-
-if sys.version_info < (3, 6, 0):
-    # requests 2.26.0 doesn't support Python 3.5 anymore
-    INSTALL_REQUIREMENTS.append('requests>=2.25.1')
-else:
-    INSTALL_REQUIREMENTS.append('requests>=2.26.0')
-
+INSTALL_REQUIREMENTS = [
+    'requests>=2.25.1; python_version <= "3.5"',
+    'requests>=2.26.0; python_version >= "3.6"'
+]
 
 setuptools_version = tuple(setuptools.__version__.split(".")[0:2])
 setuptools_version = tuple([int(c) for c in setuptools_version])

[libcloud] 03/09: Add changelog entry.

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

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

commit e0726c878cab34dc305928e57e0c38caad2c91dd
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Nov 11 23:41:59 2021 +0100

    Add changelog entry.
---
 CHANGES.rst | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/CHANGES.rst b/CHANGES.rst
index 74744fe..2a1704b 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,26 @@
 Changelog
 =========
 
+Changes in Apache Libcloud 3.4.1
+--------------------------------
+
+Common
+~~~~~~
+
+- Fix a regression which was inadvertently introduced in v3.4.0 which prevented
+  users from installing Libcloud under Python 3.5.
+
+  Also revert ``requests`` minimum version required change and relax the
+  minimum version requirement.
+
+  Previous change would prevent Libcloud from being installed in environments
+  where a conflicting (lower) version of requests library is required.
+
+  As a library and not an application Libcloud should specify as loose
+  requirements as possible to prevent issues with conflicting requirements
+  versions.
+  (GITHUB-1594)
+
 Changes in Apache Libcloud 3.4.0
 --------------------------------
 

[libcloud] 09/09: Add a workaround for more-itertools upstream change which broke tests under Python 3.5.

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

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

commit 28d3785c996bd8ff56b508518bb06dbe3f4466eb
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Wed Nov 10 17:38:55 2021 +0100

    Add a workaround for more-itertools upstream change which broke tests
    under Python 3.5.
---
 requirements-tests.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/requirements-tests.txt b/requirements-tests.txt
index 09b3c18..7c71878 100644
--- a/requirements-tests.txt
+++ b/requirements-tests.txt
@@ -22,3 +22,6 @@ cryptography==35.0.0; python_version >= '3.6'
 # NOTE: Only needed by nttcis loadbalancer driver
 pyopenssl==20.0.1; python_version <= '3.5'
 pyopenssl==21.0.0; python_version >= '3.6'
+# Newer version of itertools doesn't support Python 3.5 anymore
+more-itertools==8.10.0; python_version <= '3.5'
+more-itertools==8.11.0; python_version >= '3.6'