chipfoundry-cli 2.2.0__tar.gz → 2.2.2__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: 2.2.0
3
+ Version: 2.2.2
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
@@ -3260,25 +3260,33 @@ def precheck(project_root, skip_checks, magic_drc, checks, dry_run):
3260
3260
 
3261
3261
  docker_image = 'chipfoundry/mpw_precheck:latest'
3262
3262
 
3263
- docker_cmd = [
3264
- 'docker', 'run', '--rm',
3265
- '-v', f'{project_root_path}:{project_root_path}',
3266
- '-v', f'{pdk_root}:{pdk_root}',
3267
- docker_image,
3268
- 'cf-precheck',
3263
+ precheck_args = [
3269
3264
  '-i', str(project_root_path),
3270
3265
  '-p', str(pdk_path),
3271
3266
  '-c', '/opt/caravel',
3272
3267
  ]
3273
3268
 
3274
3269
  if magic_drc:
3275
- docker_cmd.append('--magic-drc')
3270
+ precheck_args.append('--magic-drc')
3276
3271
 
3277
3272
  if skip_checks:
3278
- docker_cmd.extend(['--skip-checks'] + list(skip_checks))
3273
+ precheck_args.extend(['--skip-checks'] + list(skip_checks))
3279
3274
 
3280
3275
  if checks:
3281
- docker_cmd.extend(list(checks))
3276
+ precheck_args.extend(list(checks))
3277
+
3278
+ inner_cmd = 'pip3 install --upgrade -q --root-user-action=ignore cf-precheck 2>/dev/null && cf-precheck ' + ' '.join(precheck_args)
3279
+
3280
+ docker_cmd = [
3281
+ 'docker', 'run', '--rm',
3282
+ '-v', f'{project_root_path}:{project_root_path}',
3283
+ '-v', f'{pdk_root}:{pdk_root}',
3284
+ '-e', f'PDK_ROOT={pdk_root}',
3285
+ '-e', f'PDK_PATH={pdk_path}',
3286
+ '-e', f'PDKPATH={pdk_path}',
3287
+ docker_image,
3288
+ 'bash', '-c', inner_cmd,
3289
+ ]
3282
3290
 
3283
3291
  checks_display = ', '.join(checks) if checks else 'All checks'
3284
3292
  console.print("\n" + "="*60)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "chipfoundry-cli"
3
- version = "2.2.0"
3
+ version = "2.2.2"
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