chipfoundry-cli 0.1.3__tar.gz → 0.1.4__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: chipfoundry-cli
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: CLI tool to automate ChipFoundry project submission to SFTP server
5
5
  Home-page: https://chipfoundry.io
6
6
  License: Apache-2.0
@@ -142,6 +142,9 @@ def push(project_root, sftp_host, sftp_username, sftp_key, sftp_password, projec
142
142
  # Determine which authentication method to use
143
143
  key_path = sftp_key
144
144
  password = sftp_password
145
+ # Always resolve key_path to absolute path if set
146
+ if key_path:
147
+ key_path = os.path.abspath(os.path.expanduser(key_path))
145
148
  if not key_path and not password:
146
149
  if os.path.exists(DEFAULT_SSH_KEY):
147
150
  key_path = DEFAULT_SSH_KEY
@@ -295,6 +298,9 @@ def pull(project_name, output_dir, sftp_host, sftp_username, sftp_key, sftp_pass
295
298
  sftp_key = config.get("sftp_key")
296
299
  key_path = sftp_key
297
300
  password = sftp_password
301
+ # Always resolve key_path to absolute path if set
302
+ if key_path:
303
+ key_path = os.path.abspath(os.path.expanduser(key_path))
298
304
  if not key_path and not password:
299
305
  if os.path.exists(DEFAULT_SSH_KEY):
300
306
  key_path = DEFAULT_SSH_KEY
@@ -385,6 +391,9 @@ def status(sftp_host, sftp_username, sftp_key, sftp_password):
385
391
  sftp_key = config.get("sftp_key")
386
392
  key_path = sftp_key
387
393
  password = sftp_password
394
+ # Always resolve key_path to absolute path if set
395
+ if key_path:
396
+ key_path = os.path.abspath(os.path.expanduser(key_path))
388
397
  if not key_path and not password:
389
398
  if os.path.exists(DEFAULT_SSH_KEY):
390
399
  key_path = DEFAULT_SSH_KEY
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "chipfoundry-cli"
3
- version = "0.1.3"
3
+ version = "0.1.4"
4
4
  description = "CLI tool to automate ChipFoundry project submission to SFTP server"
5
5
  authors = ["ChipFoundry <marwan.abbas@chipfoundry.io>"]
6
6
  readme = "README.md"
File without changes