primitive 0.1.54__tar.gz → 0.1.55__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.
- {primitive-0.1.54 → primitive-0.1.55}/PKG-INFO +1 -1
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/__about__.py +1 -1
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/agent/uploader.py +5 -2
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/files/actions.py +11 -1
- {primitive-0.1.54 → primitive-0.1.55}/.git-hooks/pre-commit +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/.gitattributes +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/.github/workflows/lint.yml +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/.github/workflows/publish.yml +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/.gitignore +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/.vscode/settings.json +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/LICENSE.txt +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/Makefile +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/README.md +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/linux setup.md +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/pyproject.toml +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/__init__.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/agent/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/agent/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/agent/process.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/agent/provision.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/agent/runner.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/auth/__init__.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/auth/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/auth/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/cli.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/client.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/daemons/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/daemons/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/daemons/launch_agents.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/daemons/launch_service.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/files/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/git/__init__.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/git/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/git/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/graphql/__init__.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/graphql/sdk.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/hardware/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/hardware/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/jobs/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/jobs/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/lint/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/lint/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/organizations/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/organizations/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/projects/__init__.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/projects/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/projects/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/sim/__init__.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/sim/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/sim/commands.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/actions.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/auth.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/cache.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/config.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/files.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/git.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/memory_size.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/printer.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/shell.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/src/primitive/utils/verible.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/tests/__init__.py +0 -0
- {primitive-0.1.54 → primitive-0.1.55}/uv.lock +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: primitive
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.55
|
4
4
|
Project-URL: Documentation, https://github.com//primitivecorp/primitive-cli#readme
|
5
5
|
Project-URL: Issues, https://github.com//primitivecorp/primitive-cli/issues
|
6
6
|
Project-URL: Source, https://github.com//primitivecorp/primitive-cli
|
@@ -15,8 +15,10 @@ class Uploader:
|
|
15
15
|
):
|
16
16
|
self.primitive = primitive
|
17
17
|
|
18
|
-
def upload_file(self, path: Path, prefix: str) -> str:
|
19
|
-
file_upload_response = self.primitive.files.file_upload(
|
18
|
+
def upload_file(self, path: Path, prefix: str, job_run_id: str) -> str:
|
19
|
+
file_upload_response = self.primitive.files.file_upload(
|
20
|
+
path, key_prefix=prefix, job_run_id=job_run_id
|
21
|
+
)
|
20
22
|
return file_upload_response.json()["data"]["fileUpload"]["id"]
|
21
23
|
|
22
24
|
def scan(self) -> None:
|
@@ -45,6 +47,7 @@ class Uploader:
|
|
45
47
|
upload_id = self.upload_file(
|
46
48
|
file,
|
47
49
|
prefix=str(PurePath(file).relative_to(job_cache.parent).parent),
|
50
|
+
job_run_id=job_run_id,
|
48
51
|
)
|
49
52
|
|
50
53
|
if upload_id:
|
@@ -43,7 +43,13 @@ class Files(BaseAction):
|
|
43
43
|
return result
|
44
44
|
|
45
45
|
@guard
|
46
|
-
def file_upload(
|
46
|
+
def file_upload(
|
47
|
+
self,
|
48
|
+
path: Path,
|
49
|
+
is_public: bool = False,
|
50
|
+
key_prefix: str = "",
|
51
|
+
job_run_id: str = "",
|
52
|
+
):
|
47
53
|
file_path = str(path.resolve())
|
48
54
|
if path.exists() is False:
|
49
55
|
raise FileNotFoundError(f"File not found at {file_path}")
|
@@ -54,6 +60,8 @@ class Files(BaseAction):
|
|
54
60
|
+ file_path
|
55
61
|
+ """\", "keyPrefix": \""""
|
56
62
|
+ key_prefix
|
63
|
+
+ """\", "jobRunId": \""""
|
64
|
+
+ job_run_id
|
57
65
|
+ """\" } } }"""
|
58
66
|
) # noqa
|
59
67
|
|
@@ -63,6 +71,8 @@ class Files(BaseAction):
|
|
63
71
|
+ file_path
|
64
72
|
+ """\", "keyPrefix": \""""
|
65
73
|
+ key_prefix
|
74
|
+
+ """\", "jobRunId": \""""
|
75
|
+
+ job_run_id
|
66
76
|
+ """\" } } }"""
|
67
77
|
) # noqa
|
68
78
|
body = {
|
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
|
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|