-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_setup.py
More file actions
97 lines (78 loc) · 2.53 KB
/
Copy pathverify_setup.py
File metadata and controls
97 lines (78 loc) · 2.53 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
"""Verification script to check if the project setup is complete"""
import sys
import os
from pathlib import Path
def check_directory_structure():
"""Check if all required directories exist"""
required_dirs = [
"src",
"tests/unit",
"tests/property",
"tests/integration",
]
print("Checking directory structure...")
all_exist = True
for dir_path in required_dirs:
exists = Path(dir_path).exists()
status = "✓" if exists else "✗"
print(f" {status} {dir_path}")
all_exist = all_exist and exists
return all_exist
def check_files():
"""Check if all required files exist"""
required_files = [
"requirements.txt",
".env.example",
".gitignore",
"pytest.ini",
"README.md",
"setup.py",
]
print("\nChecking required files...")
all_exist = True
for file_path in required_files:
exists = Path(file_path).exists()
status = "✓" if exists else "✗"
print(f" {status} {file_path}")
all_exist = all_exist and exists
return all_exist
def check_dependencies():
"""Check if required packages are installed"""
required_packages = [
"telegram",
"gspread",
"pytest",
"hypothesis",
"dotenv",
]
print("\nChecking installed packages...")
all_installed = True
for package in required_packages:
try:
__import__(package)
print(f" ✓ {package}")
except ImportError:
print(f" ✗ {package}")
all_installed = False
return all_installed
def main():
"""Run all verification checks"""
print("=" * 60)
print("Telegram Expense Tracker - Setup Verification")
print("=" * 60)
dirs_ok = check_directory_structure()
files_ok = check_files()
deps_ok = check_dependencies()
print("\n" + "=" * 60)
if dirs_ok and files_ok and deps_ok:
print("✓ All checks passed! Setup is complete.")
print("\nNext steps:")
print("1. Copy .env.example to .env and configure your credentials")
print("2. Set up Google Sheets API and download credentials.json")
print("3. Start implementing the data models (Task 2)")
return 0
else:
print("✗ Some checks failed. Please review the output above.")
return 1
if __name__ == "__main__":
sys.exit(main())