From af891c55177471aaa64931a735e88350676caeab Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 26 Jul 2026 12:41:05 +0000 Subject: [PATCH] Depend on pydisplay-graphics instead of graphics-py. Avoids the PEP 503 collision with pypi.org graphics.py. --- README.md | 2 +- docs/installation.md | 2 +- scripts/assets_icons_to_py.py | 4 ++-- scripts/publish_micropython_lib.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 30e4de0..6c4240e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Cross-platform widget toolkit for [pydisplay](https://github.com/PyDevices/pydis pip install \ -i https://test.pypi.org/simple/ \ --extra-index-url https://pypi.org/simple/ \ - pdwidgets displaysys graphics-py eventsys multimer palettes + pdwidgets displaysys pydisplay-graphics eventsys multimer palettes ``` Requires a pydisplay `board_config` and display stack. diff --git a/docs/installation.md b/docs/installation.md index 602c880..40bfe3c 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -23,7 +23,7 @@ Wheels are published to [TestPyPI](https://test.pypi.org/project/pdwidgets/) for pip install \ -i https://test.pypi.org/simple/ \ --extra-index-url https://pypi.org/simple/ \ - pdwidgets displaysys graphics-py eventsys multimer palettes + pdwidgets displaysys pydisplay-graphics eventsys multimer palettes ``` You also need a pydisplay `board_config` for your display backend. See [pydisplay desktop quick start](https://pydisplay.readthedocs.io/en/latest/guides/desktop-cpython/). diff --git a/scripts/assets_icons_to_py.py b/scripts/assets_icons_to_py.py index c07121c..341ad70 100644 --- a/scripts/assets_icons_to_py.py +++ b/scripts/assets_icons_to_py.py @@ -2,7 +2,7 @@ """ Convert ``lib/pdwidgets/icons/*.{pbm,bmp}`` into importable ``.py`` modules. -Installs ``graphics-py`` from TestPyPI (unless already importable), or +Installs ``pydisplay-graphics`` from TestPyPI (unless already importable), or uses sibling ``pydisplay/src/lib`` when present. Loads each binary via ``FrameBuffer.from_file``, then writes modules via ``FrameBuffer.export`` (``BITMAP = bytearray(...)`` for zero-copy MicroPython loads). @@ -57,7 +57,7 @@ def ensure_graphics(*, install: bool) -> None: "https://test.pypi.org/simple/", "--extra-index-url", "https://pypi.org/simple/", - "graphics-py", + "pydisplay-graphics", ] print("Running:", " ".join(cmd)) subprocess.check_call(cmd) diff --git a/scripts/publish_micropython_lib.sh b/scripts/publish_micropython_lib.sh index e0b80df..7c3211e 100755 --- a/scripts/publish_micropython_lib.sh +++ b/scripts/publish_micropython_lib.sh @@ -158,7 +158,7 @@ metadata( pypi_publish="$BASENAME", ) require("eventsys") -require("graphics", pypi="graphics-py") +require("graphics", pypi="pydisplay-graphics") require("multimer") require("palettes") package("$BASENAME")