Skip to content

Commit

Permalink
Bump version to 0.5.0rc4
Browse files Browse the repository at this point in the history
  • Loading branch information
mmourafiq committed Jul 4, 2019
1 parent 2925c3f commit 183f310
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
14 changes: 10 additions & 4 deletions polyaxon_client/api_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ApiConfig(object):

def __init__(self,
host=None,
port=None,
http_port=None,
ws_port=None,
token=None,
Expand All @@ -39,10 +40,15 @@ def __init__(self,
raise PolyaxonClientException(
'Api config requires at least a host if not running in-cluster.')

self.http_port = http_port or settings.HTTP_PORT or (settings.DEFAULT_HTTPS_PORT
if self.use_https
else settings.DEFAULT_HTTP_PORT)
self.ws_port = ws_port or settings.WS_PORT or self.http_port
self.port = port
if port:
self.http_port = port
self.ws_port = port
else:
self.http_port = http_port or settings.HTTP_PORT or (settings.DEFAULT_HTTPS_PORT
if self.use_https
else settings.DEFAULT_HTTP_PORT)
self.ws_port = ws_port or settings.WS_PORT or self.http_port
self.version = version or settings.API_VERSION
self.internal_header = None

Expand Down
2 changes: 2 additions & 0 deletions polyaxon_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def __init__(self,
api_config=None,
host=None,
token=None,
port=None,
http_port=None,
ws_port=None,
use_https=False,
Expand All @@ -38,6 +39,7 @@ def __init__(self,
timeout=None):

self._api_config = api_config or ApiConfig(host=host,
port=port,
http_port=http_port,
ws_port=ws_port,
token=token,
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r requirements-base.txt

-e git+https://github.com/polyaxon/polyaxon-schemas.git@master#egg=polyaxon-schemas==0.5.0rc2
-e git+https://github.com/polyaxon/polyaxon-schemas.git@master#egg=polyaxon-schemas==0.5.0rc5
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r requirements-base.txt

polyaxon-schemas==0.5.0rc2
polyaxon-schemas==0.5.0rc5
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def run_tests(self):


setup(name='polyaxon-client',
version='0.5.0rc2',
version='0.5.0rc5',
description='Python client to interact with Polyaxon API.',
long_description=read_readme(),
long_description_content_type="text/markdown",
Expand Down Expand Up @@ -55,7 +55,7 @@ def run_tests(self):
'kubernetes',
],
install_requires=[
"polyaxon-schemas==0.5.0rc2",
"polyaxon-schemas==0.5.0rc5",
"polystores>=0.1.9",
"psutil==5.4.7",
"requests>=2.20.0",
Expand Down

0 comments on commit 183f310

Please sign in to comment.