1d3848f85e
- bincio/render/merge.py: parse sidecar .md files (YAML frontmatter +
markdown body), produce data/_merged/ with symlinks for unmodified
activities and real merged files for overridden ones; filters private
activities from index.json; sorts highlighted activities first.
Keeps extracted data pristine — re-running extract never clobbers edits.
- bincio/edit/: FastAPI edit server (port 4041) with embedded HTML/JS
edit UI; GET/POST /api/activity/{id} reads/writes sidecars; multipart
image upload to edits/images/{id}/; DELETE for image cleanup.
- bincio render now calls merge_all() before build/serve and symlinks
public/data → data/_merged/ instead of data/ directly.
- ActivityDetail.svelte: edit button (links to edit server) when
PUBLIC_EDIT_URL env var is set; respects custom.hide_stats to suppress
stat panels; description supports whitespace-preserving rendering.
- 15 unit tests covering parse_sidecar, apply_sidecar, and merge_all.
81 lines
1.5 KiB
TOML
81 lines
1.5 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "bincio"
|
|
version = "0.1.0"
|
|
description = "Federated, open-source, self-hosted activity stats platform"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
license = { text = "MIT" }
|
|
authors = [{ name = "Davide Brugali" }]
|
|
|
|
dependencies = [
|
|
# Parsing
|
|
"gpxpy>=1.6",
|
|
"fitdecode>=0.11",
|
|
"lxml>=5.0", # TCX (XML)
|
|
# Data
|
|
"pandas>=2.2",
|
|
# Geo
|
|
"rdp>=0.8",
|
|
# Config & CLI
|
|
"pyyaml>=6.0",
|
|
"click>=8.1",
|
|
"rich>=13.0", # pretty console output
|
|
# Schema validation
|
|
"jsonschema>=4.23",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
classifier = [
|
|
"scikit-learn>=1.5",
|
|
]
|
|
edit = [
|
|
"fastapi>=0.110",
|
|
"uvicorn[standard]>=0.29",
|
|
"python-multipart>=0.0.9",
|
|
]
|
|
dev = [
|
|
"pytest>=9.0",
|
|
"pytest-cov>=5.0",
|
|
"ruff>=0.9",
|
|
"mypy>=1.11",
|
|
"types-pyyaml",
|
|
"types-jsonschema",
|
|
]
|
|
|
|
[project.scripts]
|
|
bincio = "bincio.cli:main"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=9.0",
|
|
"pytest-cov>=5.0",
|
|
"ruff>=0.9",
|
|
"mypy>=1.11",
|
|
"types-pyyaml",
|
|
"types-jsonschema",
|
|
]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py312"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "SIM"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.12"
|
|
strict = true
|
|
ignore_missing_imports = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
markers = [
|
|
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
|
"integration: marks tests requiring real activity files",
|
|
]
|