Skip to content

Commit 514291c

Browse files
committed
Bump version and update Changelog
Signed-off-by: Joffrey F <[email protected]>
1 parent 245e0e5 commit 514291c

File tree

3 files changed

+72
-2
lines changed

3 files changed

+72
-2
lines changed

docker/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "2.0.0-dev"
1+
version = "2.0.0"
22
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])

docs/change-log.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,77 @@
11
Change log
22
==========
33

4+
2.0.0
5+
-----
6+
7+
[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/22?closed=1)
8+
9+
### Breaking changes
10+
11+
* Dropped support for Python 2.6
12+
* `docker.Client` has been renamed to `docker.APIClient`
13+
* `docker.from_env` now creates a `DockerClient` instance instead of an
14+
`APIClient` instance.
15+
* Removed HostConfig parameters from `APIClient.start`
16+
* The minimum supported API version is now 1.21 (Engine version 1.9.0+)
17+
* The name of the `pip` package is now `docker` (was: `docker-py`). New
18+
versions of this library will only be published as `docker` from now on.
19+
* `docker.ssladapter` is now `docker.transport.ssladapter`
20+
* The package structure has been flattened in certain cases, which may affect
21+
import for `docker.auth` and `docker.utils.ports`
22+
* `docker.utils.types` has been moved to `docker.types`
23+
* `create_host_config`, `create_ipam_pool` and `create_ipam_config` have been
24+
removed from `docker.utils`. They have been replaced by the following classes
25+
in `docker.types`: `HostConfig`, `IPAMPool` and `IPAMCOnfig`.
26+
27+
### Features
28+
29+
* Added a high-level, user-focused API as `docker.DockerClient`. See the
30+
README and documentation for more information.
31+
* Implemented `update_node` method in `APIClient`.
32+
* Implemented `remove_node` method in `APIClient`.
33+
* Added support for `restart_policy` in `update_container`.
34+
* Added support for `labels` and `shmsize` in `build`.
35+
* Added support for `attachable` in `create_network`
36+
* Added support for `healthcheck` in `create_container`.
37+
* Added support for `isolation` in `HostConfig`.
38+
* Expanded support for `pid_mode` in `HostConfig` (now supports arbitrary
39+
values for API version >= 1.24).
40+
* Added support for `options` in `IPAMConfig`
41+
* Added a `HealthCheck` class to `docker.types` to be used in
42+
`create_container`.
43+
* Added an `EndpointSpec` class to `docker.types` to be used in
44+
`create_service` and `update_service`.
45+
46+
47+
### Bugfixes
48+
49+
* Fixed a bug where auth information would not be properly passed to the engine
50+
during a `build` if the client used a credentials store.
51+
* Fixed an issue with some exclusion patterns in `build`.
52+
* Fixed an issue where context files were bundled with the wrong permissions
53+
when calling `build` on Windows.
54+
* Fixed an issue where auth info would not be retrieved from its default location
55+
on Windows.
56+
* Fixed an issue where lists of `networks` in `create_service` and
57+
`update_service` wouldn't be properly converted for the engine.
58+
* Fixed an issue where `endpoint_config` in `create_service` and
59+
`update_service` would be ignored.
60+
* `endpoint_config` in `create_service` and `update_service` has been
61+
deprecated in favor of `endpoint_spec`
62+
* Fixed a bug where `constraints` in a `TaskTemplate` object wouldn't be
63+
properly converted for the engine.
64+
* Fixed an issue where providing a dictionary for `env` in `ContainerSpec`
65+
would provoke an `APIError` when sent to the engine.
66+
* Fixed a bug where providing an `env_file` containing empty lines in
67+
`create_container`would raise an exception.
68+
* Fixed a bug where `detach` was being ignored by `exec_start`.
69+
70+
### Documentation
71+
72+
* Documentation for classes and methods is now included alongside the code as
73+
docstrings.
74+
475
1.10.6
576
------
677

tests/unit/api_network_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ def test_create_network(self):
101101
"Subnet": "192.168.52.0/24",
102102
"AuxiliaryAddresses": None,
103103
}],
104-
"Options": None
105104
}
106105
})
107106

0 commit comments

Comments
 (0)