One-shot job `jobs/gmail-bulk-import/` wczytuje plik .mbox z Google Takeout i importuje każdą wiadomość do archiwum .eml + opcjonalnie do koperty w DB. Idempotentny (FileExistsError → skip; ON CONFLICT DO NOTHING w DB). 15 testów jednostkowych (bez DB, bez zewnętrznych serwisów) — wszystkie zielone. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
439 B
TOML
24 lines
439 B
TOML
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "gmail-bulk-import"
|
|
version = "0.1.0"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"asyncpg>=0.29",
|
|
"structlog>=24.1",
|
|
"kb-mail",
|
|
]
|
|
|
|
[project.scripts]
|
|
gmail-bulk-import = "gmail_bulk_import.importer:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|