polyaxon 2.2.0.post1__py3-none-any.whl → 2.2.0rc0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polyaxon/_cli/artifacts.py +12 -16
- polyaxon/_cli/components.py +12 -16
- polyaxon/_cli/config.py +0 -31
- polyaxon/_cli/dashboard.py +2 -15
- polyaxon/_cli/init.py +1 -1
- polyaxon/_cli/models.py +12 -16
- polyaxon/_cli/operations.py +32 -53
- polyaxon/_cli/project_versions.py +5 -26
- polyaxon/_cli/projects.py +9 -23
- polyaxon/_cli/run.py +9 -29
- polyaxon/_client/project.py +22 -22
- polyaxon/_client/run.py +25 -44
- polyaxon/_compiler/contexts/ray_job.py +2 -4
- polyaxon/_env_vars/getters/owner_entity.py +2 -4
- polyaxon/_env_vars/getters/project.py +2 -4
- polyaxon/_env_vars/getters/run.py +2 -2
- polyaxon/_k8s/converter/common/accelerators.py +0 -3
- polyaxon/_k8s/converter/converters/ray_job.py +2 -4
- polyaxon/_k8s/custom_resources/setter.py +1 -1
- polyaxon/_sdk/schemas/v1_settings_catalog.py +0 -1
- polyaxon/_sdk/schemas/v1_team.py +0 -1
- polyaxon/_sdk/schemas/v1_user.py +2 -1
- polyaxon/_utils/fqn_utils.py +2 -25
- polyaxon/pkg.py +1 -1
- {polyaxon-2.2.0.post1.dist-info → polyaxon-2.2.0rc0.dist-info}/METADATA +7 -7
- {polyaxon-2.2.0.post1.dist-info → polyaxon-2.2.0rc0.dist-info}/RECORD +30 -31
- polyaxon/_client/mixin.py +0 -39
- {polyaxon-2.2.0.post1.dist-info → polyaxon-2.2.0rc0.dist-info}/LICENSE +0 -0
- {polyaxon-2.2.0.post1.dist-info → polyaxon-2.2.0rc0.dist-info}/WHEEL +0 -0
- {polyaxon-2.2.0.post1.dist-info → polyaxon-2.2.0rc0.dist-info}/entry_points.txt +0 -0
- {polyaxon-2.2.0.post1.dist-info → polyaxon-2.2.0rc0.dist-info}/top_level.txt +0 -0
polyaxon/_client/mixin.py
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
from polyaxon import settings
|
2
|
-
from polyaxon._client.client import PolyaxonClient
|
3
|
-
from polyaxon._schemas.client import ClientConfig
|
4
|
-
from polyaxon._utils.fqn_utils import split_owner_team_space
|
5
|
-
|
6
|
-
|
7
|
-
class ClientMixin:
|
8
|
-
@property
|
9
|
-
def client(self):
|
10
|
-
if self._client:
|
11
|
-
return self._client
|
12
|
-
self._client = PolyaxonClient()
|
13
|
-
return self._client
|
14
|
-
|
15
|
-
def reset_client(self, **kwargs):
|
16
|
-
if not settings.CLIENT_CONFIG.in_cluster:
|
17
|
-
self._client = PolyaxonClient(
|
18
|
-
ClientConfig.patch_from(settings.CLIENT_CONFIG, **kwargs)
|
19
|
-
)
|
20
|
-
|
21
|
-
@property
|
22
|
-
def owner(self) -> str:
|
23
|
-
return self._owner
|
24
|
-
|
25
|
-
@property
|
26
|
-
def team(self):
|
27
|
-
return self._team
|
28
|
-
|
29
|
-
@property
|
30
|
-
def project(self) -> str:
|
31
|
-
return self._project
|
32
|
-
|
33
|
-
def set_project(self, project: str):
|
34
|
-
self._project = project
|
35
|
-
|
36
|
-
def set_owner(self, owner: str):
|
37
|
-
owner, team = split_owner_team_space(owner)
|
38
|
-
self._owner = owner
|
39
|
-
self._team = team
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|