File tree Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class ApiConfig(object):
14
14
15
15
def __init__ (self ,
16
16
host = None ,
17
+ port = None ,
17
18
http_port = None ,
18
19
ws_port = None ,
19
20
token = None ,
@@ -39,10 +40,15 @@ def __init__(self,
39
40
raise PolyaxonClientException (
40
41
'Api config requires at least a host if not running in-cluster.' )
41
42
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
46
52
self .version = version or settings .API_VERSION
47
53
self .internal_header = None
48
54
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def __init__(self,
26
26
api_config = None ,
27
27
host = None ,
28
28
token = None ,
29
+ port = None ,
29
30
http_port = None ,
30
31
ws_port = None ,
31
32
use_https = False ,
@@ -38,6 +39,7 @@ def __init__(self,
38
39
timeout = None ):
39
40
40
41
self ._api_config = api_config or ApiConfig (host = host ,
42
+ port = port ,
41
43
http_port = http_port ,
42
44
ws_port = ws_port ,
43
45
token = token ,
Original file line number Diff line number Diff line change 1
1
-r requirements-base.txt
2
2
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
Original file line number Diff line number Diff line change 1
1
-r requirements-base.txt
2
2
3
- polyaxon-schemas == 0.5.0rc2
3
+ polyaxon-schemas == 0.5.0rc5
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def run_tests(self):
24
24
25
25
26
26
setup (name = 'polyaxon-client' ,
27
- version = '0.5.0rc2 ' ,
27
+ version = '0.5.0rc5 ' ,
28
28
description = 'Python client to interact with Polyaxon API.' ,
29
29
long_description = read_readme (),
30
30
long_description_content_type = "text/markdown" ,
@@ -55,7 +55,7 @@ def run_tests(self):
55
55
'kubernetes' ,
56
56
],
57
57
install_requires = [
58
- "polyaxon-schemas==0.5.0rc2 " ,
58
+ "polyaxon-schemas==0.5.0rc5 " ,
59
59
"polystores>=0.1.9" ,
60
60
"psutil==5.4.7" ,
61
61
"requests>=2.20.0" ,
You can’t perform that action at this time.
0 commit comments