primitive 0.1.49__py3-none-any.whl → 0.1.51__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@primitive.tech>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.1.49"
4
+ __version__ = "0.1.51"
@@ -18,12 +18,16 @@ class ProvisionPython:
18
18
  proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True, text=True)
19
19
  proc.wait()
20
20
 
21
- cmd = f"{sys.executable} -m virtualenv {self.source_dir / "venv"}"
22
- proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True, text=True)
21
+ cmd = f"{sys.executable} -m virtualenv venv"
22
+ proc = Popen(
23
+ cmd, cwd=self.source_dir, stdout=PIPE, stderr=PIPE, shell=True, text=True
24
+ )
23
25
  proc.wait()
24
26
 
25
- cmd = f"source {self.source_dir / "venv" / "bin" / "activate"} && env"
26
- proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True, text=True)
27
+ cmd = "source venv/bin/activate && env"
28
+ proc = Popen(
29
+ cmd, cwd=self.source_dir, stdout=PIPE, stderr=PIPE, shell=True, text=True
30
+ )
27
31
  proc.wait()
28
32
 
29
33
  # Read the output and decode it
@@ -33,12 +37,14 @@ class ProvisionPython:
33
37
  env_vars = {}
34
38
 
35
39
  for line in output.splitlines():
40
+ print(f"line: {line}")
36
41
  key, value = line.split("=", 1)
37
42
  env_vars[key] = value
38
43
 
39
44
  cmd = f"python -m pip install -r {self.requirements_path}"
40
45
  proc = Popen(
41
46
  cmd,
47
+ cwd=self.source_dir,
42
48
  env=env_vars,
43
49
  stdout=PIPE,
44
50
  stderr=PIPE,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: primitive
3
- Version: 0.1.49
3
+ Version: 0.1.51
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,11 +1,11 @@
1
- primitive/__about__.py,sha256=aO6YNrTRSljxoBea_ti6ZOsiQThBvDI_TcvwjL4xAjQ,130
1
+ primitive/__about__.py,sha256=xg0IJsnpoT84BNuhv7UHfrQMQ16qXth5s1sU-m7gI-I,130
2
2
  primitive/__init__.py,sha256=bwKdgggKNVssJFVPfKSxqFMz4IxSr54WWbmiZqTMPNI,106
3
3
  primitive/cli.py,sha256=VQPSewC6ouGdEG9W1gllawGJTydpOY0Lzg7LURXcqQg,2374
4
4
  primitive/client.py,sha256=vSJkifx450czuLvu0f2o-viSCC0p2f1UicA-2P5cJAw,2188
5
5
  primitive/agent/actions.py,sha256=R5ZvXD75H5XWdTvpmL5PDoSYnj7MCcfaDNQC0cqW-FU,5477
6
6
  primitive/agent/commands.py,sha256=-dVDilELfkGfbZB7qfEPs77Dm1oT62qJj4tsIk4KoxI,254
7
7
  primitive/agent/process.py,sha256=rbRB8MOxhTtMax-182Cwy_KP2I1fPyXLiu9p_GIE15Y,2451
8
- primitive/agent/provision.py,sha256=L0N0uxyhToK4yklYO4exdlJRUk3SpK5h4DJ9egB35w4,1531
8
+ primitive/agent/provision.py,sha256=08AzH_atBadW2VMZaK8oU7aSvOOTnptuok7jWeT2pRA,1632
9
9
  primitive/agent/runner.py,sha256=tYjzQyfd1rEAmkBQ5C8ghryR2weH9J0hTXSPS5ijapM,6490
10
10
  primitive/agent/uploader.py,sha256=ngbynmQzxKVNMp7VWkTWW7vZIN_rnnRzYC6OAL21n1k,1378
11
11
  primitive/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -46,8 +46,8 @@ primitive/utils/memory_size.py,sha256=4xfha21kW82nFvOTtDFx9Jk2ZQoEhkfXii-PGNTpIU
46
46
  primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,370
47
47
  primitive/utils/shell.py,sha256=-7UjQaBqSGHzEEyX8pNjeYFFP0P3lVnDV0OkgPz1qHU,1050
48
48
  primitive/utils/verible.py,sha256=r7c_hfqvL0UicMmIzK3Cy_BfZI1ZpcfBeLqKEWFWqJo,2252
49
- primitive-0.1.49.dist-info/METADATA,sha256=Jc5CpG79Qfsp2IhMbRdrcm_Lg_RxUOLLOoqs2HaHJ8E,3782
50
- primitive-0.1.49.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
51
- primitive-0.1.49.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
52
- primitive-0.1.49.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
53
- primitive-0.1.49.dist-info/RECORD,,
49
+ primitive-0.1.51.dist-info/METADATA,sha256=m0J0LbMcBQ_4JKP6IHrvJyJaS4HmYjPe85Ai4u-UaTI,3782
50
+ primitive-0.1.51.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
51
+ primitive-0.1.51.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
52
+ primitive-0.1.51.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
53
+ primitive-0.1.51.dist-info/RECORD,,