[build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "sms-python" version = "0.1.0.dev0" description = "Readable, pure-Python SG-1000, Master System and Game Gear emulator built on z80-python" readme = "README.md" # The floor is the newest Python PyPy supports (3.11 as of PyPy 7.3.23); raise it when PyPy does. requires-python = ">=3.11" license = { file = "LICENSE" } authors = [{ name = "alewman" }] dependencies = [ # z80-python 0.4.0 introduced the callables contract the board is built for. "z80-python>=0.4.0", # The PSG and the FM unit's YM2413: cores of their own, rebuilt in November 2026 # from documents (MIT). Not on PyPI: pinned by git revision (bb67fc0 and e28c64e: # 74d4c7a and 73d4a9c after the cores' 2026-11-22 history rewrite, the same packages). "sn76489-python @ git+https://github.com/alewman/sn76489-python@bb67fc069baae8bf53a8be15a4daf0bf39b4bf0d", "ym2413-python @ git+https://github.com/alewman/ym2413-python@e28c64ec26a668c81ece0a1ca2eaa8c4f8c61829", ] [project.optional-dependencies] # The desktop window (sms_python.frontend): SDL through pygame-ce, which ships PyPy wheels. frontend = ["pygame-ce>=2.5"] dev = [ "pytest>=8", # Pinned: `ruff format --check` in CI must see the formatter the tree was formatted with. "ruff==0.16.8", ] [project.scripts] sms-python = "sms_python.frontend:main" [tool.hatch.metadata] # The PSG and FM cores are pinned by git URL (dependencies above). allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/sms_python"] [tool.ruff] line-length = 100 target-version = "py311" extend-exclude = ["reference", "tests/test_roms", "tests/mame_traces"] [tool.ruff.lint] select = ["E", "W", "F", "I", "UP", "B", "C4", "SIM", "PERF", "RUF"] [tool.ruff.lint.isort] known-first-party = ["sms_python"] [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--strict-markers -ra -m 'not slow'" pythonpath = ["src", "tests"] markers = ["slow: long-running replays against MAME logs (pytest -m slow)"]