色々なプロジェクト (Distribution) のインストールパターンを網羅する。
最初に venv を作成して有効化しておくことを推奨する:
python3 -m venv ./venv # 一時的な環境
. ./venv/bin/activate
Create sdist:
python -m build --sdist
Install:
python -m pip install ./dist/project-0.0.0.tar.gz
Create tar.gz:
git archive HEAD:contrib/project1 -o ./project1.tar.gz
If create zip:
git archive HEAD:contrib/project1 -o ./project1.zip
Install:
python -m pip install -U ./project1.tar.gz
Install project:
python -m pip install -U "project @ git+https://github.com/oshinko/pyprojects.git@main"
Install only specific subprojects:
python -m pip install -U "project1 @ git+https://github.com/oshinko/pyprojects.git@main#subdirectory=contrib/project1"