Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Publish to PyPI with trusted publishing

オープン
#824 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github-actions, python
領域
ci-cd, release

調査の方向性

まず、リポジトリに既存する GitHub Actions のワークフローと、リンクされている Python packaging、PyPI trusted-publishers、pypa/gh-action-pypi-publish のドキュメントを確認します。パッケージの build および publish ジョブ、GitHub 環境、そして attestations を伴う trusted publishing に必要な指定された権限を設定します。GitHub CI からローカルの twine upload を使わずにリリースを公開でき、生成されたアーティファクトを PyPI で検証できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

SDK

Trusted publishing (with attestations) means I have high confidence that what I download from PyPI is the same artefact which was generated in GitHub CI, meaning that what I see in GitHub is the same as what is installed - handy for auditing.

This is instead of manually uploading via a local invocation of twine.

See the Python packaging documentation, the PyPI documentation, and the official pypi-publish GitHub action documentation on trusted publishing.

Implementation (using GitHub actions) (click to expand)
  • Configure a GitHub CI workflow for publishing the package to PyPI, with package build and publish jobs
  • Configure (or use an existing) GitHub environment, and register with PyPI
  • Add the environment definition to the publish job
  • Add id-token: write and contents: read permissions to the same publish job
主要言語
Python
スター
473
フォーク
322
平均マージ
30分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oracle/oci-python-sdk のほかの issue

oracle/oci-python-sdk の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。