mntm-asset-packer 1.1.3__py3-none-any.whl → 1.1.5__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.
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mntm-asset-packer
3
- Version: 1.1.3
3
+ Version: 1.1.5
4
4
  Summary: An improved asset packer script to make the process of creating and packing asset packs for the Momentum firmware easier.
5
5
  Author-email: notnotnescap <nescap@tuta.io>
6
- Requires-Python: >=3.11
7
- Requires-Dist: heatshrink2>=0.13.0
8
- Requires-Dist: pillow>=11.2.1
6
+ Requires-Python: >=3.10
7
+ Requires-Dist: heatshrink2>=0.1.0
8
+ Requires-Dist: pillow>=3.4.0
9
9
  Description-Content-Type: text/markdown
10
10
 
11
11
  # mntm-asset-packer
@@ -66,6 +66,9 @@ If you run the script directly, replace `mntm-asset-packer` with `python3 mntm_a
66
66
  `mntm-asset-packer help`
67
67
  : Displays a detailed help message with all available commands.
68
68
 
69
+ `mntm-asset-packer --version`
70
+ : Displays the version of the asset packer.
71
+
69
72
  `mntm-asset-packer create <Asset Pack Name>`
70
73
  : Creates a directory with the correct file structure to start a new asset pack.
71
74
 
@@ -0,0 +1,5 @@
1
+ mntm_asset_packer.py,sha256=TvZctZblwOZFfMx95ScAtvm4aAPcZpA_o7o51M8yAFE,27208
2
+ mntm_asset_packer-1.1.5.dist-info/METADATA,sha256=wwsj-E7PtJkCPiiDlUpWkaNHPSza2ftAgOIJcVBAuXE,3694
3
+ mntm_asset_packer-1.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4
+ mntm_asset_packer-1.1.5.dist-info/entry_points.txt,sha256=CF05qVMVPPNhTroKeH_kkKqVgG-mJ-Q0mSAZHpfxkr0,61
5
+ mntm_asset_packer-1.1.5.dist-info/RECORD,,
mntm_asset_packer.py CHANGED
@@ -29,6 +29,9 @@ Usage :
29
29
  \033[32mmntm-asset-packer \033[0;33;1mhelp\033[0m
30
30
  \033[3mDisplays this message
31
31
  \033[0m
32
+ \033[32mmntm-asset-packer \033[0;33;1m--version\033[0m
33
+ \033[3mDisplays the version of the asset packer
34
+ \033[0m
32
35
  \033[32mmntm-asset-packer \033[0;33;1mcreate <Asset Pack Name>\033[0m
33
36
  \033[3mCreates a directory with the correct file structure that can be used to prepare for the packing process.
34
37
  \033[0m
@@ -81,7 +84,13 @@ Active cooldown: 0
81
84
  Bubble slots: 0
82
85
  """
83
86
 
84
- VERSION = importlib.metadata.version("mntm-asset-packer")
87
+
88
+ try:
89
+ VERSION = importlib.metadata.version("mntm-asset-packer")
90
+ except importlib.metadata.PackageNotFoundError:
91
+ VERSION = "1.1.5 (standalone mode)"
92
+ # this means the script is being used directly with python
93
+ # instead of using the python package
85
94
 
86
95
 
87
96
  def convert_to_bm(img: "Image.Image | pathlib.Path") -> bytes:
@@ -655,7 +664,7 @@ def main() -> None:
655
664
  """Main function."""
656
665
  if len(sys.argv) <= 1:
657
666
  # If no arguments are provided, pack all
658
- here = pathlib.Path(__file__).absolute().parent
667
+ here = pathlib.Path.cwd()
659
668
  start = time.perf_counter()
660
669
  pack_all_asset_packs(here, here / "asset_packs", logger=print)
661
670
  end = time.perf_counter()
@@ -679,7 +688,7 @@ def main() -> None:
679
688
 
680
689
  case "pack":
681
690
  if len(sys.argv) == 3:
682
- here = pathlib.Path(__file__).absolute().parent
691
+ here = pathlib.Path.cwd()
683
692
  start = time.perf_counter()
684
693
 
685
694
  if sys.argv[2] == "all":
@@ -702,7 +711,7 @@ def main() -> None:
702
711
 
703
712
  case "recover":
704
713
  if len(sys.argv) == 3:
705
- here = pathlib.Path(__file__).absolute().parent
714
+ here = pathlib.Path.cwd()
706
715
  start = time.perf_counter()
707
716
 
708
717
  if sys.argv[2] == "all":
@@ -1,5 +0,0 @@
1
- mntm_asset_packer.py,sha256=0wSoBAX9JRgwnWrEiMls6_YMpoJv1v-LPF4YPNXlIdg,26940
2
- mntm_asset_packer-1.1.3.dist-info/METADATA,sha256=OZTt7_-bEkH9Pd17zQqRV6SnjbX80MzMaEQaPzyjT6E,3621
3
- mntm_asset_packer-1.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4
- mntm_asset_packer-1.1.3.dist-info/entry_points.txt,sha256=CF05qVMVPPNhTroKeH_kkKqVgG-mJ-Q0mSAZHpfxkr0,61
5
- mntm_asset_packer-1.1.3.dist-info/RECORD,,