sdfgen 0.13.0__cp310-cp310-musllinux_1_2_x86_64.whl → 0.13.2__cp310-cp310-musllinux_1_2_x86_64.whl

Sign up to get free protection for your applications and to get access to all the features.
Binary file
sdfgen/module.py CHANGED
@@ -10,6 +10,7 @@ from enum import IntEnum
10
10
  class SddfStatus(IntEnum):
11
11
  OK = 0,
12
12
  DUPLICATE_CLIENT = 1,
13
+ INVALID_CLIENT = 2,
13
14
  NET_DUPLICATE_COPIER = 100,
14
15
  NET_DUPLICATE_MAC_ADDR = 101,
15
16
 
@@ -453,7 +454,7 @@ class Sddf:
453
454
  ret = libsdfgen.sdfgen_sddf_init(c_char_p(path.encode("utf-8")))
454
455
  if not ret:
455
456
  # TODO: report more information
456
- raise Exception("sDDF failed to initialise")
457
+ raise Exception(f"sDDF failed to initialise with path '{path}'")
457
458
 
458
459
  def __del__(self):
459
460
  # TODO
@@ -492,6 +493,8 @@ class Sddf:
492
493
  return
493
494
  elif ret == SddfStatus.DUPLICATE_CLIENT:
494
495
  raise Exception(f"duplicate client given '{client}'")
496
+ elif ret == SddfStatus.INVALID_CLIENT:
497
+ raise Exception(f"invalid client given '{client}'")
495
498
  else:
496
499
  raise Exception(f"internal error: {ret}")
497
500
 
@@ -536,6 +539,8 @@ class Sddf:
536
539
  return
537
540
  elif ret == SddfStatus.DUPLICATE_CLIENT:
538
541
  raise Exception(f"duplicate client given '{client}'")
542
+ elif ret == SddfStatus.INVALID_CLIENT:
543
+ raise Exception(f"invalid client given '{client}'")
539
544
  else:
540
545
  raise Exception(f"internal error: {ret}")
541
546
 
@@ -572,6 +577,8 @@ class Sddf:
572
577
  return
573
578
  elif ret == SddfStatus.DUPLICATE_CLIENT:
574
579
  raise Exception(f"duplicate client given '{client}'")
580
+ elif ret == SddfStatus.INVALID_CLIENT:
581
+ raise Exception(f"invalid client given '{client}'")
575
582
  else:
576
583
  raise Exception(f"internal error: {ret}")
577
584
 
@@ -631,6 +638,8 @@ class Sddf:
631
638
  return
632
639
  elif ret == SddfStatus.DUPLICATE_CLIENT:
633
640
  raise Exception(f"duplicate client given '{client}'")
641
+ elif ret == SddfStatus.INVALID_CLIENT:
642
+ raise Exception(f"invalid client given '{client}'")
634
643
  elif ret == SddfStatus.NET_DUPLICATE_COPIER:
635
644
  raise Exception(f"duplicate copier given '{copier}'")
636
645
  elif ret == SddfStatus.NET_DUPLICATE_MAC_ADDR:
@@ -670,6 +679,8 @@ class Sddf:
670
679
  return
671
680
  elif ret == SddfStatus.DUPLICATE_CLIENT:
672
681
  raise Exception(f"duplicate client given '{client}'")
682
+ elif ret == SddfStatus.INVALID_CLIENT:
683
+ raise Exception(f"invalid client given '{client}'")
673
684
  else:
674
685
  raise Exception(f"internal error: {ret}")
675
686
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sdfgen
3
- Version: 0.13.0
3
+ Version: 0.13.2
4
4
  Summary: Automating the creation of Microkit System Description Files (SDF)
5
5
  Home-page: https://github.com/au-ts/microkit_sdf_gen
6
6
  Description-Content-Type: text/markdown
@@ -0,0 +1,8 @@
1
+ csdfgen.cpython-310-x86_64-linux-gnu.so,sha256=rFN29KhE1VvLmp34gn1RQqS7RRC6ex1jKyHGsLApIxg,3821448
2
+ sdfgen/module.py,sha256=pEH9h6wjXS9uWelDZX5SAe7_PeKwgcuIEaZxaeJA2kc,26850
3
+ sdfgen/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ sdfgen/__init__.py,sha256=qFoYMCiM89s1BduC2hWsDRa3kGhvmJcxJsaHMWLhf1g,131
5
+ sdfgen-0.13.2.dist-info/METADATA,sha256=YDaYTn_TYQ8Xoe_rDGs-XvkuERruntyE9CvD1Y83coM,5905
6
+ sdfgen-0.13.2.dist-info/RECORD,,
7
+ sdfgen-0.13.2.dist-info/top_level.txt,sha256=M3gUW9vTMij10peQKgv1Qs0jZkdsk_PG0REFxuv6jNY,15
8
+ sdfgen-0.13.2.dist-info/WHEEL,sha256=G6WAJh_GXUMYPkzQt82j5xHS9Nx3k6AYK5BZjp4Pr1U,112
@@ -1,8 +0,0 @@
1
- csdfgen.cpython-310-x86_64-linux-gnu.so,sha256=cWzGLle17exqk8QRkXrOtZgDb_kArJqI36t1La02Gn0,3746296
2
- sdfgen/module.py,sha256=O_-r_xy2Ff-1esvlMSHzZ3N42fcQeaAROX4Nym9okII,26211
3
- sdfgen/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- sdfgen/__init__.py,sha256=qFoYMCiM89s1BduC2hWsDRa3kGhvmJcxJsaHMWLhf1g,131
5
- sdfgen-0.13.0.dist-info/METADATA,sha256=68lsAq62TVRE-5y7jTOyNJ0AoezTpOD5mNgsChJ6DkM,5905
6
- sdfgen-0.13.0.dist-info/RECORD,,
7
- sdfgen-0.13.0.dist-info/top_level.txt,sha256=M3gUW9vTMij10peQKgv1Qs0jZkdsk_PG0REFxuv6jNY,15
8
- sdfgen-0.13.0.dist-info/WHEEL,sha256=G6WAJh_GXUMYPkzQt82j5xHS9Nx3k6AYK5BZjp4Pr1U,112