# SPDX-License-Identifier: MIT [build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "a5200-python" version = "0.1.0.dev0" description = "Readable, pure-Python Atari 5200 SuperSystem board built on 6502-python and pokey-python" readme = "README.md" # The floor is the newest Python PyPy supports (3.11 as of PyPy 7.3.20); raise it when PyPy does. requires-python = ">=3.11" license = { file = "LICENSE" } authors = [{ name = "alewman" }] # Cores pinned by commit, from GitHub (pokey-python is private: pip needs git credentials # for github.com): # - 6502-python 741419a = its origin/main (the local branch "main" there is # stale); the board uses MOS6502, note_stall() and dma_stalled as they are # there (docs/sally-halt.md: no core change). # - pokey-python 6ed1ffa (2026-11-14) = the restarted core (its docs/restart.md), # the commit its status.md names for boards; wired as its docs/adoption.md says. # The earlier pins (5a06587, e276d27) belonged to the archived core. dependencies = [ # 828b619 = 741419a after 6502-python's history rewrite of 2026-11-21 (same tree). "6502-python @ git+https://github.com/alewman/6502-python@828b61940415eed39678fa1f7d310608201e54ef", # ea20096 = 6ed1ffa plus documents and the repin of its acid extra's 6502-python to 828b619 # (src/ unchanged). "pokey-python @ git+https://github.com/alewman/pokey-python@ea2009628b8dc9219f9d8051191073ce7d59c5f9", ] [project.optional-dependencies] # 7z input (open decision 7): py7zr if importable, else the 7z program. sevenzip = ["py7zr"] frontend = ["pygame-ce>=2.5"] dev = [ "pytest>=8", # Pinned: `ruff format --check` must see the formatter the tree was formatted with. "ruff==0.16.8", ] [project.scripts] a5200-python = "a5200_python.__main__:main" [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/a5200_python"] [tool.ruff] line-length = 100 target-version = "py311" extend-exclude = ["reference", "tests/test_roms", "tests/mame_traces", "tests/detector_runs"] [tool.ruff.lint] select = ["E", "W", "F", "I", "UP", "B", "C4", "SIM", "PERF", "RUF"] [tool.ruff.lint.per-file-ignores] "scripts/*" = ["E501", "B905", "B007", "RUF012"] # Local ROM-set paths are long. "src/a5200_python/bios.py" = ["E501"] [tool.ruff.lint.isort] known-first-party = ["a5200_python"] [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--strict-markers -ra -m 'not slow'" pythonpath = ["src", "tests"] markers = ["slow: runs that take many emulated seconds or need a detector (pytest -m slow)"]