Skip to content

0.3.4: package libtoks for PyPI + Trusted Publishing workflow - #67

Merged
Tom-A-Lynch merged 2 commits into
masterfrom
toks/pypi-libtoks
Dec 1, 2026
Merged

Tom-A-Lynch merged 2 commits into
masterfrom
toks/pypi-libtoks

Conversation

@Tom-A-Lynch

Copy link
Copy Markdown
Contributor

Packages the Python wheels as libtoks (Python import stays toks) for PyPI via Trusted Publishing, and cuts version 0.3.4 (ABI stays 0.4).

Changes:

  • python/pyproject.toml, python/README.md: rename PyPI distribution to libtoks, add authors/URLs/keywords/classifiers, rewrite relative README links to absolute GitHub URLs, add pip install libtoks / uv pip install libtoks snippets.
  • python/build.sh, python/tests/test_api.py, tools/release.sh, tools/release/rc_report.py, nightly.yml, release-artifacts.yml, docs: update wheel globs and importlib.metadata.version("libtoks"); bump nightly.yml wheels timeout from 15 to 30 minutes.
  • .github/workflows/pypi.yml: builds and tests all 15 wheels (linux x86-64 manylinux2014, linux arm64 manylinux2014, macOS arm64; CPython 3.10-3.14), runs fresh-venv smoke checks + twine check --strict, and publishes via pypa/gh-action-pypi-publish (OIDC, pypi environment locked to v* tags) on release publication or manual dispatch.
  • include/toks.h, README.md: bump TOKS_VERSION to 0.3.4 and update release summary and install snippets.

Receipts:

  • macOS arm64: test_version (0.3.4, abi 0.4, 0 failures), libtoks-0.3.4-cp313-cp313-macosx_11_0_arm64.whl built, twine check --strict PASSED, pytest python/tests/test_api.py python/tests/test_threads.py 32 passed / 1 skipped.
  • Linux x86-64 (aimax395b): PARITY_PY="" sh python/build.sh 3.13 built + auditwheel repaired to manylinux_2_17_x86_64.manylinux2014_x86_64, twine check --strict PASSED, pytest 32 passed / 1 skipped.

Prepare the Python wheel for PyPI distribution under the name libtoks
(the Python import name stays toks):
- python/pyproject.toml: rename distribution to libtoks and add authors,
  project URLs, keywords, and CPython 3.10-3.14 classifiers.
- python/README.md: use full GitHub URLs so links render on PyPI and add
  pip / uv install instructions.
- python/build.sh, python/tests/test_api.py, tools/release.sh,
  tools/release/rc_report.py, nightly.yml, release-artifacts.yml, docs:
  update wheel filename pattern and metadata check from toks to libtoks.
- .github/workflows/nightly.yml: raise wheels job timeout from 15 to 30
  minutes to avoid slow-runner timeouts.
- .github/workflows/pypi.yml: build, test, smoke-check, twine-check, and
  publish the 15 wheels (linux x86-64, linux arm64, macOS arm64; CPython
  3.10-3.14) via PyPI Trusted Publishing (OIDC, pypi environment).
Bump TOKS_VERSION to 0.3.4 (ABI stays 0.4) and update README.md with the
0.3.4 release summary and pip / uv install instructions for libtoks.
@Tom-A-Lynch
Tom-A-Lynch merged commit 9bdb818 into master Dec 1, 2026
7 checks passed
@Tom-A-Lynch
Tom-A-Lynch deleted the toks/pypi-libtoks branch December 1, 2026 18:18
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