Skip to content

Tags: unidoc/isms-python

Tags

v0.1.0

Toggle v0.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
ci: PyPI release workflow (Trusted Publishing) (#3)

* ci: PyPI release workflow via Trusted Publishing

Publishes to PyPI on a v* tag using PyPI Trusted Publishing (OIDC) — no API token
stored. Version comes from pyproject.toml; the tag is the trigger. Requires a
one-time Trusted Publisher set up on PyPI (project isms, unidoc/isms-python,
release.yml, environment pypi).

* chore: distribution name isms-sdk for PyPI

The bare 'isms' name is rejected by PyPI's typosquat / too-similar guard, so the
published distribution is isms-sdk. The import stays 'isms' (pip install isms-sdk ->
from isms import IsmsClient, same pattern as sentry-sdk / beautifulsoup4). Updates
the README install line + an install-vs-import note, and the release workflow's
Trusted-Publisher comment (PyPI project name isms-sdk).

* ci: harden release workflow (tag/version check + test gate)

Addresses Alip's review on PR #3:
- Verify the pushed tag matches pyproject.toml's version before build/publish, so a
  mistagged release can't silently publish the wrong (and unrewritable) version.
- Add an in-workflow lint+test job and gate publish on it (needs: test) — tests.yml
  never runs on tag pushes, so this guarantees lint+tests pass on the exact tagged
  commit before anything is published.