PyNeoFile 0.20.4__py3-none-any.whl → 0.20.8__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.
- {pyneofile-0.20.4.dist-info → pyneofile-0.20.8.dist-info}/METADATA +1 -1
- pyneofile-0.20.8.dist-info/RECORD +8 -0
- pyneofile.py +11 -3
- pyneofile-0.20.4.dist-info/RECORD +0 -8
- {pyneofile-0.20.4.data → pyneofile-0.20.8.data}/scripts/neofile.py +0 -0
- {pyneofile-0.20.4.dist-info → pyneofile-0.20.8.dist-info}/WHEEL +0 -0
- {pyneofile-0.20.4.dist-info → pyneofile-0.20.8.dist-info}/licenses/LICENSE +0 -0
- {pyneofile-0.20.4.dist-info → pyneofile-0.20.8.dist-info}/top_level.txt +0 -0
- {pyneofile-0.20.4.dist-info → pyneofile-0.20.8.dist-info}/zip-safe +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
pyneofile.py,sha256=TSFWMZPfx0UD5E2Up8Mt6S_gGpuJImqZQganRYJzDac,59523
|
|
2
|
+
pyneofile-0.20.8.data/scripts/neofile.py,sha256=X0kZrcKJsjo4K5Rp_IEpFMjQ-lu6OAhX2wDSJJPbvT4,5481
|
|
3
|
+
pyneofile-0.20.8.dist-info/licenses/LICENSE,sha256=G22gXt50FuCPBLneMraT2Q6-G5pAjFEqS4q9xP-DKWs,1500
|
|
4
|
+
pyneofile-0.20.8.dist-info/METADATA,sha256=oCVEbV9ag9qoh0Sr7YAKBifnAjLi9z2c3izUHQ1BRFQ,723
|
|
5
|
+
pyneofile-0.20.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
+
pyneofile-0.20.8.dist-info/top_level.txt,sha256=_-bBDCun16INq_ibkGkMIpnjvoBZ3KbKcgR6meoPsb8,10
|
|
7
|
+
pyneofile-0.20.8.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
8
|
+
pyneofile-0.20.8.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,
|
|
64
|
-
__version_date_info__ = (2025, 9,
|
|
63
|
+
__version_info__ = (0, 20, 8, "RC 1", 1)
|
|
64
|
+
__version_date_info__ = (2025, 9, 16, "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:
|
|
68
|
+
__revision_id__ = "$Id: 9d99dc742fb061f1486f483f42d795ebfa1f77c8 $"
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|