Skip to content

Adding a library

Eric Apgar edited this page Feb 8, 2026 · 4 revisions

Install Repo as Library

uv

...as Base

uv add "template @ git+https://github.com/EricApgar/template.git>" --tag <release tag>

or

uv add git+https://github.com/EricApgar/template.git>@<release tag>

or

uv add git+https://github.com/EricApgar/template.git> --tag <release tag>

...with Optional Dependency

uv add "template[option_1] @ git+https://github.com/EricApgar/template.git>" --tag <release tag>

...with Multiple Optional Dependencies

uv add "template[option_1, option_2] @ git+https://github.com/EricApgar/template.git>" --tag <release tag>

pip

...as Base

pip install "template @ git+https://github.com/EricApgar/template.git>@<release tag>"

or

pip install git+https://github.com/EricApgar/template.git>@<release tag>

...with Optional Dependency

pip install "template[option_1] @ git+https://github.com/EricApgar/template.git>@<release tag>"

...with Multiple Optional Dependencies

pip install "template[option_1, option_2] @ git+https://github.com/EricApgar/template.git>@<release tag>"

Run Repo Locally

uv

...as Base

uv sync

...with Optional Dependency

uv sync --extra option_1

...with Multiple Optional Dependencies

uv sync --extra option_1 --extra option_2

pip

...as Base

pip install -r requirements.txt

...with Optional Dependency

pip install -e ".[option_1]"

...with Multiple Optional Dependencies

pip install -e ".[option_1, option_2]"