[build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "sega32x-python" version = "0.1.0.dev0" description = "Readable, pure-Python Sega 32X: a cartridge-slot board for megadrive-python, with two SH-2s from sh2-python" readme = "README.md" # The floor is the newest Python PyPy supports (3.11 as of PyPy 7.3.x); raise it when PyPy does. requires-python = ">=3.11" license = { file = "LICENSE" } authors = [{ name = "alewman" }] dependencies = [ # Not on PyPI: pinned by git revision (docs/handoff-brief.md, "Decisions", 2). For # development, install the local clones at these revisions (docs/worklog.md, # "Environment"). megadrive-python 6303613: its history reset (2026-11-21), the tree of # fcef88d (the licence-clean line with main's PR #11 and #12, on m68000-python 4454d54) # less the sound referees, which left as GPL tools; the board's code is fcef88d's. # 3e2325f (2026-11-21): 6303613 plus a stopped 68000 waking for VINT again # (IPL_SYNC_WHILE_STOPPED; before, a 68000 waiting in STOP never woke). # efd80fc (2026-11-24 repin): main with save states (state version 2), the drawing switch # that gates only pixels, VDP.undrawn_frame and the SVP ROM's DMA delay; the board's # whole gate is unchanged by it (docs/status.md). "megadrive-python @ git+https://github.com/alewman/megadrive-python@efd80fcea2e1fc28a0b26396d24868233277b260", # sh2-python 15c60ab: its history reset (2026-11-21), the tree of 52a86bb (the wave-2 # provenance rewrite, on top of rung 4, the synchronous DRAM BSC and the dispatch table # built on first read). 94c58d8 is 15c60ab after sh2-python's second rewrite (2026-11-22), # which took the GPL jgenesis harness out: the same package. # 884aa30: 94c58d8 plus scripts and docs only (romsets by environment variable); src unchanged. # 8824075 (2026-11-25 repin): complete save states (ChipState.internal, R1) and DMA # address errors (vector 10, R2), both from sh2-rust's requests, which transcribes this # commit; the board's whole gate is byte-identical on it (docs/status.md). "sh2-python @ git+https://github.com/alewman/sh2-python@8824075c090795bfb43813a6def540e12095cb3e", ] [project.optional-dependencies] dev = [ "pytest>=8", # Pinned: `ruff format --check` must see the formatter the tree was formatted with. "ruff==0.16.8", ] [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/sega32x_python"] [tool.ruff] line-length = 100 target-version = "py311" extend-exclude = ["reference"] [tool.ruff.lint] select = ["E", "W", "F", "I", "UP", "B", "C4", "SIM", "PERF", "RUF"] [tool.ruff.lint.isort] known-first-party = ["sega32x_python"] [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--strict-markers -ra -m 'not slow'" markers = ["slow: runs the user's boot ROMs for seconds of emulated time (pytest -m slow)"] pythonpath = ["src", "tests"] [tool.ruff.lint.per-file-ignores] # Quirk is an immutable NamedTuple: a shared default is the point (machine.py docstring). "src/sega32x_python/machine.py" = ["RUF009"]