Switch rye build-system backend from hatchling to pdm #100
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.
概要
pytest で使っている rye の
build-backend
を hatchling から pdm に切り替えますIssue / PR
詳細
rye のデフォルトで指定される
hatchling
では相対パスでの dependency ができなくて困るのと,特に理由があってhatchling
を使っていたわけではない(単にデフォルトのrye init
で出てくるだけ)なので,切り替えて問題ないはずです.これにより,#99 のような c2a-core リポジトリに内包する Python ライブラリを rye から相対パスで参照できるようになります.ただし,これでも lockfile には絶対パスが焼かれてしまいます.が,これは一旦どうしようもないので許容することとします(これの後に別方向の解決を試みます).
検証結果
example user の
src/src_user/Test
でrye sync
できればよし影響範囲
example user の pytest