87a7d63aeb
CI / test (pull_request) Successful in 9s
CI / lint (pull_request) Successful in 4s
CI / deploy-dev (pull_request) Has been skipped
CI / build-and-push (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / grype (pull_request) Has been skipped
alembic upgrade head uses SQLAlchemy sync engine with postgresql:// URL, which requires psycopg2. The old image had it via cartsnitch-common; standalone image needs it explicit. Co-Authored-By: Paperclip <noreply@paperclip.ing>
59 lines
1.3 KiB
TOML
59 lines
1.3 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "receiptwitness"
|
|
version = "0.1.0"
|
|
description = "CartSnitch receipt/purchase history ingestion service"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"alembic>=1.13,<2.0",
|
|
"pydantic[email]>=2.0,<3.0",
|
|
"playwright>=1.49,<2.0",
|
|
"playwright-stealth>=1.0,<2.0",
|
|
"cryptography>=46.0,<47.0",
|
|
"fastapi>=0.115,<1.0",
|
|
"uvicorn[standard]>=0.30,<1.0",
|
|
"beautifulsoup4>=4.12,<5.0",
|
|
"redis>=5.0,<6.0",
|
|
"pydantic>=2.0,<3.0",
|
|
"pydantic-settings>=2.0,<3.0",
|
|
"sqlalchemy[asyncio]>=2.0,<3.0",
|
|
"asyncpg>=0.29,<1.0",
|
|
"psycopg2-binary>=2.9",
|
|
"resend>=2.0",
|
|
"python-multipart>=0.0.9",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.23",
|
|
"ruff>=0.3",
|
|
"pytest-cov>=5.0",
|
|
"fakeredis[aioredis]>=2.20",
|
|
"httpx>=0.27",
|
|
"python-multipart>=0.0.9",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/receiptwitness"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py312"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "N", "W", "UP"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.12"
|
|
strict = false
|
|
warn_return_any = true
|
|
warn_unused_ignores = true
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|