empty pages gave max_pages=0; get_page(0)/start() then IndexError'd on self.pages[0]. guard in __init__ with a clear ValueError instead of a deferred crash at render. verified: ButtonPaginator([]) -> ValueError; non-empty and single-page intact. Signed-off-by: disqualifier <dev@disqualifier.me>
16 lines
369 B
TOML
16 lines
369 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "dpy_paginator"
|
|
version = "0.1.1"
|
|
description = "Button-navigated paginator for discord.py — config-free, injectable emojis, installable."
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"discord.py>=2.0",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/dpy_paginator"]
|