|
Download docs/RELEASING.md from WickTech/lumen-rag: direct link, hf CLI and curl.
- Browser
- Download file 2.83 kB
-
https://huggingface.co/spaces/WickTech/lumen-rag/resolve/main/docs/RELEASING.md
- Command line
-
hf download hf://spaces/WickTech/lumen-rag/docs/RELEASING.md
-
curl -L -o RELEASING.md https://huggingface.co/spaces/WickTech/lumen-rag/resolve/main/docs/RELEASING.md
2.83 kB
A newer version of the Gradio SDK is available: 6.30.0
Releasing
Releases are built and published by .github/workflows/release.yml
when a GitHub Release is published. PyPI never sees a password or token: the workflow authenticates with
Trusted Publishing (OIDC).
One-time setup (needs the PyPI account owner)
The project name lumen-rag was unclaimed on PyPI when this was written (checked 2026-10-18). The first
upload claims it, so register it before anyone else does.
- Create a PyPI account with 2FA, if there is none: https://pypi.org/account/register/
- Add a pending publisher (the project does not exist yet, so it is "pending"):
https://pypi.org/manage/account/publishing/ → Add a new pending publisher
- PyPI project name:
lumen-rag - Owner:
WickTech - Repository name:
lumen-rag - Workflow name:
release.yml - Environment name:
pypi
- PyPI project name:
- In the GitHub repo: Settings → Environments → New environment named
pypi. Add yourself as a required reviewer so every publish needs a manual approval click. - (Recommended) Do a dry run on TestPyPI first: add a second pending publisher on https://test.pypi.org
and a
testpypienvironment, then point a copy of the publish step atrepository-url: https://test.pypi.org/legacy/.
Releasing a version
- Update
__version__inlumen_rag/__init__.pyand theCHANGELOG.mdheading (replace unreleased with the date). - Open a PR; make sure CI, the PR eval report and Security are green; merge.
- Run the workflow's build and smoke test without publishing: Actions → Release → Run workflow
(the
workflow_dispatchpath builds, runstwine check, and installs the wheel in a clean virtualenv). - Create the release: Releases → Draft a new release, tag
vX.Y.Zonmaster, publish. The workflow refuses to run if the tag does not matchlumen_rag.__version__. - Approve the
pypienvironment when GitHub asks. Verify:python -m venv /tmp/v && /tmp/v/bin/pip install lumen-rag && /tmp/v/bin/lumen --help - In
README.md, change the install section to lead withpip install lumen-rag.
Things that cannot be undone
- A published version number can never be reused, and a file can be yanked but not replaced. If a release is broken, publish a new patch version.
- Anything in the sdist or wheel is public. The sdist is limited by an include list in
pyproject.toml(package, tests, eval data, scripts, docs); checktar tzf dist/*.tar.gzbefore a release.
What the workflow checks
- Tag equals
lumen_rag.__version__. twine checkaccepts the metadata and README.- The wheel installs into a clean virtualenv away from the checkout,
lumen --helpruns, and a one-document ingest + query returns a citation.