Skip to content

Release and Packaging

SergeyGer edited this page Nov 23, 2026 · 1 revision

Release and packaging

TopoMarket is released by implementation step with semantic tags v0.1.0 ... v0.8.0; release dates and schedules are not published in repository content.

Release checks

topomarket release-check
topomarket release-check --json --skip-smoke

The command verifies version consistency (package, pyproject.toml, CHANGELOG.md), repository hygiene (no tracked private inputs/credentials; .gitignore coverage), packaged JSON resources and canonical/packaged profile-template parity, the pinned dependency lock, committed synthetic showcase hashes, deterministic synthetic fixture regeneration and offline public-mode smoke commands (demo, synthetic, validate, status, app.py fallback).

Dependency lock

requirements.lock pins the runtime and development toolchain. Regenerate it in a fresh environment:

python -m venv /tmp/tm-lock
/tmp/tm-lock/bin/pip install --upgrade pip
/tmp/tm-lock/bin/pip install -e ".[dev]"
/tmp/tm-lock/bin/pip freeze --exclude-editable | grep -v '^topomarket' | sort > requirements.lock

The optional [ui] extra (Streamlit) is installed separately for dashboard runs.

Distributions

python -m pip install build twine
python -m build
python -m twine check dist/*

The wheel contains the data, topology and config JSON resources, never private inputs. An installed wheel resolves the bundled profiles without a source checkout and never writes into site-packages. Release assets (sdist + wheel) are attached to GitHub releases.

Release workflow

.github/workflows/release.yml runs on pull requests, main pushes and version tags: locked dependency install, compile/lint/format, public tests with test-report.xml, offline release checks, sdist/wheel build, twine check, wheel-content/private-input guard, and retained artifacts (dist/*, test-report.xml, release-check-report.json).

Public walkthrough

The committed synthetic showcase/ fixture (5,673 sessions with engineered drawdowns, frozen score file and evaluation report, synthetic manifest) allows a reviewer to launch the dashboard, follow a replay and inspect an alert without a key:

python -m pip install -e ".[ui]"
streamlit run app.py -- --profile private --data-dir showcase

See the repository's docs/WALKTHROUGH.md for the 60-90 second script and notes. The fixture is deterministic and regenerable via scripts/build_showcase.py; its hashes are verified by release-check. Synthetic data must never be presented as genuine market history, and genuine data/charts require a review of provider terms in NOTICE.md.

Release runbook

docs/RELEASING.md contains the full checklist: version bump, lock regeneration, hygiene, fixture determinism, public smoke, artifacts, private rehearsal, protected PR merge, tag, release notes from CHANGELOG.md, issue/milestone closure and Wiki roadmap update.

Clone this wiki locally