service-capacity-modeling 0.3.57__py3-none-any.whl → 0.3.58__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.
@@ -40,7 +40,7 @@ def build_command(family: str, params: Dict[str, Any], output_path: Path) -> lis
40
40
  return cmd
41
41
 
42
42
 
43
- def main(debug: bool = True, execute: bool = False):
43
+ def main(debug: bool = True, execute: bool = False, force: bool = False):
44
44
  expected_path = (
45
45
  Path(__file__).resolve().parent.parent / "hardware/profiles/shapes/aws"
46
46
  )
@@ -51,7 +51,7 @@ def main(debug: bool = True, execute: bool = False):
51
51
  missing_families = {
52
52
  family: params
53
53
  for family, params in INSTANCE_TYPES.items()
54
- if not (expected_path / f"auto_{family}.json").exists()
54
+ if force or not (expected_path / f"auto_{family}.json").exists()
55
55
  }
56
56
 
57
57
  if not missing_families:
@@ -87,5 +87,6 @@ if __name__ == "__main__":
87
87
  # Parse arguments to determine whether to execute commands
88
88
  execute_mode = "--execute" in sys.argv
89
89
  debug_mode = "--debug" in sys.argv or not execute_mode
90
+ force_mode = "--force" in sys.argv
90
91
 
91
- main(debug=debug_mode, execute=execute_mode)
92
+ main(debug=debug_mode, execute=execute_mode, force=force_mode)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: service-capacity-modeling
3
- Version: 0.3.57
3
+ Version: 0.3.58
4
4
  Summary: Contains utilities for modeling capacity for pluggable workloads
5
5
  Author: Joseph Lynch
6
6
  Author-email: josephl@netflix.com
@@ -67,11 +67,11 @@ service_capacity_modeling/models/org/netflix/zookeeper.py,sha256=buYv400R8_KCF4Y
67
67
  service_capacity_modeling/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
68
68
  service_capacity_modeling/tools/auto_shape.py,sha256=Rk5Fjrw2susVL8It_J2KUADoMGBN6N394fcThdl62Ng,14672
69
69
  service_capacity_modeling/tools/fetch_pricing.py,sha256=SHOtFaPr61op2bnY9i_g_1-d-Nz2rV8c7Jwsye2R49s,3763
70
- service_capacity_modeling/tools/generate_missing.py,sha256=WN7Y0iPjelJu9d2Yq5dcu_EBIQPX2VxKgOou4NMNOM4,2860
70
+ service_capacity_modeling/tools/generate_missing.py,sha256=uvr9fQanx3bm4KTneH-x7EOQvO7cVV0i9gdQvArPCuY,2947
71
71
  service_capacity_modeling/tools/instance_families.py,sha256=e9JWSIdljSmHI8Nb2MI5Ld9JqQ7WdOtPtV7g3oR7ZiU,7764
72
- service_capacity_modeling-0.3.57.dist-info/licenses/LICENSE,sha256=nl_Lt5v9VvJ-5lWJDT4ddKAG-VZ-2IaLmbzpgYDz2hU,11343
73
- service_capacity_modeling-0.3.57.dist-info/METADATA,sha256=tr5ozlxdOKouYczdfdH_nz6Vp_Ldi8EzE8BKy2so6HQ,9590
74
- service_capacity_modeling-0.3.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
75
- service_capacity_modeling-0.3.57.dist-info/entry_points.txt,sha256=ZsjzpG5SomWpT1zCE19n1uSXKH2gTI_yc33sdl0vmJg,146
76
- service_capacity_modeling-0.3.57.dist-info/top_level.txt,sha256=H8XjTCLgR3enHq5t3bIbxt9SeUkUT8HT_SDv2dgIT_A,26
77
- service_capacity_modeling-0.3.57.dist-info/RECORD,,
72
+ service_capacity_modeling-0.3.58.dist-info/licenses/LICENSE,sha256=nl_Lt5v9VvJ-5lWJDT4ddKAG-VZ-2IaLmbzpgYDz2hU,11343
73
+ service_capacity_modeling-0.3.58.dist-info/METADATA,sha256=I7I4UO18FYRZ-LP5hGDhVFP_4w_zQrEKKh-WphQroKE,9590
74
+ service_capacity_modeling-0.3.58.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
75
+ service_capacity_modeling-0.3.58.dist-info/entry_points.txt,sha256=ZsjzpG5SomWpT1zCE19n1uSXKH2gTI_yc33sdl0vmJg,146
76
+ service_capacity_modeling-0.3.58.dist-info/top_level.txt,sha256=H8XjTCLgR3enHq5t3bIbxt9SeUkUT8HT_SDv2dgIT_A,26
77
+ service_capacity_modeling-0.3.58.dist-info/RECORD,,