Skip to content

ci: publish diraccfg to PyPI via trusted publisher - #13

Merged
aldbr merged 4 commits into
DIRACGrid:masterfrom
fstagni:pypi-trusted-publisher
Nov 17, 2026
Merged

aldbr merged 4 commits into
DIRACGrid:masterfrom
fstagni:pypi-trusted-publisher

Conversation

@fstagni

@fstagni fstagni commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Part of DIRACGrid/.github#5 (PyPI releases / trusted publisher instead of PYPI_TOKEN), same as DIRACGrid/DIRAC#8886.

The publish-pypi job of ci.yml is split in two:

  • build-pypi builds the sdist/wheel (still gated on pytest + pre-commit), uploads them as an artifact on tag pushes, and needs no PyPI credential.
  • publish-pypi downloads the packages and publishes them with trusted publishing (environment: pypi, id-token: write), same as already done in diracx, intercede and signurlarity. secrets.pypi_password is dropped entirely, and pypa/gh-action-pypi-publish is pinned to the same commit SHA used in the other DIRACGrid repos (it was on the mutable master branch).

Required follow-ups before the next release (manual):

  • create the pypi environment on this repository (no reviewers needed)
  • register the trusted publisher on PyPI for the diraccfg project: workflow ci.yml, environment pypi, owner DIRACGrid
  • verify with a release

@fstagni
fstagni marked this pull request as ready for review November 16, 2026 15:42
It now duplicates the real signature.

Assisted-by: Claude:claude-opus-5-5
@aldbr
aldbr merged commit 043a506 into DIRACGrid:master Nov 17, 2026
6 checks passed
aldbr pushed a commit that referenced this pull request Nov 17, 2026
Conda is no longer available on the GitHub-hosted runners, breaking the
pytest/build jobs. Migrate the CI to locked pixi environments (py39,
py310, py311) like the other DIRACGrid repositories, and build the
distributions with python -m build instead of conda-based setup.py.

Stacked on #13.
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.

2 participants