GitXplorerGitXplorer
s

pypi-oidc-buildkite-plugin

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
b24f9fc444ac7aa265667738dffc4cc97c19cad4

Add a note that this is not yet generally available

ssj26 committed a year ago
Unverified
64f500c30d46523eba2e703bd94b75b41b77d3c5

Exchange Buildkite OIDC token for PyPI token

ssj26 committed a year ago

README

The README file for this repository.

PyPI Buildkite OIDC support

[!NOTE] This is not yet generally available, but work is in progress.

Securely push Python packages from your Buildkite pipelines. Exchanges a Buildkite OIDC token as a trusted publisher on PyPI, the Python Package Index. Exports TWINE_USERNAME and TWINE_PASSWORD for use by Twine.

steps:
- label: ":python: Build and push to PyPI"
  plugins:
  - sj26/pypi-oidc
  command: |
    python3 setup.py sdist
    python3 -m pip install --upgrade twine
    twine upload dist/*

Requirements

Python 3 supported versions, and the standard library. No packages are used outside the standard library.

Thanks

Inspired by https://github.com/pypa/gh-action-pypi-publish, and with generous guidance by William Woodruff.