feat!: non-development installation support #28
Merged
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.
Highlights
기존 템플릿은
pip install -e .
처럼 development mode로 설치하는 것을 기본 전제로 했다. 하지만,기존 방법의 단점:
변경 방법의 장점: 설치가 훨씬 수월해진다.
pip install .
(-e 없이) 해도 사용 가능. (PROJECT_DIR만 사용 못함)pipx install .
,uv tool install .
처럼 API없이 CLI만 사용하도록 설치도 가능.Breaking Changes (주의 사항)
Path
->Path | None
으로 변경. Non-development mode install (pip install -e 안했을때) None으로 설정.setup_logging()
default로 file logging 안하도록 변경.setup_logging(log_dir=LOG_DIR)
사용.New Features
ml-project config
CLI로 template.env를 가장 적합한 디렉토리에 복사함.