Merge pull request #2348 from docker/4.0.1-release

4.0.1 release
This commit is contained in:
Joffrey F 2019-05-18 20:18:03 -07:00 committed by GitHub
commit ead0bb9e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 6 deletions

10
.readthedocs.yml Normal file
View File

@ -0,0 +1,10 @@
version: 2
sphinx:
configuration: docs/conf.py
python:
version: 3.5
install:
- requirements: docs-requirements.txt
- requirements: requirements.txt

View File

@ -1,5 +1,5 @@
import errno
import json
import os
import subprocess
import six
@ -84,7 +84,7 @@ class Store(object):
[self.exe, subcmd], stdin=subprocess.PIPE,
stdout=subprocess.PIPE, env=env,
)
output, err = process.communicate(data_input)
output, _ = process.communicate(data_input)
if process.returncode != 0:
raise subprocess.CalledProcessError(
returncode=process.returncode, cmd='', output=output
@ -92,7 +92,7 @@ class Store(object):
except subprocess.CalledProcessError as e:
raise errors.process_store_error(e, self.program)
except OSError as e:
if e.errno == os.errno.ENOENT:
if e.errno == errno.ENOENT:
raise errors.StoreError(
'{} not installed or not available in PATH'.format(
self.program

View File

@ -1,2 +1,2 @@
version = "4.0.0"
version = "4.0.1"
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])

View File

@ -1,6 +1,20 @@
Change log
==========
4.0.1
-----
[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/60?closed=1)
### Bugfixes
- Fixed an obsolete import in the `credentials` subpackage that caused import errors in
Python 3.7
### Miscellaneous
- Docs building has been repaired
4.0.0
-----

View File

@ -6,7 +6,7 @@
Starting with Engine version 1.12 (API 1.24), it is possible to manage services
using the Docker Engine API. Note that the engine needs to be part of a
[Swarm cluster](../swarm.rst) before you can use the service-related methods.
[Swarm cluster](../swarm.html) before you can use the service-related methods.
## Creating a service
@ -66,4 +66,4 @@ Either the service name or service ID can be used as argument.
```python
client.remove_service('my_service_name')
```
```