accli 0.5.3__tar.gz → 0.5.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: accli
3
- Version: 0.5.3
3
+ Version: 0.5.5
4
4
  Summary: IIASA Accelerator Client
5
5
  Author-email: Wrufesh S <wrufesh@gmail.com>
6
6
  License: The MIT License (MIT)
@@ -616,7 +616,7 @@ class Fs:
616
616
  if not source_path.exists():
617
617
  raise ValueError("Source path does not exist")
618
618
 
619
- with open(source, 'wb') as fstream:
619
+ with open(source, 'rb') as fstream:
620
620
  if (user_token and server_url):
621
621
  Fs.write_stream_remote(fstream, dest_filepath, user_token, server_url)
622
622
  else:
@@ -92,11 +92,12 @@ def push_folder_job(dir):
92
92
 
93
93
  if presigned_push_url:
94
94
  with open(final_zip_path, 'rb') as f:
95
- requests.put(
95
+ res = requests.put(
96
96
  presigned_push_url,
97
97
  data=f,
98
98
  verify=False,
99
99
  )
100
+ res.raise_for_status()
100
101
 
101
102
 
102
103
  shutil.rmtree(repo_dir)
@@ -1,3 +1,3 @@
1
1
  # Please strictly put double quote to use this info for git tag
2
2
  # Read developer guide for git tag command with regex
3
- VERSION = "v0.5.3"
3
+ VERSION = "v0.5.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: accli
3
- Version: 0.5.3
3
+ Version: 0.5.5
4
4
  Summary: IIASA Accelerator Client
5
5
  Author-email: Wrufesh S <wrufesh@gmail.com>
6
6
  License: The MIT License (MIT)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes