auto-editor 29.1.0__py3-none-any.whl → 29.2.0__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.
auto_editor/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "29.1.0"
1
+ __version__ = "29.2.0"
auto_editor/__main__.py CHANGED
@@ -10,7 +10,6 @@ version = __version__
10
10
 
11
11
 
12
12
  def get_binary_info():
13
- """Get the appropriate binary name and download URL for this platform."""
14
13
  system = platform.system().lower()
15
14
  machine = platform.machine().lower()
16
15
 
@@ -29,11 +28,23 @@ def get_binary_info():
29
28
  else:
30
29
  raise RuntimeError(f"Unsupported platform: {system} {machine}")
31
30
 
32
- # Use the package version to construct the download URL
33
31
  url = f"https://github.com/WyattBlue/auto-editor/releases/download/{version}/{binary_name}"
34
32
  return binary_name, local_name, url
35
33
 
36
34
 
35
+ def get_binary_version(binary_path):
36
+ try:
37
+ result = subprocess.run(
38
+ [str(binary_path), "--version"],
39
+ capture_output=True,
40
+ text=True,
41
+ timeout=5,
42
+ )
43
+ return result.stdout.strip()
44
+ except Exception:
45
+ return None
46
+
47
+
37
48
  def download_binary():
38
49
  """Download the appropriate binary from GitHub releases."""
39
50
  package_dir = Path(__file__).parent
@@ -44,7 +55,11 @@ def download_binary():
44
55
  binary_path = bin_dir / local_name
45
56
 
46
57
  if binary_path.exists():
47
- return binary_path
58
+ binary_version = get_binary_version(binary_path)
59
+ if binary_version == version:
60
+ return binary_path
61
+ print(f"Removing outdated version ({binary_version})...")
62
+ binary_path.unlink()
48
63
 
49
64
  print("Downloading auto-editor binary for your platform...")
50
65
  print(f"URL: {url}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: auto-editor
3
- Version: 29.1.0
3
+ Version: 29.2.0
4
4
  Summary: Auto-Editor: Effort free video editing!
5
5
  Author-email: WyattBlue <wyattblue@auto-editor.com>
6
6
  License-Expression: Unlicense
@@ -0,0 +1,8 @@
1
+ auto_editor/__init__.py,sha256=bZF0so812ZN8BmAaCcIfvhYAa4o6PJiZsZ2ass3PzZY,23
2
+ auto_editor/__main__.py,sha256=bKmiCKtkNjsg5tWolnj1HQDJRSFk04gTMdW0zZB8OhQ,2920
3
+ auto_editor-29.2.0.dist-info/licenses/LICENSE,sha256=yiq99pWITHfqS0pbZMp7cy2dnbreTuvBwudsU-njvIM,1210
4
+ auto_editor-29.2.0.dist-info/METADATA,sha256=sEfd2XkHdJ16RDzhefAmg92TI23GPGVYo1vodu5BkNk,5984
5
+ auto_editor-29.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ auto_editor-29.2.0.dist-info/entry_points.txt,sha256=it1HC1zBLuXcGRxIGJIJTYg2Haw_30HBNDmIl2GykgQ,58
7
+ auto_editor-29.2.0.dist-info/top_level.txt,sha256=ky1HUkqq9i034c4CUU_0wBw0xZsxxyGEak1eTbdvpyA,12
8
+ auto_editor-29.2.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- auto_editor/__init__.py,sha256=epltqK2v8l3hP7WBeSRMOsxk4pYIblrSQZswAxoJ7AI,23
2
- auto_editor/__main__.py,sha256=kMstUGOWiKY6s-vyGGf7pCgTVbBMq64BIJ9UKSsjNiQ,2570
3
- auto_editor-29.1.0.dist-info/licenses/LICENSE,sha256=yiq99pWITHfqS0pbZMp7cy2dnbreTuvBwudsU-njvIM,1210
4
- auto_editor-29.1.0.dist-info/METADATA,sha256=7gq1PDUwYSDMoKYjDEUZLsFyXn1XamG04ndGAmaZkq0,5984
5
- auto_editor-29.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- auto_editor-29.1.0.dist-info/entry_points.txt,sha256=it1HC1zBLuXcGRxIGJIJTYg2Haw_30HBNDmIl2GykgQ,58
7
- auto_editor-29.1.0.dist-info/top_level.txt,sha256=ky1HUkqq9i034c4CUU_0wBw0xZsxxyGEak1eTbdvpyA,12
8
- auto_editor-29.1.0.dist-info/RECORD,,