Skip to content

Commit 600e3b5

Browse files
committed
Switch to SemVar versioning
1 parent f6db6c6 commit 600e3b5

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

auto_editor/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
__version__ = "24.31.1"
2-
version = "24w31a"
1+
__version__ = "25.0.0rc1"

auto_editor/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def main() -> None:
303303
)
304304

305305
if args.version:
306-
print(f"{auto_editor.version} ({auto_editor.__version__})")
306+
print(auto_editor.__version__)
307307
return
308308

309309
if args.debug and not args.input:
@@ -314,7 +314,7 @@ def main() -> None:
314314
print(f"OS: {plat.system()} {plat.release()} {plat.machine().lower()}")
315315
print(f"Python: {plat.python_version()}")
316316
print(f"PyAV: {av.__version__}")
317-
print(f"Auto-Editor: {auto_editor.version}")
317+
print(f"Auto-Editor: {auto_editor.__version__}")
318318
return
319319

320320
if not args.input:

auto_editor/analyze.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from av.audio.fifo import AudioFifo
1313
from av.subtitles.subtitle import AssSubtitle
1414

15-
from auto_editor import version
15+
from auto_editor import __version__
1616
from auto_editor.utils.subtitle_tools import convert_ass_to_text
1717

1818
if TYPE_CHECKING:
@@ -211,7 +211,7 @@ def all(self) -> NDArray[np.bool_]:
211211

212212
def read_cache(self, tag: str, obj: dict[str, Any]) -> None | np.ndarray:
213213
workfile = os.path.join(
214-
os.path.dirname(self.temp), f"ae-{version}", "cache.npz"
214+
os.path.dirname(self.temp), f"ae-{__version__}", "cache.npz"
215215
)
216216

217217
try:
@@ -228,7 +228,7 @@ def read_cache(self, tag: str, obj: dict[str, Any]) -> None | np.ndarray:
228228
return npzfile[key]
229229

230230
def cache(self, tag: str, obj: dict[str, Any], arr: np.ndarray) -> np.ndarray:
231-
workdur = os.path.join(os.path.dirname(self.temp), f"ae-{version}")
231+
workdur = os.path.join(os.path.dirname(self.temp), f"ae-{__version__}")
232232
if not os.path.exists(workdur):
233233
os.mkdir(workdur)
234234

auto_editor/subcommands/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def main(sys_args: list[str] = sys.argv[1:]) -> None:
7070
env["@levels"] = Levels(src, tb, bar, temp, log)
7171
env["@filesetup"] = FileSetup(src, strict, tb, bar, temp, log)
7272

73-
print(f"Auto-Editor {auto_editor.version} ({auto_editor.__version__})")
73+
print(f"Auto-Editor {auto_editor.__version__}")
7474
text = None
7575

7676
try:

0 commit comments

Comments
 (0)