From 94083f25acfa38d68e6dbb08c81d51021191c95b Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Mon, 28 Nov 2016 16:45:59 +0000 Subject: Start to rename docker-py to docker-sdk-python Pretty much everything except renaming the GitHub repo and documentation, which is not actually done yet. Nearer the release we can do a search/replace for all that stuff. Ref #1310 Signed-off-by: Ben Firshman --- docker/__init__.py | 2 +- docker/api/client.py | 4 ++-- docker/client.py | 6 +++--- docker/constants.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'docker') diff --git a/docker/__init__.py b/docker/__init__.py index acf4b55..0ac2695 100644 --- a/docker/__init__.py +++ b/docker/__init__.py @@ -4,4 +4,4 @@ from .client import Client, from_env from .version import version, version_info __version__ = version -__title__ = 'docker-py' +__title__ = 'docker' diff --git a/docker/api/client.py b/docker/api/client.py index 23e239c..3793299 100644 --- a/docker/api/client.py +++ b/docker/api/client.py @@ -145,8 +145,8 @@ class APIClient( warnings.warn( 'The minimum API version supported is {}, but you are using ' 'version {}. It is recommended you either upgrade Docker ' - 'Engine or use an older version of docker-py.'.format( - MINIMUM_DOCKER_API_VERSION, self._version) + 'Engine or use an older version of Docker SDK for ' + 'Python.'.format(MINIMUM_DOCKER_API_VERSION, self._version) ) def _retrieve_server_version(self): diff --git a/docker/client.py b/docker/client.py index b3b4700..b5257ab 100644 --- a/docker/client.py +++ b/docker/client.py @@ -158,9 +158,9 @@ class Client(object): s = ["'Client' object has no attribute '{}'".format(name)] # If a user calls a method on APIClient, they if hasattr(APIClient, name): - s.append("In docker-py 2.0, this method is now on the object " - "APIClient. See the low-level API section of the " - "documentation for more details.".format(name)) + s.append("In Docker SDK for Python 2.0, this method is now on the " + "object APIClient. See the low-level API section of the " + "documentation for more details.") raise AttributeError(' '.join(s)) diff --git a/docker/constants.py b/docker/constants.py index c3048cb..0bfc0b0 100644 --- a/docker/constants.py +++ b/docker/constants.py @@ -15,5 +15,5 @@ INSECURE_REGISTRY_DEPRECATION_WARNING = \ IS_WINDOWS_PLATFORM = (sys.platform == 'win32') -DEFAULT_USER_AGENT = "docker-py/{0}".format(version) +DEFAULT_USER_AGENT = "docker-sdk-python/{0}".format(version) DEFAULT_NUM_POOLS = 25 -- cgit v1.2.1