_names.py (1076B)
1 # File: _names.py 2 # Created Date: Monday November 6th 2023 3 # Author: Steven Atkinson ([email protected]) 4 5 from typing import NamedTuple as _NamedTuple, Optional as _Optional, Set as _Set 6 7 from ._version import PROTEUS_VERSION as _PROTEUS_VERSION, Version 8 9 10 class VersionAndName(_NamedTuple): 11 version: Version 12 name: str 13 other_names: _Optional[_Set[str]] 14 15 16 # From most- to the least-recently-released: 17 INPUT_BASENAMES = ( 18 VersionAndName(Version(3, 0, 0), "input.wav", {"v3_0_0.wav"}), 19 # ================================================================================== 20 # These are deprecated and will be removed in v0.11. If you still want them, you'll 21 # need to write an extension. 22 VersionAndName(Version(2, 0, 0), "v2_0_0.wav", None), 23 VersionAndName(Version(1, 1, 1), "v1_1_1.wav", None), 24 VersionAndName(Version(1, 0, 0), "v1.wav", None), 25 VersionAndName(_PROTEUS_VERSION, "Proteus_Capture.wav", None), 26 # ================================================================================== 27 ) 28 29 LATEST_VERSION = INPUT_BASENAMES[0]