M-3: the cache-length guard used 'cache is not None', so cache=[] ([] is not None) hit the length check and raised at construction — contradicting README/CLAUDE that say a falsy cache disables the button (matching the render path 'if self.cache:'). guard now uses 'if cache' so [] and None both disable; a non-empty too-short cache still raises. dpy_paginator-F2: update_buttons() now ANDs nav with max_pages>=2, so a single-page re-render (update_page -> _build_render_kwargs, default nav=True) no longer resurrects the nav row over the page's custom buttons. start()'s single-page branch simplified accordingly. verified by execution with real discord.py: []-disables and None-disables both construct, real cache renders, too-short still raises; single-page re-render keeps nav suppressed + custom button, multi-page control still shows nav. 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.4"
|
|
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"]
|