-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (30 loc) · 1.05 KB
/
setup.py
File metadata and controls
36 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python3
"""Setup script for StreamTV"""
import sys
from pathlib import Path
def main():
"""Setup StreamTV"""
print("Setting up StreamTV...")
# Check Python version
if sys.version_info < (3, 10):
print("Error: Python 3.10 or higher is required")
sys.exit(1)
# Create config file if it doesn't exist
config_path = Path("config.yaml")
if not config_path.exists():
example_path = Path("config.example.yaml")
if example_path.exists():
import shutil
shutil.copy(example_path, config_path)
print(f"Created {config_path} from example")
else:
print(f"Warning: {config_path} not found and no example available")
else:
print(f"{config_path} already exists")
print("\nSetup complete!")
print("\nNext steps:")
print("1. Install dependencies: pip install -r requirements.txt")
print("2. Edit config.yaml with your settings")
print("3. Run: python -m streamtv.main")
if __name__ == "__main__":
main()