# SPDX-License-Identifier: MIT [build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "a7800-python" version = "0.1.0.dev0" description = "Readable, pure-Python Atari 7800 ProSystem emulator: MARIA on 6502-python, the 2600 half from a2600-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" }] # Pinned by commit (docs/handoff-brief.md "Sibling repositories"), all from GitHub # (a2600-python and pokey-python are private: pip needs git credentials for github.com). The CPU # core is named by the very URL a2600-python's own pin uses (6502-python # origin/main 741419a, pushed): pip refuses two different direct URLs for one # package, and one copy of the core serves both modes. 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", # The rebuilt a2600-python, the commit its docs/status.md names for consumers # (2026-11-14: this board's four requests answered, 6502-python 741419a as here); # its docs/api.md is the surface this board calls. # 4ad24f2 = 28fb095 plus docs and its repin to 828b619 (the same code): 28fb095 still names 741419a. "a2600-python @ git+https://github.com/alewman/a2600-python@4ad24f2089d5ed08a7793b64d46926cac7739330", # The restarted core (2026-11-14), the commit its docs/status.md names for boards; # its docs/adoption.md is the interface this board calls. # ea20096 = 6ed1ffa plus documents and its acid extra's repin to 6502-python 828b619 # (src/ unchanged): 6ed1ffa still names 741419a. "pokey-python @ git+https://github.com/alewman/pokey-python@ea2009628b8dc9219f9d8051191073ce7d59c5f9", ] [project.optional-dependencies] 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] a7800-python = "a7800_python.__main__:main" [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/a7800_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] # Research and detector scripts: long tables and report lines. "scripts/*" = ["E501", "B905", "B007"] [tool.ruff.lint.isort] known-first-party = ["a7800_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)"]