Skip to contentSkip to conversation

python3-docker: upgrade 4.2.1 to 4.3.1

PATCH In review Ricardo Salveti 2 participants 3 messages Oct 30, 2020 – Nov 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-docker: upgrade 4.2.1 to 4.3.1

Release notes for 4.3.1:
- Miscellaneous
- Set default API version to auto
- Fix conversion to bytes for float
- Support OpenSSH identityfile option

Release notes for 4.3.0:
- Features
- Add DeviceRequest type to expose host resources such as GPUs
- Add support for DriverOpts in EndpointConfig
- Disable compression by default when using container.get_archive method
- Miscellaneous
- Update default API version to v1.39
- Update test engine version to 19.03.12

---
 .../{python3-docker_4.2.1.bb => python3-docker_4.3.1.bb}      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename recipes-devtools/python/{python3-docker_4.2.1.bb => python3-docker_4.3.1.bb} (76%)
recipes-devtools/python/python3-docker_4.3.1.bb renamed from recipes-devtools/python/python3-docker_4.2.1.bb +2 -2
similarity index 76%
rename from recipes-devtools/python/python3-docker_4.2.1.bb
rename to recipes-devtools/python/python3-docker_4.3.1.bb
index 32b24eb..f873ca6 100644
@@ -3,8 +3,8 @@ HOMEPAGE = "https://github.com/docker/docker-py"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=34f3846f940453127309b920eeb89660"
 
-SRC_URI[md5sum] = "65111a1e4a2ab83d2ba104cdb17f1326"
-SRC_URI[sha256sum] = "380a20d38fbfaa872e96ee4d0d23ad9beb0f9ed57ff1c30653cbeb0c9c0964f2"
+SRC_URI[md5sum] = "ce28bd52fe2e33a26394693f01199e6c"
+SRC_URI[sha256sum] = "bad94b8dd001a8a4af19ce4becc17f41b09f228173ffe6a4e0355389eef142f2"
 
 DEPENDS += "${PYTHON_PN}-pip-native"
 
Signature · 1 line
2.28.0
#1 lore raw

PATCH 2/2 python3-docker-compose: upgrade 1.26.0 to 1.27.4

Release notes for 1.27.4:
- Bugs
- Remove path checks for bind mounts
- Fix port rendering to output long form syntax for non-v1
- Add protocol to the docker socket address

Release notes for 1.27.3:
- Bugs
- Merged max_replicas_per_node on docker-compose config.
- Fixed depends_on serialization on docker-compose config.
- Fixed scaling when some containers are not running on docker-compose

    up.

- Enabled relative paths for driver_opts.device for local driver.
- Allowed strings for cpus fields.

Release notes for 1.27.2:
- Bugs
- Fix bug on docker-compose run container attach

Release notes for 1.27.1:
- Bugs
- Fix compose run when service.scale is specified
- Allow driver property for external networks as temporary workaround for swarm network propagation issue
- Pin new internal schema version to 3.9 as the default
- Preserve the version when configured in the compose file

Release notes for 1.27.0:
- Features
- Merge 2.x and 3.x compose formats and align with COMPOSE_SPEC schema
- Implement service mode for ipc
- Pass COMPOSE_PROJECT_NAME environment variable in container mode
- Make run behave in the same way as up
- Use docker build on docker-compose run when COMPOSE_DOCKER_CLI_BUILD environment variable is set
- Use docker-py default API version for engine queries (auto)
- Parse network_mode on build
- Bugs
- Ignore build context path validation when building is not required
- Fix float to bytes conversion via docker-py bump to 4.3.1
- Fix scale bug when deploy section is set
- Fix docker-py bump in setup.py
- Fix experimental build failure detection
- Fix context propagation to docker cli
- Miscellaneous
- Drop support for Python 2.7
- Add script for docs syncronization
- Bump docker-py to 4.3.1
- Bump tox to 3.19.0
- Bump virtualenv to 20.0.30

Release notes for 1.26.2:
- Bugs
- Enforce docker-py 4.2.2 as minimum version when installing with pip

Release notes for 1.26.1:
- Features
- Bump docker-py from 4.2.1 to 4.2.2
- Bugs
- Enforce docker-py 4.2.1 as minimum version when installing with pip
- Fix context load for non-docker endpoints

---
 ...-remove-maximum-version-requirements.patch | 25 ++++++++-----------
 ....0.bb => python3-docker-compose_1.27.4.bb} |  4 +--
 2 files changed, 13 insertions(+), 16 deletions(-)
 rename recipes-containers/docker-compose/{python3-docker-compose_1.26.0.bb => python3-docker-compose_1.27.4.bb} (88%)
recipes-containers/docker-compose/files/0001-setup.py-remove-maximum-version-requirements.patch +11 -14
index f517d05..2c25f69 100644
@@ -1,4 +1,4 @@
-From 1d358acd46c9ca71d848fca8c2d677414257f247 Mon Sep 17 00:00:00 2001
+From e3aca6421e003d03d119e69bf3d6b30bb5c662c9 Mon Sep 17 00:00:00 2001
 From: Chen Qi <[email protected]>
 Date: Fri, 22 Nov 2019 09:24:58 +0800
 Subject: [PATCH] setup.py: remove maximum version requirements
@@ -11,14 +11,14 @@ Upstream-Status: Inappropriate [OE Specific]
 Signed-off-by: Chen Qi <[email protected]>
 Signed-off-by: Ming Liu <[email protected]>
 ---
- setup.py |   26 +++++++++++++-------------
- 1 file changed, 13 insertions(+), 13 deletions(-)
+ setup.py | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
 
 diff --git a/setup.py b/setup.py
-index 110441dc..eef28254 100644
+index e0d4340e..80ffefe5 100644
 --- a/setup.py
 +++ b/setup.py
-@@ -30,18 +30,18 @@ def find_version(*file_paths):
+@@ -25,17 +25,17 @@ def find_version(*file_paths):
  
  
  install_requires = [
@@ -29,9 +29,8 @@ index 110441dc..eef28254 100644
 -    'texttable >= 0.9.0, < 2',
 -    'websocket-client >= 0.32.0, < 1',
 -    'distro >= 1.5.0, < 2',
--    'docker[ssh] >= 3.7.0, < 5',
+-    'docker[ssh] >= 4.3.1, < 5',
 -    'dockerpty >= 0.4.1, < 1',
--    'six >= 1.3.0, < 2',
 -    'jsonschema >= 2.5.1, < 4',
 -    'python-dotenv >= 0.13.0, < 1',
 +    'cached-property >= 1.2.0',
@@ -41,24 +40,22 @@ index 110441dc..eef28254 100644
 +    'texttable >= 0.9.0',
 +    'websocket-client >= 0.32.0',
 +    'distro >= 1.5.0',
-+    'docker[ssh] >= 3.7.0',
++    'docker[ssh] >= 4.3.1',
 +    'dockerpty >= 0.4.1',
-+    'six >= 1.3.0',
 +    'jsonschema >= 2.5.1',
 +    'python-dotenv >= 0.13.0',
  ]
  
  
-@@ -61,7 +61,7 @@ extras_require = {
-     ':python_version < "3.3"': ['backports.shutil_get_terminal_size == 1.0.0',
-                                 'ipaddress >= 1.0.16, < 2'],
+@@ -51,7 +51,7 @@ if sys.version_info[:2] < (3, 4):
+ extras_require = {
+     ':python_version < "3.5"': ['backports.ssl_match_hostname >= 3.5, < 4'],
      ':sys_platform == "win32"': ['colorama >= 0.4, < 1'],
 -    'socks': ['PySocks >= 1.5.6, != 1.5.7, < 2'],
 +    'socks': ['PySocks >= 1.5.6, != 1.5.7'],
      'tests': tests_require,
  }
  
- 
 -- 
-2.25.0
+2.28.0
 
recipes-containers/docker-compose/python3-docker-compose_1.27.4.bb renamed from recipes-containers/docker-compose/python3-docker-compose_1.26.0.bb +2 -2
similarity index 88%
rename from recipes-containers/docker-compose/python3-docker-compose_1.26.0.bb
rename to recipes-containers/docker-compose/python3-docker-compose_1.27.4.bb
index 37c62e8..1096d31 100644
@@ -5,8 +5,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=435b266b3899aa8a959f17d41c56def8"
 
 inherit pypi setuptools3
 
-SRC_URI[md5sum] = "f7d54de5db1f17322c09db8157bd160f"
-SRC_URI[sha256sum] = "7e836102d139aca667d6af53f0f4d942c9459ec24d6dd4f0203d74359b0fd311"
+SRC_URI[md5sum] = "6c25d3b92596dc529edc337cc837eae1"
+SRC_URI[sha256sum] = "5a5690f24c27d4b43dcbe6b3fae91ba680713208e99ee863352b3bae37bcaa83"
 
 SRC_URI += "file://0001-setup.py-remove-maximum-version-requirements.patch \
             file://0001-setup.py-import-fastentrypoints.patch \
Signature · 1 line
2.28.0
#2 lore raw

Thanks for the changelog / summary .. super important to log these things, and it made my merge that much easier.

This is now merged

Cheers,

Bruce

In message: [meta-virtualization] [PATCH 1/2] python3-docker: upgrade 4.2.1 to 4.3.1

Quoted 46 lines · on 30/10/2020 Ricardo Salveti wrote:

Release notes for 4.3.1:
- Miscellaneous
- Set default API version to auto
- Fix conversion to bytes for float
- Support OpenSSH identityfile option

Release notes for 4.3.0:
- Features
- Add DeviceRequest type to expose host resources such as GPUs
- Add support for DriverOpts in EndpointConfig
- Disable compression by default when using container.get_archive method
- Miscellaneous
- Update default API version to v1.39
- Update test engine version to 19.03.12

---
 .../{python3-docker_4.2.1.bb => python3-docker_4.3.1.bb}      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename recipes-devtools/python/{python3-docker_4.2.1.bb => python3-docker_4.3.1.bb} (76%)
recipes-devtools/python/python3-docker_4.3.1.bb renamed from recipes-devtools/python/python3-docker_4.2.1.bb +2 -2
similarity index 76%
rename from recipes-devtools/python/python3-docker_4.2.1.bb
rename to recipes-devtools/python/python3-docker_4.3.1.bb
index 32b24eb..f873ca6 100644
@@ -3,8 +3,8 @@ HOMEPAGE = "https://github.com/docker/docker-py"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=34f3846f940453127309b920eeb89660"
 
-SRC_URI[md5sum] = "65111a1e4a2ab83d2ba104cdb17f1326"
-SRC_URI[sha256sum] = "380a20d38fbfaa872e96ee4d0d23ad9beb0f9ed57ff1c30653cbeb0c9c0964f2"
+SRC_URI[md5sum] = "ce28bd52fe2e33a26394693f01199e6c"
+SRC_URI[sha256sum] = "bad94b8dd001a8a4af19ce4becc17f41b09f228173ffe6a4e0355389eef142f2"
 
 DEPENDS += "${PYTHON_PN}-pip-native"
 
Signature · 1 line
2.28.0