Skip to content

Commit

Permalink
bug_fix: initiate multipart gcs
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-ya committed May 21, 2024
1 parent 7334216 commit 6d1568c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion outpostcli/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cli_version = "0.0.43"
cli_version = "0.0.44"
CLI_BINARY_NAME = "outpostcli"
6 changes: 5 additions & 1 deletion outpostcli/lfs/storage_class/gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,18 @@ def gen_upload_specific_url(signed_url: str, upload_id: str):
return f"{signed_url}&uploadId={upload_id}"


def gen_initiate_multipart_url(signed_url: str):
return f"{signed_url}&uploads"


def gcs_multipart_upload(msg: Dict[str, Any]):
oid = msg["oid"]
filepath = msg["path"]

_log.info(msg)
post_url = msg["action"]["href"]

upload_id = initiate_multipart_upload(post_url)
upload_id = initiate_multipart_upload(gen_initiate_multipart_url(post_url))

header = msg["action"]["header"]
chunk_size = int(header.pop("chunk_size"))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "outpostcli"
version = "0.0.43"
version = "0.0.44"
description = "CLI for Outpost"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="outpostcli",
version="0.0.43",
version="0.0.44",
py_modules=["outpostcli"],
install_requires=["Click", "outpostkit"],
entry_points={
Expand Down

0 comments on commit 6d1568c

Please sign in to comment.