Skip to content

Distribute via PEP 503 Pages index + themed API docs - #1

Merged
felipeg48 merged 4 commits into
mainfrom
publish/pages-pep503
Oct 21, 2026
Merged

felipeg48 merged 4 commits into
mainfrom
publish/pages-pep503

Conversation

@felipeg48

Copy link
Copy Markdown
Contributor

Python has no GitHub Packages support, so (per decision) packages are distributed via a PEP 503 static index on this repo's GitHub Pages instead of PyPI.

  • pages.yml (push main / release): uv build all workspace packages → PEP 503 /simple/ index + copied dists, pdoc API docs under /apidocs/, and a CU-themed landing matching the developer-libraries site. Deploys to gh-pages.
  • Dropped the PyPI trusted-publishing workflow (needs a PyPI org + a trusted publisher we don't have, and the cockroachdb name is taken on PyPI).
  • Install: pip install --extra-index-url https://cockroachlabs.github.io/cockroachdb-python-library/simple/ cockroachdb-core
  • README: fixed badges + sibling org links; scripts/build_pages.py is locally tested.

CI (ruff/mypy/pytest matrix) is unchanged. Release tag will be v0.1.1 (matches the package versions).

- Replace the PyPI trusted-publishing workflow with pages.yml: build all
  workspace packages, generate a PEP 503 'simple' install index + pdoc API
  docs + a CU-themed landing, deploy to GitHub Pages.
- scripts/build_pages.py assembles the landing (one card per package),
  copies dists, and writes the PEP 503 index. Install via:
    pip install --extra-index-url \
      https://cockroachlabs.github.io/cockroachdb-python-library/simple/ cockroachdb-core
- README: fix badges (PyPI->CI/Release/Python/License), correct sibling
  org links felipeg/cockroachdb -> cockroachlabs, note the Pages index.
Pre-existing format drift surfaced once CI ran on cockroachlabs; ruff format
0.17 reformats the Python blocks in README.md. build_pages.py's embedded
HTML/CSS template lines are exempted from E501 via a scripts/** per-file-ignore.
mypy 2.4 rejects a str-valued module variable used as a type. Define
McpTransport with typing.TypeAlias over collections.abc.Callable instead of
the forward-ref string, importing Callable/Mapping at runtime for the alias.
496 unit tests passed; the 30 failures/errors were all 'connection refused'
to localhost:26257 (DDL compiler, dialect, alembic, integration suites).
Provision a single-node CockroachDB (matches the Go/Java workflows).
@felipeg48
felipeg48 merged commit 14dc9d6 into main Oct 21, 2026
3 checks passed
@felipeg48
felipeg48 deleted the publish/pages-pep503 branch October 21, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant