diligence/pyproject.toml
Claude aeb0b438cc Fix Windows crash: add tzdata dependency, harden timezone fallback
On Windows, Python's zoneinfo module has no system timezone database.
Without the tzdata package, ZoneInfo('UTC') raises ZoneInfoNotFoundError,
crashing both /api/points/today and /api/nutrition/today (Home and Keto
pages show 'failed to load').

Two fixes:
1. Add tzdata>=2024.1 to pyproject.toml dependencies so pip install
   pulls it automatically
2. Harden dates.py with _safe_tz() that falls back to datetime.timezone.utc
   (always available, no tzdata needed) as the ultimate fallback
2026-08-03 02:20:57 +00:00

66 lines
1.7 KiB
TOML

[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "diligence"
version = "2.0.0"
description = "Self-hosted fitness rewards platform with AI agent integration"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.11"
authors = [
{name = "DiligenceWorks Pte. Ltd.", email = "hello@diligenceworks.online"},
]
keywords = ["fitness", "self-hosted", "mcp", "ai-agent", "rewards"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
]
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
"sqlalchemy[asyncio]>=2.0.30",
"aiosqlite>=0.20.0",
"pydantic>=2.10.0",
"pydantic-settings>=2.7.0",
"python-jose[cryptography]>=3.3.0",
"bcrypt>=4.2.0",
"httpx>=0.27.0",
"python-multipart>=0.0.18",
"tzdata>=2024.1",
]
[project.optional-dependencies]
postgres = [
"asyncpg>=0.30.0",
]
mcp = [
"mcp[cli]>=1.0.0",
]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"ruff>=0.8.0",
]
[project.scripts]
diligence = "diligence.cli:main"
[project.urls]
Homepage = "https://github.com/DiligenceWorks/Diligence"
Documentation = "https://github.com/DiligenceWorks/Diligence#readme"
Repository = "https://github.com/DiligenceWorks/Diligence"
Issues = "https://github.com/DiligenceWorks/Diligence/issues"
[tool.setuptools.packages.find]
include = ["diligence*"]
[tool.setuptools.package-data]
diligence = ["frontend/**/*"]