[build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "segacd-python" version = "0.0.0.dev0" description = "Readable, pure-Python Sega CD / Mega-CD board for megadrive-python's expansion port" readme = "README.md" # The floor is the newest Python PyPy supports (3.11 as of PyPy 7.3.23); raise it when PyPy does. # PyPy is the platform: a Mega Drive plus a second 68000 at 12.5 MHz is too much for CPython. requires-python = ">=3.11" license = { file = "LICENSE" } authors = [{ name = "alewman" }] classifiers = [ "Development Status :: 1 - Planning", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: System :: Emulators", ] dependencies = [ # The Mega Drive board this one plugs into, by git revision (private repository): # 6303613, its history reset (2026-11-21): the tree of fcef88d (b84d978, the first # revision on the restarted, document-written sound cores (docs/restart.md, # "Dependencies to follow"), with main's PR #11 and #12 merged and m68000-python # repinned to its history reset) less the sound referees, which left as GPL tools. # 3e2325f (2026-11-21): 6303613 plus a stopped 68000 waking for VINT again (its # IPL_SYNC_WHILE_STOPPED; before, a main CPU waiting in STOP never woke). # efd80fc (2026-11-23, its main): 3e2325f plus save states (state version 2, which # this board's states build on: segacd_python.state), the drawing switch gating only # the pixels (VDP.rendering, VDP.undrawn_frame: host settings, not saved), and the # SVP's ROM DMA delay (no effect here). # For development install the local clones at these revisions (docs/worklog.md). # Nothing is copied. "megadrive-python @ git+https://github.com/alewman/megadrive-python@efd80fcea2e1fc28a0b26396d24868233277b260", # The sub CPU: a second instance of the same core, pinned to exactly the revision # megadrive-python pins, so that the resolver sees one m68000-python, not two: # 4454d54, m68000-python's history reset (dd93178's tree; an unpickled CPU builds its # table, so a saved state loads in a fresh process). "m68000-python @ git+https://github.com/alewman/m68000-python@4454d5457842fabe0fac92272589945c1eed7234", # megadrive-python's restarted sound cores have no remotes yet and are named # unpinned there; installed from the local checkouts (pip install -e # ../ym2612-python -e ../sn76489-python) until they are. "ym2612-python", "sn76489-python", ] [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/segacd_python"] [tool.ruff] line-length = 100 target-version = "py311" extend-exclude = ["reference", "tests/test_roms", "runs"] [tool.ruff.lint] select = ["E", "W", "F", "I", "UP", "B", "C4", "SIM", "PERF", "RUF"] [tool.ruff.lint.per-file-ignores] "scripts/*" = ["E501"] [tool.ruff.lint.isort] known-first-party = ["segacd_python"] [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--strict-markers -ra -m 'not slow'" pythonpath = ["src", "tests"] markers = ["slow: long-running referee or disc runs (pytest -m slow)"]