Step 1 of moving the repo to Python with declarative rules. - core/spec/form.yaml: every question (how it is found in an export), every answer and what it is coded as, missing answers, email redaction, burn order, first-dragon pools. - core/atlas/coding.py reads it and replaces core/python/clean.py (python -m atlas.coding). - tests/core/test_coding.py: 16 rule tests, one hand-written row per rule, checking the rules are right rather than only that JS and Python agree. - analysis/stats/analyze.py takes the colours and missing answers from the spec instead of its own copy; the daily update job codes rows through the package. - pyproject.toml for the package; pyyaml and pytest added to requirements. The coded runs are byte-identical to before (5,988 runs); all parity checks still match. Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
641 B
TOML
26 lines
641 B
TOML
[build-system]
|
|
requires = ["setuptools>=61"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "threshing-atlas"
|
|
version = "0.2.0"
|
|
description = "Route probabilities and path finding for the Dragonkind threshing"
|
|
license = { text = "MIT" }
|
|
requires-python = ">=3.10"
|
|
dependencies = ["pandas>=2.0", "numpy>=1.24", "scipy>=1.10", "openpyxl>=3.1", "pypdf>=4.0", "pyyaml>=6.0"]
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=7", "scikit-image>=0.20"]
|
|
|
|
[tool.setuptools]
|
|
package-dir = { "" = "core" }
|
|
packages = ["atlas"]
|
|
|
|
[tool.setuptools.package-data]
|
|
atlas = []
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
pythonpath = ["core"]
|