Skip to content

Commit 183f310

Browse files
committed
Bump version to 0.5.0rc4
1 parent 2925c3f commit 183f310

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

polyaxon_client/api_config.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class ApiConfig(object):
1414

1515
def __init__(self,
1616
host=None,
17+
port=None,
1718
http_port=None,
1819
ws_port=None,
1920
token=None,
@@ -39,10 +40,15 @@ def __init__(self,
3940
raise PolyaxonClientException(
4041
'Api config requires at least a host if not running in-cluster.')
4142

42-
self.http_port = http_port or settings.HTTP_PORT or (settings.DEFAULT_HTTPS_PORT
43-
if self.use_https
44-
else settings.DEFAULT_HTTP_PORT)
45-
self.ws_port = ws_port or settings.WS_PORT or self.http_port
43+
self.port = port
44+
if port:
45+
self.http_port = port
46+
self.ws_port = port
47+
else:
48+
self.http_port = http_port or settings.HTTP_PORT or (settings.DEFAULT_HTTPS_PORT
49+
if self.use_https
50+
else settings.DEFAULT_HTTP_PORT)
51+
self.ws_port = ws_port or settings.WS_PORT or self.http_port
4652
self.version = version or settings.API_VERSION
4753
self.internal_header = None
4854

polyaxon_client/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def __init__(self,
2626
api_config=None,
2727
host=None,
2828
token=None,
29+
port=None,
2930
http_port=None,
3031
ws_port=None,
3132
use_https=False,
@@ -38,6 +39,7 @@ def __init__(self,
3839
timeout=None):
3940

4041
self._api_config = api_config or ApiConfig(host=host,
42+
port=port,
4143
http_port=http_port,
4244
ws_port=ws_port,
4345
token=token,

requirements/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-r requirements-base.txt
22

3-
-e git+https://github.com/polyaxon/polyaxon-schemas.git@master#egg=polyaxon-schemas==0.5.0rc2
3+
-e git+https://github.com/polyaxon/polyaxon-schemas.git@master#egg=polyaxon-schemas==0.5.0rc5

requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-r requirements-base.txt
22

3-
polyaxon-schemas==0.5.0rc2
3+
polyaxon-schemas==0.5.0rc5

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def run_tests(self):
2424

2525

2626
setup(name='polyaxon-client',
27-
version='0.5.0rc2',
27+
version='0.5.0rc5',
2828
description='Python client to interact with Polyaxon API.',
2929
long_description=read_readme(),
3030
long_description_content_type="text/markdown",
@@ -55,7 +55,7 @@ def run_tests(self):
5555
'kubernetes',
5656
],
5757
install_requires=[
58-
"polyaxon-schemas==0.5.0rc2",
58+
"polyaxon-schemas==0.5.0rc5",
5959
"polystores>=0.1.9",
6060
"psutil==5.4.7",
6161
"requests>=2.20.0",

0 commit comments

Comments
 (0)