- Implemented ProcessSession, ProcessLog, and TemperatureReading models for tracking tempering processes. - Created Recipe and RecipePhase models for managing chocolate tempering recipes. - Developed SystemConfiguration, ErrorLog, and Backup models for system settings and error tracking. - Introduced User and UserRole models for user management and authentication. - Added basic structure for schemas and tests.
161 lines
3.5 KiB
TOML
161 lines
3.5 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "chocolate-tempering-machine"
|
|
version = "0.1.0"
|
|
description = "Industrial chocolate tempering machine control system"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
license = {text = "MIT"}
|
|
authors = [
|
|
{name = "Tempering Machine Team", email = "team@tempering.com"},
|
|
]
|
|
keywords = [
|
|
"chocolate",
|
|
"tempering",
|
|
"industrial-control",
|
|
"modbus",
|
|
"fastapi",
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Manufacturing",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
]
|
|
dependencies = [
|
|
# Web Framework
|
|
"fastapi>=0.104.1",
|
|
"uvicorn[standard]>=0.24.0",
|
|
"pydantic>=2.5.0",
|
|
"pydantic-settings>=2.1.0",
|
|
|
|
# Hardware Communication
|
|
"pymodbus>=3.6.0",
|
|
"pyserial>=3.5",
|
|
|
|
# Async Framework
|
|
"asyncio-mqtt>=0.16.0",
|
|
"aiofiles>=23.2.0",
|
|
"aioredis>=2.0.1",
|
|
|
|
# Database
|
|
"sqlalchemy>=2.0.23",
|
|
"alembic>=1.12.1",
|
|
"sqlite3",
|
|
|
|
# State Management
|
|
"python-statemachine>=2.1.2",
|
|
|
|
# Configuration & Validation
|
|
"pydantic>=2.5.0",
|
|
"pydantic-settings>=2.1.0",
|
|
"python-dotenv>=1.0.0",
|
|
|
|
# Logging & Monitoring
|
|
"structlog>=23.2.0",
|
|
"prometheus-client>=0.19.0",
|
|
|
|
# Message Queue
|
|
"redis>=5.0.1",
|
|
"celery>=5.3.4",
|
|
|
|
# Utilities
|
|
"typer>=0.9.0",
|
|
"rich>=13.7.0",
|
|
"httpx>=0.25.2",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
# Testing
|
|
"pytest>=7.4.3",
|
|
"pytest-asyncio>=0.21.1",
|
|
"pytest-mock>=3.12.0",
|
|
"factory-boy>=3.3.0",
|
|
"httpx>=0.25.2",
|
|
|
|
# Code Quality
|
|
"black>=23.11.0",
|
|
"isort>=5.12.0",
|
|
"flake8>=6.1.0",
|
|
"mypy>=1.7.1",
|
|
|
|
# Development Tools
|
|
"pre-commit>=3.5.0",
|
|
"watchdog>=3.0.0",
|
|
]
|
|
hardware = [
|
|
# Hardware-specific dependencies for production
|
|
"RPi.GPIO>=0.7.1; platform_machine=='armv7l'",
|
|
"gpiozero>=1.6.2; platform_machine=='armv7l'",
|
|
]
|
|
|
|
[project.scripts]
|
|
tempering-machine = "tempering_machine.cli:main"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/tempering_machine"]
|
|
|
|
[tool.hatch.envs.default]
|
|
dependencies = [
|
|
"pytest",
|
|
"pytest-asyncio",
|
|
]
|
|
|
|
[tool.black]
|
|
line-length = 88
|
|
target-version = ['py311']
|
|
include = '\.pyi?$'
|
|
extend-exclude = '''
|
|
/(
|
|
# directories
|
|
\.eggs
|
|
| \.git
|
|
| \.hg
|
|
| \.mypy_cache
|
|
| \.tox
|
|
| \.venv
|
|
| build
|
|
| dist
|
|
)/
|
|
'''
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
multi_line_output = 3
|
|
include_trailing_comma = true
|
|
force_grid_wrap = 0
|
|
use_parentheses = true
|
|
ensure_newline_before_comments = true
|
|
line_length = 88
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
disallow_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
check_untyped_defs = true
|
|
disallow_untyped_decorators = true
|
|
no_implicit_optional = true
|
|
warn_redundant_casts = true
|
|
warn_unused_ignores = true
|
|
warn_no_return = true
|
|
warn_unreachable = true
|
|
strict_equality = true
|
|
|
|
[tool.pytest.ini_options]
|
|
minversion = "7.0"
|
|
addopts = "-ra -q --strict-markers --strict-config"
|
|
testpaths = ["tests"]
|
|
asyncio_mode = "auto"
|
|
markers = [
|
|
"unit: marks tests as unit tests",
|
|
"integration: marks tests as integration tests",
|
|
"hardware: marks tests requiring hardware",
|
|
"slow: marks tests as slow running",
|
|
] |