feat(config): add project scaffolding and config module (closes #2)

Set up Python package with pyproject.toml, venv, and runtime/test
dependencies. Implement config module that loads config.yaml +
secrets.yaml with deep-merge override, validates required fields,
rejects credentials in config.yaml, applies defaults, and returns a
frozen Config dataclass. 25 tests across 7 test classes.
This commit is contained in:
AlexKucera committed 2026-06-03 11:04:44 +02:00
1 parent b916c57c1c
commit 6c049d1301
19 files changed
+514

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "librofm-downloader"
version = "0.1.0"
description = "Download owned audiobooks from your Libro.fm account"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
dependencies = [
"httpx>=0.27",
"pyyaml>=6.0",
"rich>=13.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-mock>=3.12",
]
[tool.setuptools.packages.find]
include = ["librofm_downloader*"]
[tool.pytest.ini_options]
testpaths = ["tests"]