[build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "lynx-python" version = "0.1.0.dev0" description = "Readable, pure-Python Atari Lynx board (Lynx I and Lynx II) on 65c02-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" }] classifiers = [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: System :: Emulators", ] # The CPU core, pinned by commit. 9ca4a2f = w65c02-python HEAD on 2026-11-14 (classes # G65SC02 = the Lynx I's cell, Lynx2Cell = the Lynx II's); af0ad6b = its main on 2026-11-22, # the same code (src/ differs in comments, docstrings and SPDX lines only) with 6502-python # repinned after that repository's history rewrite. From GitHub (private: pip needs git # credentials for github.com). Repin deliberately: pip install --force-reinstall --no-deps # "" (the version string does not change between commits) and confirm with pip freeze. dependencies = [ "w65c02-python @ git+https://github.com/alewman/w65c02-python@af0ad6b9c34045ccea90ca0fd6b6a3ec29e3f703", ] [project.optional-dependencies] dev = ["pytest>=8", "ruff==0.16.8"] # The frontend window (milestone 8) and PNG output without the built-in writer. frontend = ["pygame-ce"] [project.scripts] lynx-python = "lynx_python.__main__:main" lynx-play = "lynx_python.play:main" [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/lynx_python"] [tool.ruff] line-length = 100 target-version = "py311" extend-exclude = ["reference", "tests/test_roms", "tests/mame_traces", "tests/runs"] [tool.ruff.lint.per-file-ignores] "scripts/*" = ["E501", "RUF007"] [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--strict-markers -ra -m 'not slow'" pythonpath = ["src", "tests"] markers = [ "slow: runs a test ROM, the whole library or a detector (pytest -m slow)", ]