Skip to content

Commit f958250

Browse files
authored
CI-1012 - Fix upload when given an s3 path, add include archived flag in process (#186)
* remove expand user from upload * include archived * bump
1 parent d1b4277 commit f958250

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

cirro/file_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def upload_directory(directory: PathLike,
151151

152152
for file in files:
153153
if isinstance(file, str):
154-
file_path = Path(directory, file).expanduser()
154+
file_path = Path(directory, file)
155155
else:
156-
file_path = file.expanduser()
156+
file_path = file
157157

158158
# Check if is present in the file_path_map
159159
# if it is, use the mapped value as the destination path

cirro/services/process.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ class ProcessService(BaseService):
1515
"""
1616
Service for interacting with the Process endpoints
1717
"""
18-
def list(self, process_type: Executor = None) -> List[Process]:
18+
def list(self, process_type: Executor = None, include_archived=False) -> List[Process]:
1919
"""
2020
Retrieves a list of available processes
2121
2222
Args:
2323
process_type (`cirro_api_client.v1.models.Executor`): Optional process type (INGEST, CROMWELL, or NEXTFLOW)
24+
include_archived: Whether to include archived processes in the list (default False)
2425
"""
25-
processes = get_processes.sync(client=self._api_client)
26+
processes = get_processes.sync(client=self._api_client, include_archived=include_archived)
2627
return [p for p in processes if not process_type or process_type == p.executor]
2728

2829
def get(self, process_id: str) -> ProcessDetail:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cirro"
3-
version = "1.9.4"
3+
version = "1.9.5"
44
description = "CLI tool and SDK for interacting with the Cirro platform"
55
authors = ["Cirro Bio <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)