Skip to content

netrcによる認証を廃止します - #795

Merged
yuji38kwmt merged 2 commits into
mainfrom
remove-netrc
Oct 30, 2026
Merged

yuji38kwmt merged 2 commits into
mainfrom
remove-netrc

Conversation

@yuji38kwmt

@yuji38kwmt yuji38kwmt commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

PAT 認証へ利用を誘導し、認証情報の取得方法をシンプルにするためnetrcによる認証を廃止します。

Copilot AI balanced review requested due to automatic review settings October 30, 2026 02:31
@yuji38kwmt yuji38kwmt changed the title Remove netrc netrcによる認証を廃止します Oct 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the change removing .netrc authentication fallback.

No open issues 🎉

What changed in this PR

Annofab APIクライアントの.netrcによる認証情報の読み込みを廃止し、引数なしのbuild()では環境変数のみを参照するように変更します。

変更内容:

  • build_from_netrc()と公開エクスポートを削除。
  • .netrcへフォールバックしないことを確認するテストを追加し、環境変数の操作をmonkeypatchに統一。
  • 認証手順を更新し、PATの利用を推奨。
File Description
tests/​test_build.py .netrcを無視する動作を検証し、テスト間の環境変数への影響を防止。
README.md .netrcの説明を削除し、環境変数の優先順位とPAT推奨を明記。
README_for_developer.md テスト用の認証設定をANNOFAB_PATに変更。
docs/​user_guide/​basic_usage.rst 古い.netrc関連ログ例を削除し、変数名の誤記を修正。
annofabapi/​resource.py .netrc読み込み処理を削除し、環境変数への処理委譲を簡素化。
annofabapi/​__init__.py build_from_netrcの公開エクスポートを削除。

Review effort: Balanced

@yuji38kwmt
yuji38kwmt merged commit 7ac536a into main Oct 30, 2026
10 checks passed
@yuji38kwmt
yuji38kwmt deleted the remove-netrc branch October 30, 2026 02:32
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