[build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "gba-python" version = "0.1.0.dev0" description = "Readable, pure-Python Game Boy Advance board built on arm7tdmi-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 :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: System :: Emulators", ] # A pinned revision of the CPU core, never a local path (docs/handoff-brief.md). The core is a # local repository until it is published, so the pin is a file URL at a full commit; it becomes # a GitHub URL at the same commit when the core goes public. Develop against a local checkout # with `pip install -e ../arm7tdmi-python` after installing this. dependencies = [ "arm7tdmi-python @ git+file:///data/emu/arm7tdmi-python@69aceb2ac52507fafd7b4ad505b6bd55c9dcfa9e", # The Game Boy's four sound channels (the AGB row), pinned the same way. "gb-apu-python @ git+file:///data/emu/gb-apu-python@b8cab61eb5392f0024dc3acc565c802e3b168258", ] [project.optional-dependencies] dev = [ "pytest>=8", # Pinned: `ruff format --check` must see the formatter the tree was formatted with. "ruff==0.16.8", ] # The desktop window (gba_python.frontend): SDL through pygame-ce, which ships PyPy wheels. frontend = ["pygame-ce>=2.5"] [project.scripts] gba-python = "gba_python.__main__:main" [tool.hatch.build.targets.wheel] packages = ["src/gba_python"] [tool.hatch.metadata] allow-direct-references = true [tool.ruff] line-length = 100 target-version = "py311" extend-exclude = ["reference", "docs"] [tool.ruff.lint] select = ["E", "W", "F", "I", "UP", "B", "C4", "SIM", "PERF", "RUF"] [tool.ruff.lint.per-file-ignores] "scripts/*" = ["E501"] [tool.ruff.lint.isort] known-first-party = ["gba_python"] [tool.ruff.format] quote-style = "double" indent-style = "space" [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--strict-markers -ra" pythonpath = ["src", "."] markers = [ "slow: a test-ROM suite or oracle run; `pytest -m \"not slow\"` is the quick loop", ]