From 2b6c2700d9d0530ae7c1f0f0f9a7e2180e2edcca Mon Sep 17 00:00:00 2001 From: Gunung Pambudi Wibisono <55311527+gunungpw@users.noreply.github.com> Date: Wed, 21 Feb 2024 20:40:01 +0700 Subject: [PATCH] add example for local path dependancy (#732) --- docs/guide/commands/add.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/guide/commands/add.md b/docs/guide/commands/add.md index 42b5bbccad..816cd154a3 100644 --- a/docs/guide/commands/add.md +++ b/docs/guide/commands/add.md @@ -36,6 +36,13 @@ $ rye add flask --git https://github.com/pallets/flask Added flask @ git+https://github.com/pallets/flask as regular dependency ``` +Add a local dependency: + +``` +$ rye add packagename --path path/to/packagename +Added packagename @ file:///path/to/packagename as regular dependency +``` + ## Arguments * `...`: The package to add as PEP 508 requirement string. e.g. 'flask==2.2.3'