Skip to content

Remove absolute imports to fix ansible modules #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dataikuapi/dss/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def get_client_as(self):
:return: a client through which calls will be run as the user
:rtype: :class:`dataikuapi.DSSClient`
"""
from dataikuapi.dssclient import DSSClient
from ..dssclient import DSSClient

if self.client.api_key is not None:
return DSSClient(self.client.host, self.client.api_key, extra_headers={"X-DKU-ProxyUser": self.login})
Expand Down
2 changes: 1 addition & 1 deletion dataikuapi/dss/data_collection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime

from dataikuapi.dss.dataset import DSSDataset
from .dataset import DSSDataset


class DSSDataCollectionListItem(object):
Expand Down
2 changes: 1 addition & 1 deletion dataikuapi/dss/feature_store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dataikuapi.dss.dataset import DSSDataset
from .dataset import DSSDataset


class DSSFeatureGroupListItem(object):
Expand Down
4 changes: 2 additions & 2 deletions dataikuapi/dss/mlflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import time
from datetime import datetime

from dataikuapi.dss.savedmodel import ExternalModelVersionHandler
from dataikuapi.dss.utils import DSSDatasetSelectionBuilder
from .savedmodel import ExternalModelVersionHandler
from .utils import DSSDatasetSelectionBuilder

class DSSMLflowExtension(object):
"""
Expand Down
2 changes: 1 addition & 1 deletion dataikuapi/dss/savedmodel.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

import tempfile

from dataikuapi.dss.utils import DSSDatasetSelectionBuilder
from .discussion import DSSObjectDiscussions
from .managedfolder import DSSManagedFolder
from .metrics import ComputedMetrics
from .ml import DSSMLTask
from .ml import DSSTrainedClusteringModelDetails
from .ml import DSSTrainedPredictionModelDetails
from .utils import DSSDatasetSelectionBuilder
from ..utils import _make_zipfile, dku_basestring_type

try:
Expand Down
6 changes: 3 additions & 3 deletions dataikuapi/dss/workspace.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataikuapi.dss.app import DSSApp
from dataikuapi.dss.dataset import DSSDataset
from dataikuapi.dss.wiki import DSSWikiArticle
from .app import DSSApp
from .dataset import DSSDataset
from .wiki import DSSWikiArticle


class DSSWorkspace:
Expand Down
2 changes: 1 addition & 1 deletion dataikuapi/govern/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime
from dataikuapi.govern.future import GovernFuture
from .future import GovernFuture

class GovernUser(object):
"""
Expand Down
2 changes: 1 addition & 1 deletion dataikuapi/govern/artifact.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dataikuapi.govern.blueprint import GovernBlueprintVersion
from .blueprint import GovernBlueprintVersion

class GovernArtifact(object):
"""
Expand Down
2 changes: 1 addition & 1 deletion dataikuapi/govern/artifact_search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dataikuapi.govern.artifact import GovernArtifact
from .artifact import GovernArtifact
import copy

class GovernArtifactSearchRequest(object):
Expand Down
24 changes: 12 additions & 12 deletions dataikuapi/govern_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
from requests import Session, exceptions
from requests.auth import HTTPBasicAuth

from dataikuapi.govern.future import GovernFuture
from dataikuapi.govern.admin import GovernUser, GovernGroup, GovernOwnUser, GovernGlobalApiKey, GovernGeneralSettings
from dataikuapi.govern.admin_blueprint_designer import GovernAdminBlueprintDesigner
from dataikuapi.govern.admin_custom_pages_handler import GovernAdminCustomPagesHandler
from dataikuapi.govern.admin_roles_permissions_handler import GovernAdminRolesPermissionsHandler
from dataikuapi.govern.artifact import GovernArtifact
from dataikuapi.govern.artifact_search import GovernArtifactSearchRequest
from dataikuapi.govern.blueprint import GovernBlueprintListItem, GovernBlueprint
from dataikuapi.govern.custom_page import GovernCustomPageListItem, GovernCustomPage
from dataikuapi.govern.time_series import GovernTimeSeries
from dataikuapi.govern.uploaded_file import GovernUploadedFile
from dataikuapi.utils import DataikuException
from .govern.future import GovernFuture
from .govern.admin import GovernUser, GovernGroup, GovernOwnUser, GovernGlobalApiKey, GovernGeneralSettings
from .govern.admin_blueprint_designer import GovernAdminBlueprintDesigner
from .govern.admin_custom_pages_handler import GovernAdminCustomPagesHandler
from .govern.admin_roles_permissions_handler import GovernAdminRolesPermissionsHandler
from .govern.artifact import GovernArtifact
from .govern.artifact_search import GovernArtifactSearchRequest
from .govern.blueprint import GovernBlueprintListItem, GovernBlueprint
from .govern.custom_page import GovernCustomPageListItem, GovernCustomPage
from .govern.time_series import GovernTimeSeries
from .govern.uploaded_file import GovernUploadedFile
from .utils import DataikuException


class GovernClient(object):
Expand Down