Publish to PyPI with trusted publishing
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
まず、リポジトリに既存する GitHub Actions のワークフローと、リンクされている Python packaging、PyPI trusted-publishers、pypa/gh-action-pypi-publish のドキュメントを確認します。パッケージの build および publish ジョブ、GitHub 環境、そして attestations を伴う trusted publishing に必要な指定された権限を設定します。GitHub CI からローカルの twine upload を使わずにリリースを公開でき、生成されたアーティファクトを PyPI で検証できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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: writeandcontents: readpermissions to the same publish job
- 主要言語
- Python
- スター
- 473
- フォーク
- 322
- 平均マージ
- 30分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oracle/oci-python-sdk のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
oracle/oci-python-sdk#890 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
oracle/oci-python-sdk#879 · コメント 3 件 ·
-
Example uses non-existent API対応中かも @reginaldalfret が 4 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
oracle/oci-python-sdk#878 ·
-
SDK
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
oracle/oci-python-sdk#861 · コメント 5 件 ·
-
SDK
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
oracle/oci-python-sdk#852 ·
oracle/oci-python-sdk の issue をすべて見る
似ている issue
-
request-theme
難易度 2/5 1時間未満 初心者へのやさしさ 70/100
LizardByte/ThemerrDB#8877 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/install-update comp/gateway P0 sweeper:risk-compatibility type/bug
難易度 2/5 1時間未満 初心者へのやさしさ 72/100
NousResearch/hermes-agent#135997 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
deepset-ai/haystack#13199 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] JSONLoader rejects valid UTF-8 BOM files対応中かも @zouyonghe が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
anthropics/knowledge-work-plugins#1298 ·
メンテナーはふだん 1 日以内に返信