Skip to content

Build: Migrate to uv#11

Merged
toapuro merged 4 commits intotoapuro:masterfrom
Meatwo310:build/migrate-to-uv
Mar 2, 2026
Merged

Build: Migrate to uv#11
toapuro merged 4 commits intotoapuro:masterfrom
Meatwo310:build/migrate-to-uv

Conversation

@Meatwo310
Copy link
Contributor

Pipでの曖昧なパッケージ管理を、高速なパッケージ/プロジェクトマネージャ uv で置き換えます。

変更点:

  • requirements.txtを削除し、pyproject.toml / uv.lockに置き換え
    • Python及びパッケージのバージョンが固定され、環境の再現が確実になります
    • パッケージのアップデートが容易になります
  • ビルド手順(README.md / CONTRIBUTING.md)を、uvを使用した手順に置き換え
  • CIをuvでのビルド・デプロイ・キャッシュに置き換え

- デプロイ・テスト時の手動キャッシュは不要と判断したため、uv側のキャッシュに変更
pyproject.tomlがより厳密な依存を示すため
@github-actions github-actions bot added the actions Github CI/CD label Mar 2, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

このプルリクエストは、プロジェクトのパッケージ管理システムをpipからuvへ移行することで、依存関係の管理を大幅に改善することを目的としています。これにより、開発環境の再現性が向上し、パッケージのアップデートが容易になります。また、関連するドキュメントも新しいuvベースのワークフローに合わせて更新されています。

Highlights

  • パッケージマネージャの移行: 従来のpipから高速なパッケージ/プロジェクトマネージャuvへの移行を実施しました。
  • 依存関係管理の改善: requirements.txtを削除し、pyproject.tomlとuv.lockに置き換えることで、Pythonおよびパッケージのバージョン固定と環境の再現性を向上させました。
  • ドキュメントの更新: README.mdとCONTRIBUTING.md内のビルド手順をuvを使用したものに更新しました。
  • Pythonバージョンの固定: .python-versionファイルを追加し、Pythonのバージョンを3.9に固定しました。
Changelog
  • .python-version
    • Pythonのバージョンを3.9に固定しました。
  • CONTRIBUTING.md
    • ドキュメントのローカル確認コマンドをuv run mkdocs serveに変更しました。
  • README.md
    • uvのインストール手順を含むセットアップセクションを追加しました。
    • ビルドおよび開発サーバー起動コマンドをuv runを使用するように更新しました。
  • pyproject.toml
    • プロジェクトのメタデータと依存関係を定義するファイルを追加しました。
    • Pythonの最小バージョンを3.9に設定しました。
  • requirements.txt
    • pyproject.tomlへの移行に伴い、このファイルを削除しました。
Ignored Files
  • Ignored by pattern: .github/workflows/** (2)
    • .github/workflows/deploy.yml
    • .github/workflows/test.yml
Activity
  • このプルリクエストには、まだレビューやコメントの活動はありません。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

このプルリクエストは、piprequirements.txt を使用したパッケージ管理から、より高速で再現性の高い uvpyproject.toml へ移行するものです。全体として、依存関係管理の改善とドキュメントの更新が適切に行われており、素晴らしい変更だと思います。README.md のセットアップ手順にPythonのバージョン要件を明記することで、新規コントリビューターがよりスムーズに環境構築できるようになるかと思いますので、修正を提案しました。

@toapuro
Copy link
Owner

toapuro commented Mar 2, 2026

良さそう

@toapuro
Copy link
Owner

toapuro commented Mar 2, 2026

最近のPythonには疎かったのでとてもありがたい
LGTM

@toapuro toapuro merged commit b9973b6 into toapuro:master Mar 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

actions Github CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants