[build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "colecovision-python" version = "0.1.0.dev0" description = "Readable, pure-Python ColecoVision board built on z80-python, tms9918-python and sn76489-python" readme = "README.md" # The floor is the newest Python PyPy supports (3.11); raise it when PyPy does. requires-python = ">=3.11" license = { file = "LICENSE" } authors = [{ name = "alewman" }] # Cores pinned by commit, from the local clones while they and this board are # local (git+file, as the sibling boards were before their remotes): # - z80-python 5434349, branch m1-fetch-hook-rebased (issue 0001 there): the # read_m1(address, kind) hook this board's M1 wait is built on (f97c0f5 # before z80-python's 2026-11-19 history rewrite; same tree). # - tms9918-python df9d8ae (main): the TMS9928A / TMS9929A. # - sn76489-python 74da02b (main, the restart of 2026-11-12; c0d88a6 before the core's # 2026-11-22 history rewrite, the same package), from GitHub: its SN76489AN row. dependencies = [ "sn76489-python @ git+https://github.com/alewman/sn76489-python@74da02bd4e3b57ef502f5179b452fc1f1c45981a", # Local only (no remote holds these commits): install the sibling checkouts first, # `pip install ../z80-python-m1-hook ../tms9918-python` (README); the names below # are then satisfied. A PyPI z80-python 0.4.0 lacks the read_m1 hook. "z80-python", "tms9918-python", ] [project.optional-dependencies] dev = [ "pytest>=8", # Pinned: `ruff format --check` must see the formatter the tree was formatted with. "ruff==0.16.8", ] [project.scripts] colecovision-python = "colecovision_python.__main__:main" [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/colecovision_python"] [tool.ruff] line-length = 110 target-version = "py311" extend-exclude = ["reference", "trash", "tests/test_roms", "tests/mame_traces", "tests/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"] [tool.ruff.lint.isort] known-first-party = ["colecovision_python"] [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--strict-markers -ra -m 'not slow'" pythonpath = ["src", "tests"] markers = ["slow: replays against MAME logs and runs of many emulated seconds (pytest -m slow)"]