Migrate to uv package management #39
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Migrate to uv package management
概要
パッケージ管理を
pip+requirements.txtからuv+pyproject.tomlに移行しました。主な変更内容
パッケージ管理の移行
pyproject.tomlの追加: プロジェクトの依存関係をpyproject.tomlで管理するように変更uv.lockの追加: 依存関係のロックファイルを追加(4,572行)requirements.txtの更新: 依存関係の順序を整理し、バージョン指定を調整vllm==0.6.2→vllm>=0.6.2transformers<4.54.0を追加依存関係
pyproject.tomlに以下の依存関係を定義:anthropic==0.49.0awscli==1.38.5boto3==1.37.5datasets>=4.1.1hydra-core==1.3.2openai==1.65.2python-dotenv==1.0.1transformers<4.54.0vllm>=0.6.2wandb==0.19.7ドキュメントの更新
README.md の以下のセクションを更新:
仮想環境のセットアップ
python3 -m venv venv+pip install -r requrements.txtuv syncコマンド実行方法
python3 -m src.llm_jp_judge.*コマンドをuv run python3 -m src.llm_jp_judge.*に変更generateevaluateコードの整理
複数のPythonファイルで以下の改善を実施:
変更されたファイル(23ファイル):
src/llm_jp_judge/__main__.pysrc/llm_jp_judge/evaluate.pysrc/llm_jp_judge/generate.pysrc/llm_jp_judge/client/*.pysrc/llm_jp_judge/dashboard/*.pysrc/llm_jp_judge/dataset/*.pysrc/llm_jp_judge/evaluator/*.pysrc/llm_jp_judge/utils/data.py使用方法
セットアップ
実行
影響範囲
uv runプレフィックスを付けることで動作コミット履歴
012e8a4Update README.md1c361b3Update README.md6482ddbUpdate package management and evaluation components5242ab2Migrate to uv package management and update dependencies