primitive 0.1.24__py3-none-any.whl → 0.1.26__py3-none-any.whl

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/__about__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Dylan Stein <dylan@steins.studio>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.1.24"
4
+ __version__ = "0.1.26"
@@ -142,15 +142,18 @@ class Agent(BaseAction):
142
142
  yaml_config = yaml.load(
143
143
  open(yaml_config_path, "r"), Loader=Loader
144
144
  )
145
- run_script_path = generate_script_from_yaml(
146
- yaml_config,
147
- slug=job_run["job"]["slug"],
148
- destination=source_dir,
149
- )
150
- cmd = (
151
- "/bin/bash",
152
- str(run_script_path.resolve()),
153
- )
145
+
146
+ job_slug = job_run["job"]["slug"]
147
+ if job_slug in yaml_config:
148
+ run_script_path = generate_script_from_yaml(
149
+ yaml_config,
150
+ slug=job_slug,
151
+ destination=source_dir,
152
+ )
153
+ cmd = (
154
+ "/bin/bash",
155
+ str(run_script_path.resolve()),
156
+ )
154
157
 
155
158
  match job_run["job"]["slug"]:
156
159
  case "lint":
primitive/sim/actions.py CHANGED
@@ -188,9 +188,9 @@ class Sim(BaseAction):
188
188
  # Write header file
189
189
  header_path = path.parent / f"{file_name}.header.vcd.json"
190
190
  with open(header_path, "w") as f:
191
- f.write(json.dumps(metadata))
191
+ f.write(json.dumps(header))
192
192
 
193
193
  # Write data file
194
194
  data_path = path.parent / f"{file_name}.data.vcd.json"
195
195
  with open(data_path, "w") as f:
196
- f.write(json.dumps(metadata))
196
+ f.write(json.dumps(data))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: primitive
3
- Version: 0.1.24
3
+ Version: 0.1.26
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
@@ -1,8 +1,8 @@
1
- primitive/__about__.py,sha256=_w49f95cSqBz80O_5aXINkQBIbfMdD--GZTies4DMl0,129
1
+ primitive/__about__.py,sha256=a19O8WnOn3ROV23kEwlS3xrir42FlkaB8Dr-YizwN3M,129
2
2
  primitive/__init__.py,sha256=bwKdgggKNVssJFVPfKSxqFMz4IxSr54WWbmiZqTMPNI,106
3
3
  primitive/cli.py,sha256=VQPSewC6ouGdEG9W1gllawGJTydpOY0Lzg7LURXcqQg,2374
4
4
  primitive/client.py,sha256=SFPG4H2wJao8euGdnYp-l7dk_fDpWeVn2aT2WNJUAqo,2370
5
- primitive/agent/actions.py,sha256=fAuQmd5Z8FX3w1AiwLd4a_PPuBynzmdiWRmWA9ftn-8,8632
5
+ primitive/agent/actions.py,sha256=8W1T1fLQ4ArDI2BE1q1DuI7zt_2GuCjw2jYQOc0KRY0,8765
6
6
  primitive/agent/commands.py,sha256=-dVDilELfkGfbZB7qfEPs77Dm1oT62qJj4tsIk4KoxI,254
7
7
  primitive/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  primitive/auth/actions.py,sha256=N2bGcwXNsB89pzs66gF9A5_WzUScY5fhfOyWixqo2y8,1054
@@ -30,7 +30,7 @@ primitive/projects/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
30
30
  primitive/projects/actions.py,sha256=xhebDUMN9DXWvngWJyJkiijghbZwffy-JIPSsOg8agE,2061
31
31
  primitive/projects/commands.py,sha256=Fqqgpi4cm6zOgkHK--0F0hiiIj32BmgZ-h1MydmWwdE,464
32
32
  primitive/sim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- primitive/sim/actions.py,sha256=OywgMR2-ErgL3Q5YsOMoD-UxeUkZHrMoJYxxQAl5sss,7283
33
+ primitive/sim/actions.py,sha256=xLhXQKYwJ9MJH_FAexvUapdHO3VqEaRh6t5kQFR_x0U,7277
34
34
  primitive/sim/commands.py,sha256=8PaOfL1MO6qxTn7mNVRnBU1X2wa3gk_mlbAhBW6MnI0,591
35
35
  primitive/sim/vcd.py,sha256=mAbGnKWM0qzIUMkuSmO0p3sU25kOqbl31mvCsDSrXeM,22221
36
36
  primitive/utils/actions.py,sha256=HOFrmM3-0A_A3NS84MqrZ6JmQEiiPSoDqEeuu6b_qfQ,196
@@ -42,8 +42,8 @@ primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,37
42
42
  primitive/utils/shell.py,sha256=-7UjQaBqSGHzEEyX8pNjeYFFP0P3lVnDV0OkgPz1qHU,1050
43
43
  primitive/utils/verible.py,sha256=QYczN1IvxODfj4jeq0nqjFuF0Oi0Zdx-Q32ySOJgcw8,2205
44
44
  primitive/utils/yaml.py,sha256=4UP_9MXHoNb9_SCeUDm9xqYg9sHltqpVhNgsY6GNfb8,527
45
- primitive-0.1.24.dist-info/METADATA,sha256=VCnsBIbMsGhGTQzilsu0KRcSVB81L-4bW1w8KyyQSg8,1840
46
- primitive-0.1.24.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
47
- primitive-0.1.24.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
48
- primitive-0.1.24.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
49
- primitive-0.1.24.dist-info/RECORD,,
45
+ primitive-0.1.26.dist-info/METADATA,sha256=XxG6yVdKBVXh1YSM5Nj0lifEsEkGJTS5Gi5cGbETSVA,1840
46
+ primitive-0.1.26.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
47
+ primitive-0.1.26.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
48
+ primitive-0.1.26.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
49
+ primitive-0.1.26.dist-info/RECORD,,