Skip to content

Commit

Permalink
Fix refactoring errors with remote storage + SDK roll for platform-se…
Browse files Browse the repository at this point in the history
…rvice (#870)

* Roll to latest SDK

* Commit pdm.lock changes

---------

Co-authored-by: gaya3-zipstack <[email protected]>
  • Loading branch information
gaya3-zipstack and gaya3-zipstack authored Dec 4, 2024
1 parent 7b6b64b commit 1a7c794
Show file tree
Hide file tree
Showing 9 changed files with 196 additions and 181 deletions.
178 changes: 94 additions & 84 deletions backend/pdm.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dependencies = [
"unstract-tool-registry @ file:///${PROJECT_ROOT}/../unstract/tool-registry",
"unstract-tool-sandbox @ file:///${PROJECT_ROOT}/../unstract/tool-sandbox",
"unstract-workflow-execution @ file:///${PROJECT_ROOT}/../unstract/workflow-execution",
"unstract-filesystem @ file:///${PROJECT_ROOT}/../unstract/filesystem",
"azure-identity==1.16.0",
"azure-mgmt-apimanagement==3.0.0",
"croniter>=3.0.3",
Expand Down
8 changes: 5 additions & 3 deletions backend/utils/file_storage/helpers/common_file_helper.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import json
from typing import Any, Union

from unstract.sdk.file_storage.fs_permanent import PermanentFileStorage
from unstract.sdk.file_storage.fs_provider import FileStorageProvider
from unstract.sdk.file_storage.fs_shared_temporary import SharedTemporaryFileStorage
from unstract.sdk.file_storage import (
FileStorageProvider,
PermanentFileStorage,
SharedTemporaryFileStorage,
)
from utils.file_storage.constants import FileStorageKeys, FileStorageType

from unstract.core.utilities import UnstractUtils
Expand Down
170 changes: 85 additions & 85 deletions platform-service/pdm.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions platform-service/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ dependencies = [
"python-dotenv~=1.0",
"redis~=5.0.1",
"cryptography>=41.0.7",
"unstract-flags @ file:///${PROJECT_ROOT}/../unstract/flags",
"requests>=2.31.0",
"unstract-sdk==0.54.0rc2",
"unstract-sdk==0.54.0rc5",
"gcsfs==2024.10.0",
"unstract-flags @ file:///${PROJECT_ROOT}/../unstract/flags",
]
requires-python = ">=3.9,<3.11.1"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion unstract/filesystem/src/unstract/filesystem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This module exposes the main classes for file storage handling.
"""

from unstract.sdk.file_storage.fs_shared_temporary import SharedTemporaryFileStorage
from unstract.sdk.file_storage.shared_temporary import SharedTemporaryFileStorage

from .file_storage_types import FileStorageType
from .filesystem import FileSystem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import logging
import os

from unstract.sdk.file_storage import FileStorageProvider
from unstract.sdk.file_storage.fs_shared_temporary import SharedTemporaryFileStorage
from unstract.sdk.file_storage import FileStorageProvider, SharedTemporaryFileStorage

from .exceptions import ProviderNotFound
from .file_storage_types import FileStorageType # Import the shared enum
Expand Down
8 changes: 5 additions & 3 deletions unstract/filesystem/src/unstract/filesystem/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
import os
from typing import Any

from unstract.sdk.file_storage import FileStorageProvider
from unstract.sdk.file_storage.fs_impl import FileStorage
from unstract.sdk.file_storage.fs_permanent import PermanentFileStorage
from unstract.sdk.file_storage import (
FileStorage,
FileStorageProvider,
PermanentFileStorage,
)

from unstract.filesystem.file_storage_types import FileStorageType

Expand Down
3 changes: 2 additions & 1 deletion unstract/workflow-execution/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ dependencies = [
"unstract-core",
"unstract-tool-registry",
"unstract-tool-sandbox",
"unstract-flags"
"unstract-flags",
"unstract-filesystem"
]
requires-python = ">=3.9"
readme = "README.md"
Expand Down

0 comments on commit 1a7c794

Please sign in to comment.