From fcffea23ad35f965b28fa71f563d324acdfe6540 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 25 Mar 2020 15:38:22 +0200 Subject: [PATCH 1/2] Implement flow control --- aiodocker/stream.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aiodocker/stream.py b/aiodocker/stream.py index 3c34080b..02738ebd 100644 --- a/aiodocker/stream.py +++ b/aiodocker/stream.py @@ -78,6 +78,9 @@ async def write_in(self, data: bytes) -> None: await self._init() transport = self._resp.connection.transport transport.write(data) + protocol = self._resp.connection.protocol + if protocol.transport is not None: + await protocol._drain_helper() async def close(self) -> None: if self._resp is not None: From 6274722daff3ee0bb401be0c19ba2c2a446e0cf8 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 25 Mar 2020 16:34:00 +0200 Subject: [PATCH 2/2] Release 0.18.0 --- CHANGES.rst | 19 +++++++++++++++++++ CHANGES/389.bugfix | 1 - CHANGES/411.feature | 1 - CHANGES/412.feature | 1 - CHANGES/415.feature | 1 - CHANGES/418.feature | 1 - CHANGES/419.feature | 1 - aiodocker/__init__.py | 2 +- 8 files changed, 20 insertions(+), 7 deletions(-) delete mode 100644 CHANGES/389.bugfix delete mode 100644 CHANGES/411.feature delete mode 100644 CHANGES/412.feature delete mode 100644 CHANGES/415.feature delete mode 100644 CHANGES/418.feature delete mode 100644 CHANGES/419.feature diff --git a/CHANGES.rst b/CHANGES.rst index 8e4b60ea..e59dfddf 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,25 @@ Changes .. towncrier release notes start +0.18.0 (2020-03-25) +=================== + +Features +-------- + +- Improve the error text message if cannot connect to docker engine. (#411) +- Rename `websocket()` to `attach()` (#412) +- Implement docker exec protocol. (#415) +- Implement container commit, pause and unpause functionality. (#418) +- Implement auto-versioning of the docker API by default. (#419) + + +Bugfixes +-------- + +- Fix volume.delete throwing a TypeError. (#389) + + 0.17.0 (2019-10-15) =================== diff --git a/CHANGES/389.bugfix b/CHANGES/389.bugfix deleted file mode 100644 index ddfb636c..00000000 --- a/CHANGES/389.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix volume.delete throwing a TypeError. diff --git a/CHANGES/411.feature b/CHANGES/411.feature deleted file mode 100644 index 8f6d3775..00000000 --- a/CHANGES/411.feature +++ /dev/null @@ -1 +0,0 @@ -Improve the error text message if cannot connect to docker engine. \ No newline at end of file diff --git a/CHANGES/412.feature b/CHANGES/412.feature deleted file mode 100644 index 96970ba3..00000000 --- a/CHANGES/412.feature +++ /dev/null @@ -1 +0,0 @@ -Rename `websocket()` to `attach()` \ No newline at end of file diff --git a/CHANGES/415.feature b/CHANGES/415.feature deleted file mode 100644 index f584dafd..00000000 --- a/CHANGES/415.feature +++ /dev/null @@ -1 +0,0 @@ -Implement docker exec protocol. \ No newline at end of file diff --git a/CHANGES/418.feature b/CHANGES/418.feature deleted file mode 100644 index fc9311c6..00000000 --- a/CHANGES/418.feature +++ /dev/null @@ -1 +0,0 @@ -Implement container commit, pause and unpause functionality. \ No newline at end of file diff --git a/CHANGES/419.feature b/CHANGES/419.feature deleted file mode 100644 index e5e841c9..00000000 --- a/CHANGES/419.feature +++ /dev/null @@ -1 +0,0 @@ -Implement auto-versioning of the docker API by default. \ No newline at end of file diff --git a/aiodocker/__init__.py b/aiodocker/__init__.py index 9d70e214..78cc4351 100644 --- a/aiodocker/__init__.py +++ b/aiodocker/__init__.py @@ -2,7 +2,7 @@ from .exceptions import DockerContainerError, DockerError -__version__ = "0.18.0b1" +__version__ = "0.18.0" __all__ = ("Docker", "DockerError", "DockerContainerError")