mirror of
https://github.com/rr-/pq-cli.git
synced 2026-11-12 22:40:36 -07:00
The word lists (monsters, spells, equipment, races, classes, titles and
so on) now live in pqcli/data/*.json instead of pqcli/config.py. A
GameData object loaded at startup is passed to the simulation and UIs.
Users can replace any list by putting NAME.json in
$XDG_CONFIG_HOME/pqcli/data/ or a directory given with --data-dir.
--dump-data DIR copies the built-in files out for editing. Malformed
files are reported and pqcli exits before starting the UI.
Combat task descriptions come from the new combat_verbs list, with
{target} standing for the enemy. The built-in list holds only "Executing
{target}", and a single verb consumes no random roll, so stock gameplay
is unchanged. Recorded traces in tests/fixtures pin this down.
Monster, Race and Class stay in pqcli.config so existing saves still
load.
Resolves #3
52 lines
1.3 KiB
TOML
52 lines
1.3 KiB
TOML
[project]
|
|
name = "pqcli"
|
|
version = "1.0.4"
|
|
description = "Progress Quest: the CLI edition"
|
|
authors = [{ name = "Laura Kurczewska", email = "dash@wind.garden" }]
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
requires-python = ">=3.10,<4.0"
|
|
classifiers = [
|
|
"Environment :: Console",
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: End Users/Desktop",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Natural Language :: English",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Topic :: Games/Entertainment :: Role-Playing",
|
|
"Topic :: Games/Entertainment :: Simulation",
|
|
]
|
|
|
|
dependencies = [
|
|
"xdg-base-dirs>=6.0.0,<7.0.0",
|
|
"urwid>=2.1.2,<3.0.0",
|
|
"urwid-readline>=0.13,<1.0.0",
|
|
"pre-commit>=4.5.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
windows = ["windows-curses>=2.3.0,<3.0.0"]
|
|
|
|
[project.urls]
|
|
Repository = "https://github.com/rr-/pq-cli.git"
|
|
|
|
[project.scripts]
|
|
pqcli = "pqcli.__main__:main"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.uv]
|
|
dev-dependencies = ["pre-commit>=2.16.0", "pytest>=8.0"]
|
|
|
|
[tool.black]
|
|
line-length = 79
|
|
|
|
[tool.isort]
|
|
known_first_party = "pqcli"
|
|
multi_line_output = 3
|
|
include_trailing_comma = true
|