Skip to content

Commit

Permalink
Merge pull request #671 from docker/1.3.0-release
Browse files Browse the repository at this point in the history
1.3.0 release
  • Loading branch information
shin- committed Jul 9, 2015
2 parents 69ef9e5 + b60d57b commit 07ca4f5
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 17 deletions.
13 changes: 0 additions & 13 deletions docker/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,19 +271,6 @@ def events(self, since=None, until=None, filters=None, decode=None):
params=params, stream=True),
decode=decode)

@check_resource
def execute(self, container, cmd, detach=False, stdout=True, stderr=True,
stream=False, tty=False):
warnings.warn(
'Client.execute is being deprecated. Please use exec_create & '
'exec_start instead', DeprecationWarning
)
create_res = self.exec_create(
container, cmd, stdout, stderr, tty
)

return self.exec_start(create_res, detach, tty, stream)

def exec_create(self, container, cmd, stdout=True, stderr=True, tty=False,
privileged=False):
if utils.compare_version('1.15', self._version) < 0:
Expand Down
2 changes: 1 addition & 1 deletion docker/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "1.3.0-dev"
version = "1.3.0"
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])
49 changes: 49 additions & 0 deletions docs/change_log.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,55 @@
Change Log
==========

1.3.0
-----

[List of PRs / issues for this release](https://github.com/docker/docker-py/issues?q=milestone%3A1.3.0+is%3Aclosed)

### Deprecation warning

* As announced in the 1.2.0 release, `Client.execute` has been removed in favor of
`Client.exec_create` and `Client.exec_start`.

### Features

* `extra_hosts` parameter in host config can now also be provided as a list.
* Added support for `memory_limit` and `memswap_limit` in host config to
comply with recent deprecations.
* Added support for `volume_driver` in `Client.create_container`
* Added support for advanced modes in volume binds (using the `mode` key)
* Added support for `decode` in `Client.build` (decodes JSON stream on the fly)
* docker-py will now look for login configuration under the new config path,
and fall back to the old `~/.dockercfg` path if not present.

### Bugfixes

* Configuration file lookup now also work on platforms that don't define a
`$HOME` environment variable.
* Fixed an issue where pinging a v2 private registry wasn't working properly,
preventing users from pushing and pulling.
* `pull` parameter in `Client.build` now defaults to `False`. Fixes a bug where
the default options would try to force a pull of non-remote images.
* Fixed a bug where getting logs from tty-enabled containers wasn't working
properly with more recent versions of Docker
* `Client.push` and `Client.pull` will now raise exceptions if the HTTP
status indicates an error.
* Fixed a bug with adapter lookup when using the Unix socket adapter
(this affected some weird edge cases, see issue #647 for details)
* Fixed a bug where providing `timeout=None` to `Client.stop` would result
in an exception despite the usecase being valid.
* Added `git@` to the list of valid prefixes for remote build paths.

### Dependencies

* The websocket-client dependency has been updated to a more recent version.
This new version also supports Python 3.x, making `attach_socket` available
on those versions as well.

### Documentation

* Various fixes

1.2.3
-----

Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
requirements = [
'requests >= 2.5.2',
'six >= 1.3.0',
'websocket-client >= 0.32.0',
]

if sys.version_info[0] < 3:
requirements.append('websocket-client >= 0.32.0')

exec(open('docker/version.py').read())

with open('./test-requirements.txt') as test_reqs_txt:
Expand Down

0 comments on commit 07ca4f5

Please sign in to comment.