Skip to content

Reorganize sources; add lib/graphics and dual publish - #9

Merged
bdbarnett merged 6 commits into
mainfrom
cursor/reorganize-src-layout-5267
Jul 26, 2026
Merged

Reorganize sources; add lib/graphics and dual publish#9
bdbarnett merged 6 commits into
mainfrom
cursor/reorganize-src-layout-5267

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

Summary

  • MicroPython-style layout: include/, src/ (C), tests/
  • Pure-Python package at lib/graphics/ (incl. framebuf.py)
  • Docs: repo ships native (graphics-cmod) and Python (graphics-py)
  • One tag vX.Y.Z publishes both via publish-testpypi.yml + publish-micropython-lib.yml (MIP → micropython/graphics/)

Test plan

  • CPython editable + tests/test_*.py
  • PYTHONPATH=libgraphics_python
  • npm run check --prefix docs
  • MP unix usermod build + tests

Match the MicroPython-style usermod layout used by sibling usdl2: build
glue stays at the repo root for USER_C_MODULES discovery, headers live
under include/, sources under src/, and smoke/parity scripts under tests/.
Update pinned source links after the include/src move so Pages and
verify-site.mjs resolve existing files at the documented commit.
Re-run the Sourcey generator so immutable source links match HEAD
after the layout move and prior reference regenerate.
Keep wheels, eggs, object files, and VERSION out of the tree; drop the
redundant graphics_cmod.egg-info entry covered by *.egg-info/.
Move the Python package to lib/graphics/ (including framebuf.py), document
native + Python products, and publish graphics-py / MIP alongside graphics-cmod
on the same vX.Y.Z tag. Font C headers sync from lib/graphics/_font_8x*.py.
lib/pyproject.toml lets CI/consumers pip-install the pure-Python package
without a sibling checkout. Port graphics-focused tests from pydisplay.
@bdbarnett
bdbarnett marked this pull request as ready for review July 26, 2026 12:33
@cursor

cursor Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@bdbarnett
bdbarnett merged commit ce4c7a5 into main Jul 26, 2026
1 check passed
@bdbarnett
bdbarnett deleted the cursor/reorganize-src-layout-5267 branch July 26, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants