CI / Build and push docker image (push) Successful in 3m12s
The platform now hosts multiple card games, with scopone scientifico as the first one. Rename the brand wherever it is not a game rule: - move the Python package to server/src/tavolo and update imports - rename the Postgres database/user, OIDC issuer path, client id and Redis key prefixes to tavolo (clean break: existing pgdata volumes and live games are not migrated) - rename the Cargo package to tavolo-web and set the page title to Tavolo - update docs and the Docker image path to woggioni/tavolo The scopa game term (clearing the table) in the engine, state and web UI is intentionally left untouched.
62 lines
1.4 KiB
TOML
62 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "tavolo"
|
|
version = "0.1.0"
|
|
description = "Multiplayer card-game platform backend built on the kaya framework"
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"kaya-core",
|
|
"kaya-session",
|
|
"kaya-session-redis",
|
|
"kaya-oidc",
|
|
"kaya-openapi",
|
|
"kaya-rsgi",
|
|
"granian>=2.0",
|
|
"tortoise-orm",
|
|
"aerich",
|
|
"asyncpg",
|
|
"httpx",
|
|
"PyJWT[crypto]",
|
|
"pwo",
|
|
"redis",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"mypy",
|
|
"httpx-ws",
|
|
]
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
namespaces = false
|
|
|
|
# Database migrations (aerich). See the Migrations section in README.md.
|
|
[tool.aerich]
|
|
tortoise_orm = "tavolo.aerich_config.TORTOISE_ORM"
|
|
location = "./migrations"
|
|
|
|
[tool.mypy]
|
|
python_version = "3.12"
|
|
ignore_missing_imports = true
|
|
plugins = []
|
|
|
|
# TortoiseORM auto-generates `<fk>_id` attributes on ForeignKeyField at
|
|
# runtime; without the (unavailable here) tortoise mypy plugin the stubs
|
|
# only declare the relation field. These are real attributes, not bugs.
|
|
[[tool.mypy.overrides]]
|
|
module = "tavolo.models"
|
|
disable_error_code = ["attr-defined"]
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = "tavolo.routes.*"
|
|
disable_error_code = ["attr-defined"]
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = "tavolo.game.*"
|
|
disable_error_code = ["attr-defined"]
|