PyNeoFile 0.20.4__py3-none-any.whl → 0.20.6__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyNeoFile
3
- Version: 0.20.4
3
+ Version: 0.20.6
4
4
  Summary: A tar like file format name archivefile.
5
5
  Home-page: https://github.com/GameMaker2k/PyArchiveFile
6
6
  Download-URL: https://github.com/GameMaker2k/PyArchiveFile/neo/master.tar.gz
@@ -0,0 +1,8 @@
1
+ pyneofile.py,sha256=t3WIwoiBVK31AGfQgbuXfDwkgDKifVt1n-S6ZmE1O2o,59523
2
+ pyneofile-0.20.6.data/scripts/neofile.py,sha256=X0kZrcKJsjo4K5Rp_IEpFMjQ-lu6OAhX2wDSJJPbvT4,5481
3
+ pyneofile-0.20.6.dist-info/licenses/LICENSE,sha256=G22gXt50FuCPBLneMraT2Q6-G5pAjFEqS4q9xP-DKWs,1500
4
+ pyneofile-0.20.6.dist-info/METADATA,sha256=Uwt_R8uuvCOEY6dZXEeKFlmJhpRG0dED16uDejPK3nI,723
5
+ pyneofile-0.20.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ pyneofile-0.20.6.dist-info/top_level.txt,sha256=_-bBDCun16INq_ibkGkMIpnjvoBZ3KbKcgR6meoPsb8,10
7
+ pyneofile-0.20.6.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
8
+ pyneofile-0.20.6.dist-info/RECORD,,
pyneofile.py CHANGED
@@ -60,12 +60,12 @@ __use_ini_name__ = "neofile.ini"
60
60
  __program_name__ = "PyNeoFile"
61
61
  __project__ = __program_name__
62
62
  __project_url__ = "https://github.com/GameMaker2k/PyNeoFile"
63
- __version_info__ = (0, 20, 4, "RC 1", 1)
64
- __version_date_info__ = (2025, 9, 12, "RC 1", 1)
63
+ __version_info__ = (0, 20, 6, "RC 1", 1)
64
+ __version_date_info__ = (2025, 9, 15, "RC 1", 1)
65
65
  __version_date__ = str(__version_date_info__[0]) + "." + str(
66
66
  __version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
67
67
  __revision__ = __version_info__[3]
68
- __revision_id__ = "$Id: f180beb055436d8de5973c45764bd0341867bb37 $"
68
+ __revision_id__ = "$Id: b79242bccfb046b0c29352e99b75e161278b26e1 $"
69
69
  if(__version_info__[4] is not None):
70
70
  __version_date_plusrc__ = __version_date__ + \
71
71
  "-" + str(__version_date_info__[4])
@@ -695,6 +695,14 @@ def _parse_global_header(fp, formatspecs, skipchecksum=False):
695
695
  extras.append(_read_cstring(fp, delim).decode('UTF-8'))
696
696
  checksumtype = _read_cstring(fp, delim).decode('UTF-8')
697
697
  _header_cs = _read_cstring(fp, delim).decode('UTF-8')
698
+ # --- Strict check for magic+version against formatspecs ---
699
+ exp_magic = formatspecs.get('format_magic', '')
700
+ exp_ver = _normalize_ver_digits(_ver_digits(formatspecs.get('format_ver', '001')))
701
+ expected_magicver = exp_magic + exp_ver
702
+ if str(magicver) != str(expected_magicver):
703
+ raise ValueError(
704
+ "Bad archive header: magic/version mismatch (got {!r}, expected {!r})".format(magicver, expected_magicver)
705
+ )
698
706
  return {'fencoding': fencoding, 'fnumfiles': fnumfiles, 'fostype': fostype,
699
707
  'fextradata': extras, 'fchecksumtype': checksumtype,
700
708
  'ffilelist': [], 'fformatspecs': formatspecs}
@@ -1,8 +0,0 @@
1
- pyneofile.py,sha256=ngr7s8TDGCgk2mZm63Xg_nqEgFLKty6AvsMh9dVnITo,59072
2
- pyneofile-0.20.4.data/scripts/neofile.py,sha256=X0kZrcKJsjo4K5Rp_IEpFMjQ-lu6OAhX2wDSJJPbvT4,5481
3
- pyneofile-0.20.4.dist-info/licenses/LICENSE,sha256=G22gXt50FuCPBLneMraT2Q6-G5pAjFEqS4q9xP-DKWs,1500
4
- pyneofile-0.20.4.dist-info/METADATA,sha256=biZAz-KkjvgukUfNxr88z5M-aomvFih8zPvXbW_QrmM,723
5
- pyneofile-0.20.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- pyneofile-0.20.4.dist-info/top_level.txt,sha256=_-bBDCun16INq_ibkGkMIpnjvoBZ3KbKcgR6meoPsb8,10
7
- pyneofile-0.20.4.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
8
- pyneofile-0.20.4.dist-info/RECORD,,