-
Notifications
You must be signed in to change notification settings - Fork 14
chore: miseとuvでPython環境を管理するための設定ファイルを追加 #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
ご提案ありがとうございます。miseもuvも初めて使うためサポートいただけますと幸いです。 miseのページに従い以下のようにインストールしました。 以下で @3w36zj6 さんのリポジトリをクローンしました。 ここで以下のメッセージが出たため これに従い、 とりあえずこのメッセージは無視して ここで、以下のコマンドで その後 ここで つぎに 以下のコマンドのあとに実行する必要があるかと思い、以下を実行。 その後 でブラウザ表示も確認できました。 このプルリクエストに投稿された手順をもとに操作しましたが、上記の実行手順を.devcontainer/README.mdのように別ファイルで簡単にまとめると良いかもしれません。 |
|
確認していただきありがとうございます。手順について、CONTRIBUTING.mdに加筆しようと思います。 |
|
CONTRIBUTINGにmiseを利用した環境構築の手順を追加しました。
|
kimushun1101
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
非常に丁寧にご説明いただき誠にありがとうございます。
しかしながら、個人的には、確認必須のガイドラインに含むにしては重めの内容かと思います。
miseのインストールと
mise trust
mise install
mise run generateくらいにとどめ、詳細は別ファイルにしてリンクを置く形としてはいかがでしょうか?
実際のところ、まっさらな環境ではmise run generate-docsのためにはRust、プレビューのためにはNode.jsも必要になるかと思います。
これらの環境もmiseに含むことはできますでしょうか?
難しいようであれば、前提条件としてRustがインストールされていることを記載するという対応でもよいと思います。
|
Rustについては、miseのドキュメントで cf. https://mise.jdx.dev/lang/rust.html Webサイトの生成にRustが必要な旨と要約を加筆しました。 |
kimushun1101
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
問題なく動作することを確認しました。miseで完結する形で素晴らしい簡略化だと思います。
mkpoli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ mise run generate
mise ERROR `mise run` is experimental. Enable it with `mise settings set experimental true`
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more informationが出てたんで、以下を実行することによって解決
mise settings set experimental true
その他無事動作確認できました。お疲れ様でした。
変更点
.env/の自動作成とアクティベートの設定を追加した.python-versionを追加したuv initでPython環境の初期化を行った確認事項
mise run generateでWebサイトを生成するmise run previewで生成されたWebサイトを確認するためのローカルサーバーが起動する確認方法
mise installを実行してPythonとuvをインストールするuv syncを実行するuv pip listまたはuv run gen.pyを実行してPythonの開発環境が構築されていることを確認する備考