cpp-pd-code-simplify-interface 0.1.0__py3-none-any.whl → 0.1.1__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.
@@ -436,6 +436,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
436
436
  if args.remove_crossings:
437
437
  remove_crossings = [int(token) for token in re.findall(r"-?\d+", args.remove_crossings)]
438
438
 
439
+ exit_code = 0
439
440
  if args.pd_file:
440
441
  lines = []
441
442
  for line in pathlib.Path(args.pd_file).read_text(encoding="utf-8").splitlines():
@@ -456,6 +457,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
456
457
  )
457
458
  )
458
459
  except Exception as exc:
460
+ exit_code = 2
459
461
  batch_payload.append({"error": str(exc)})
460
462
  payload: Any = batch_payload
461
463
  else:
@@ -467,7 +469,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
467
469
  )
468
470
 
469
471
  print(json.dumps(payload, indent=2))
470
- return 0
472
+ return exit_code
471
473
 
472
474
 
473
475
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cpp-pd-code-simplify-interface
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python interface for cpp-pd-code-simplify with runtime C++ compilation.
5
5
  License-Expression: MIT
6
6
  Author: GGN_2015
@@ -1,11 +1,11 @@
1
1
  cpp_pd_code_simplify_interface/__init__.py,sha256=aaNwD--zgQX13xiU1hpuvgXy8vVTFGRk-r5zLm8zIRY,447
2
2
  cpp_pd_code_simplify_interface/__main__.py,sha256=fdA1QWBe5LNX0fbtaJXa1-dwEhrg_4sS_5UnjaajcMo,80
3
- cpp_pd_code_simplify_interface/main.py,sha256=WUCkkUpJo1vm8Y7Wmfv3Ab6dDMU4kEvyMeTWiDHA4zk,16471
3
+ cpp_pd_code_simplify_interface/main.py,sha256=WzXyd08Fo2zsVxJn0E6lrQD5KMttxIEIKD9TOMO3GzM,16527
4
4
  cpp_pd_code_simplify_interface/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
- cpp_pd_code_simplify_interface-0.1.0.dist-info/entry_points.txt,sha256=ThorC4Enxp317TKITsXm9pE0gUp7pt-pP6Dl5mEPUR8,91
6
- cpp_pd_code_simplify_interface-0.1.0.dist-info/METADATA,sha256=x2DUbWcTMurcjF8zJUQI1_6gHB2scsCA47ABE8KT0zk,2516
7
- cpp_pd_code_simplify_interface-0.1.0.dist-info/WHEEL,sha256=eY7nduwzv-ldUxpzbRlxwvC693Hg6PX8bWDjEHjZ_dk,88
5
+ cpp_pd_code_simplify_interface-0.1.1.dist-info/entry_points.txt,sha256=ThorC4Enxp317TKITsXm9pE0gUp7pt-pP6Dl5mEPUR8,91
6
+ cpp_pd_code_simplify_interface-0.1.1.dist-info/METADATA,sha256=0bCnhEvtBE0usciMtHeewd8Xqc7NTbZPJKiTk-2uAjg,2516
7
+ cpp_pd_code_simplify_interface-0.1.1.dist-info/WHEEL,sha256=eY7nduwzv-ldUxpzbRlxwvC693Hg6PX8bWDjEHjZ_dk,88
8
8
  cpp_pd_code_simplify_interface/data/include/pdcode_simplify/pdcode_simplify.hpp,sha256=Ei2uKlmPxHrK7-uBiJfJB1zJE_lffmzm4s-qecVdI6k,4015
9
9
  cpp_pd_code_simplify_interface/data/src/native_interface.cpp,sha256=_YIi9ZN5-tsKhxCsCwAR3xQ7NL6tCsOnf4oJuQF2qmo,6709
10
10
  cpp_pd_code_simplify_interface/data/src/pdcode_simplify.cpp,sha256=jNH-678Jg4i3DA-CPcdiShks8EEcXMjtva0NN9L9E3g,58276
11
- cpp_pd_code_simplify_interface-0.1.0.dist-info/RECORD,,
11
+ cpp_pd_code_simplify_interface-0.1.1.dist-info/RECORD,,