-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (108 loc) · 2.78 KB
/
pyproject.toml
File metadata and controls
122 lines (108 loc) · 2.78 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "oaparkingmonitor"
version = "0.1.0"
description = "YOLOv11-based parking detection system optimized for Mac Mini M1"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "OrangeAd dev - Tam Nhu (Kai) Tran", email = "tam@orangead.ca"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.12"
dependencies = [
# Core FastAPI stack
"fastapi>=0.104.0",
"uvicorn[standard]>=0.24.0",
"python-multipart>=0.0.6",
"websockets>=12.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"httpx>=0.25.0",
"jinja2>=3.1.0",
# AI/ML Core - PyTorch with MPS support
"torch>=2.1.0",
"torchvision>=0.16.0",
"ultralytics>=8.2.0",
# Computer Vision
"opencv-python>=4.8.0",
"numpy>=1.24.0,<2.0.0", # Pin numpy for compatibility
"pillow>=10.0.0",
# Apple Silicon Optimization
"coremltools>=7.0",
# System Monitoring
"psutil>=5.9.0",
# Database
"sqlalchemy>=2.0.0",
"aiosqlite>=0.19.0",
"alembic>=1.13.0",
"greenlet>=3.0.0",
# Configuration and Logging
"pyyaml>=6.0.0",
"structlog>=23.0.0",
"python-dotenv>=1.0.0",
# Testing dependencies moved to dev section
"uuid-utils>=0.11.0",
]
[project.optional-dependencies]
dev = [
# Testing
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"pytest-benchmark>=4.0.0",
"pytest-mock>=3.12.0",
# Code Quality
"black>=23.0.0",
"isort>=5.12.0",
"ruff>=0.1.0",
"mypy>=1.6.0",
"pre-commit>=3.0.0",
# Development Tools
"ipython>=8.0.0",
"jupyter>=1.0.0",
# Performance Profiling
"py-spy>=0.3.14",
"memory-profiler>=0.61.0",
]
# Production optimization dependencies
production = [
"gunicorn>=21.0.0", # Alternative ASGI server
"prometheus-client>=0.19.0", # Metrics export
]
# Apple Silicon specific optimizations
apple-silicon = [
"accelerate>=0.24.0", # Hugging Face acceleration
"torchaudio>=2.1.0", # Audio processing (if needed)
]
[project.scripts]
parking-monitor = "src.main:main"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.black]
line-length = 88
target-version = ['py312']
[tool.isort]
profile = "black"
line_length = 88
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"