Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from docker/staging
Browse files Browse the repository at this point in the history
1.0.4
  • Loading branch information
Feng Honglin committed Apr 26, 2016
2 parents 260e7c1 + ed92451 commit 526e7cd
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 23 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:2.7.11-alpine

ADD . /sdk
WORKDIR sdk
RUN python setup.py install

1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include LICENSE
include requirements.txt
include test-requirements.txt
include README.md
13 changes: 0 additions & 13 deletions Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sut:
build: .
command: python setup.py test
2 changes: 1 addition & 1 deletion dockercloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from dockercloud.api.events import Events
from dockercloud.api.nodeaz import AZ

__version__ = '1.0.3'
__version__ = '1.0.4'

dockercloud_auth = os.environ.get('DOCKERCLOUD_AUTH')
basic_auth = auth.load_from_file("~/.docker/config.json")
Expand Down
6 changes: 3 additions & 3 deletions dockercloud/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def run_forever(self, *args, **kwargs):
on_message=self._on_message,
on_error=self._on_error,
on_close=self._on_close)
ws.run_forever(ping_interval=5, ping_timeout=5, *args, **kwargs)
ws.run_forever(ping_interval=10, ping_timeout=5, *args, **kwargs)


class StreamingLog(StreamingAPI):
Expand All @@ -329,7 +329,7 @@ def run_forever(self, *args, **kwargs):
on_message=self._on_message,
on_error=self._on_error,
on_close=self._on_close)
ws.run_forever(ping_interval=5, ping_timeout=5, *args, **kwargs)
ws.run_forever(ping_interval=10, ping_timeout=5, *args, **kwargs)


class Exec(StreamingAPI):
Expand All @@ -348,4 +348,4 @@ def run_forever(self, *args, **kwargs):
on_message=self._on_message,
on_error=self._on_error,
on_close=self._on_close)
ws.run_forever(ping_interval=5, ping_timeout=5, *args, **kwargs)
ws.run_forever(ping_interval=10, ping_timeout=5, *args, **kwargs)
2 changes: 1 addition & 1 deletion dockercloud/api/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def run_forever(self, *args, **kwargs):
on_message=self._on_message,
on_error=self._on_error,
on_close=self._on_close)
ws.run_forever(ping_interval=5, ping_timeout=5, *args, **kwargs)
ws.run_forever(ping_interval=10, ping_timeout=5, *args, **kwargs)
2 changes: 2 additions & 0 deletions hooks/push
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
echo "Skipping push the image"
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
backports.ssl-match-hostname==3.4.0.2
future==0.15.0
requests==2.7.0
six==1.9.0
websocket-client==0.32.0
websocket-client==0.37.0
14 changes: 11 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

from setuptools import setup, find_packages

requirements =[
"future >= 0.15.0, < 1",
"requests >= 2.5.2, < 3",
"six >= 1.3.0, < 2",
"websocket-client >= 0.32.0, < 1"
]


def read(*parts):
path = os.path.join(os.path.dirname(__file__), *parts)
Expand All @@ -19,15 +26,16 @@ def find_version(*file_paths):
return version_match.group(1)
raise RuntimeError('Unable to find version string.')

with open('./test-requirements.txt') as test_reqs_txt:
test_requirements = [line for line in test_reqs_txt]

with open('requirements.txt') as f:
install_requires = f.read().splitlines()

setup(
name="python-dockercloud",
version=find_version('dockercloud', '__init__.py'),
packages=find_packages(),
install_requires=install_requires,
install_requires=requirements,
tests_require=test_requirements,
provides=['docker'],
include_package_data=True,
author="Docker, Inc.",
Expand Down
3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mock==1.0.1
coverage==4.0.3
nose==1.3.7

0 comments on commit 526e7cd

Please sign in to comment.