auto-editor 29.0.0__tar.gz → 29.0.2__tar.gz
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-29.0.0/src/auto_editor.egg-info → auto_editor-29.0.2}/PKG-INFO +2 -4
- auto_editor-29.0.2/auto_editor/__init__.py +1 -0
- auto_editor-29.0.2/auto_editor/__main__.py +91 -0
- auto_editor-29.0.2/auto_editor/cli.py +4 -0
- {auto_editor-29.0.0 → auto_editor-29.0.2/auto_editor.egg-info}/PKG-INFO +2 -4
- auto_editor-29.0.2/auto_editor.egg-info/SOURCES.txt +12 -0
- auto_editor-29.0.2/auto_editor.egg-info/entry_points.txt +2 -0
- auto_editor-29.0.2/auto_editor.egg-info/top_level.txt +1 -0
- {auto_editor-29.0.0 → auto_editor-29.0.2}/pyproject.toml +11 -7
- auto_editor-29.0.0/src/auto_editor.egg-info/SOURCES.txt +0 -9
- auto_editor-29.0.0/src/auto_editor.egg-info/requires.txt +0 -2
- auto_editor-29.0.0/src/auto_editor.egg-info/top_level.txt +0 -7
- {auto_editor-29.0.0 → auto_editor-29.0.2}/LICENSE +0 -0
- {auto_editor-29.0.0 → auto_editor-29.0.2}/README.md +0 -0
- {auto_editor-29.0.0/src → auto_editor-29.0.2}/auto_editor.egg-info/dependency_links.txt +0 -0
- {auto_editor-29.0.0 → auto_editor-29.0.2}/setup.cfg +0 -0
- {auto_editor-29.0.0 → auto_editor-29.0.2}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: auto-editor
|
3
|
-
Version: 29.0.
|
3
|
+
Version: 29.0.2
|
4
4
|
Summary: Auto-Editor: Effort free video editing!
|
5
5
|
Author-email: WyattBlue <wyattblue@auto-editor.com>
|
6
6
|
License-Expression: Unlicense
|
@@ -8,11 +8,9 @@ Project-URL: Bug Tracker, https://github.com/WyattBlue/auto-editor/issues
|
|
8
8
|
Project-URL: Source Code, https://github.com/WyattBlue/auto-editor
|
9
9
|
Project-URL: homepage, https://auto-editor.com
|
10
10
|
Keywords: video,audio,media,editor,editing,processing,nonlinear,automatic,silence-detect,silence-removal,silence-speedup,motion-detection
|
11
|
-
Requires-Python:
|
11
|
+
Requires-Python: >=3.10
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist: numpy<3.0,>=2
|
15
|
-
Requires-Dist: av<16,>=15.0
|
16
14
|
Dynamic: license-file
|
17
15
|
|
18
16
|
<p align="center"><img src="https://auto-editor.com/img/auto-editor-banner.webp" title="Auto-Editor" width="700"></p>
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "29.0.2"
|
@@ -0,0 +1,91 @@
|
|
1
|
+
"""Main entry point for auto-editor when run as a module."""
|
2
|
+
|
3
|
+
import platform
|
4
|
+
import subprocess
|
5
|
+
import sys
|
6
|
+
import urllib.request
|
7
|
+
from pathlib import Path
|
8
|
+
|
9
|
+
from . import __version__
|
10
|
+
|
11
|
+
if __version__.startswith("29.0."):
|
12
|
+
version = "29.0.0"
|
13
|
+
else:
|
14
|
+
version = __version__
|
15
|
+
|
16
|
+
|
17
|
+
def get_binary_info():
|
18
|
+
"""Get the appropriate binary name and download URL for this platform."""
|
19
|
+
system = platform.system().lower()
|
20
|
+
machine = platform.machine().lower()
|
21
|
+
|
22
|
+
if system == "windows":
|
23
|
+
binary_name = "auto-editor-windows-amd64.exe"
|
24
|
+
local_name = "auto-editor.exe"
|
25
|
+
elif system == "darwin":
|
26
|
+
if machine == "arm64":
|
27
|
+
binary_name = "auto-editor-macos-arm64"
|
28
|
+
else:
|
29
|
+
binary_name = "auto-editor-macos-x86_64"
|
30
|
+
local_name = "auto-editor"
|
31
|
+
elif system == "linux":
|
32
|
+
binary_name = "auto-editor-linux-x86_64"
|
33
|
+
local_name = "auto-editor"
|
34
|
+
else:
|
35
|
+
raise RuntimeError(f"Unsupported platform: {system} {machine}")
|
36
|
+
|
37
|
+
# Use the package version to construct the download URL
|
38
|
+
url = f"https://github.com/WyattBlue/auto-editor/releases/download/{version}/{binary_name}"
|
39
|
+
return binary_name, local_name, url
|
40
|
+
|
41
|
+
|
42
|
+
def download_binary():
|
43
|
+
"""Download the appropriate binary from GitHub releases."""
|
44
|
+
package_dir = Path(__file__).parent
|
45
|
+
bin_dir = package_dir / "bin"
|
46
|
+
bin_dir.mkdir(parents=True, exist_ok=True)
|
47
|
+
|
48
|
+
binary_name, local_name, url = get_binary_info()
|
49
|
+
binary_path = bin_dir / local_name
|
50
|
+
|
51
|
+
if binary_path.exists():
|
52
|
+
return binary_path
|
53
|
+
|
54
|
+
print("Downloading auto-editor binary for your platform...")
|
55
|
+
print(f"URL: {url}")
|
56
|
+
|
57
|
+
try:
|
58
|
+
urllib.request.urlretrieve(url, binary_path)
|
59
|
+
binary_path.chmod(0o755) # Make executable on Unix systems
|
60
|
+
print("Download completed successfully!")
|
61
|
+
return binary_path
|
62
|
+
except Exception as e:
|
63
|
+
print(f"Error downloading binary: {e}", file=sys.stderr)
|
64
|
+
print(f"Please download manually from: {url}", file=sys.stderr)
|
65
|
+
sys.exit(1)
|
66
|
+
|
67
|
+
|
68
|
+
def main():
|
69
|
+
package_dir = Path(__file__).parent
|
70
|
+
|
71
|
+
# Determine the binary name based on platform
|
72
|
+
_, local_name, _ = get_binary_info()
|
73
|
+
binary_path = package_dir / "bin" / local_name
|
74
|
+
|
75
|
+
# Download binary if it doesn't exist
|
76
|
+
if not binary_path.exists():
|
77
|
+
binary_path = download_binary()
|
78
|
+
|
79
|
+
# Execute the binary with all arguments
|
80
|
+
try:
|
81
|
+
result = subprocess.run([str(binary_path)] + sys.argv[1:])
|
82
|
+
sys.exit(result.returncode)
|
83
|
+
except KeyboardInterrupt:
|
84
|
+
sys.exit(130)
|
85
|
+
except Exception as e:
|
86
|
+
print(f"Error running auto-editor: {e}", file=sys.stderr)
|
87
|
+
sys.exit(1)
|
88
|
+
|
89
|
+
|
90
|
+
if __name__ == "__main__":
|
91
|
+
main()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: auto-editor
|
3
|
-
Version: 29.0.
|
3
|
+
Version: 29.0.2
|
4
4
|
Summary: Auto-Editor: Effort free video editing!
|
5
5
|
Author-email: WyattBlue <wyattblue@auto-editor.com>
|
6
6
|
License-Expression: Unlicense
|
@@ -8,11 +8,9 @@ Project-URL: Bug Tracker, https://github.com/WyattBlue/auto-editor/issues
|
|
8
8
|
Project-URL: Source Code, https://github.com/WyattBlue/auto-editor
|
9
9
|
Project-URL: homepage, https://auto-editor.com
|
10
10
|
Keywords: video,audio,media,editor,editing,processing,nonlinear,automatic,silence-detect,silence-removal,silence-speedup,motion-detection
|
11
|
-
Requires-Python:
|
11
|
+
Requires-Python: >=3.10
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist: numpy<3.0,>=2
|
15
|
-
Requires-Dist: av<16,>=15.0
|
16
14
|
Dynamic: license-file
|
17
15
|
|
18
16
|
<p align="center"><img src="https://auto-editor.com/img/auto-editor-banner.webp" title="Auto-Editor" width="700"></p>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
LICENSE
|
2
|
+
README.md
|
3
|
+
pyproject.toml
|
4
|
+
auto_editor/__init__.py
|
5
|
+
auto_editor/__main__.py
|
6
|
+
auto_editor/cli.py
|
7
|
+
auto_editor.egg-info/PKG-INFO
|
8
|
+
auto_editor.egg-info/SOURCES.txt
|
9
|
+
auto_editor.egg-info/dependency_links.txt
|
10
|
+
auto_editor.egg-info/entry_points.txt
|
11
|
+
auto_editor.egg-info/top_level.txt
|
12
|
+
tests/test.py
|
@@ -0,0 +1 @@
|
|
1
|
+
auto_editor
|
@@ -1,24 +1,28 @@
|
|
1
1
|
[build-system]
|
2
|
-
requires = ["setuptools>=77"]
|
2
|
+
requires = ["setuptools>=77", "wheel"]
|
3
|
+
build-backend = "setuptools.build_meta"
|
3
4
|
|
4
5
|
[project]
|
5
6
|
name = "auto-editor"
|
6
|
-
version = "29.0.
|
7
|
+
version = "29.0.2"
|
7
8
|
description = "Auto-Editor: Effort free video editing!"
|
8
9
|
readme = "README.md"
|
9
10
|
license = "Unlicense"
|
10
11
|
authors = [{ name = "WyattBlue", email = "wyattblue@auto-editor.com" }]
|
11
|
-
requires-python = ">=3.10
|
12
|
-
dependencies = [
|
13
|
-
"numpy>=2,<3.0",
|
14
|
-
"av>=15.0,<16",
|
15
|
-
]
|
12
|
+
requires-python = ">=3.10"
|
13
|
+
dependencies = []
|
16
14
|
keywords = [
|
17
15
|
"video", "audio", "media", "editor", "editing",
|
18
16
|
"processing", "nonlinear", "automatic", "silence-detect",
|
19
17
|
"silence-removal", "silence-speedup", "motion-detection",
|
20
18
|
]
|
21
19
|
|
20
|
+
[project.scripts]
|
21
|
+
auto-editor = "auto_editor.cli:cli"
|
22
|
+
|
23
|
+
[tool.setuptools.packages.find]
|
24
|
+
include = ["auto_editor*"]
|
25
|
+
|
22
26
|
[project.urls]
|
23
27
|
"Bug Tracker" = "https://github.com/WyattBlue/auto-editor/issues"
|
24
28
|
"Source Code" = "https://github.com/WyattBlue/auto-editor"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|