forked from cartsnitch/cartsnitch
75be08ccf3
Add guaranteed UAT test user (uat@cartsnitch.com / CartSnitch-UAT-2026!) seeded via Better-Auth bcrypt path. Idempotent — re-running the seed skips the user if it already exists. - Add 002_better_auth_tables Alembic migration (sessions, accounts, verifications tables + email_verified/image on users) - Add bcrypt>=4.0,<6.0 to [seed] extra (CTO feedback: was bcrypt>=0.15,<1.0 which matches zero installable versions) - Fix account_id to use str(UAT_USER_ID) to match migration convention (CTO feedback: was using UAT_EMAIL which was inconsistent) - Document credentials in common/README.md under Test Users Co-Authored-By: Paperclip <noreply@paperclip.ing>
49 lines
1017 B
TOML
49 lines
1017 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "cartsnitch-common"
|
|
version = "2026.321.0"
|
|
description = "Shared models, schemas, and utilities for CartSnitch services"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"sqlalchemy[asyncio]>=2.0,<3.0",
|
|
"alembic>=1.13,<2.0",
|
|
"pydantic[email]>=2.0,<3.0",
|
|
"pydantic-settings>=2.0,<3.0",
|
|
"asyncpg>=0.29,<1.0",
|
|
"redis>=5.0,<6.0",
|
|
"psycopg2-binary>=2.9,<3.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.23",
|
|
"ruff>=0.4",
|
|
"mypy>=1.10",
|
|
"faker>=33.0,<34.0",
|
|
]
|
|
seed = [
|
|
"faker>=33.0,<34.0",
|
|
"bcrypt>=4.0,<6.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
cartsnitch-seed = "cartsnitch_common.seed.__main__:main"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/cartsnitch_common"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py312"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "SIM"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
asyncio_mode = "auto"
|