Skip to content

Commit

Permalink
Documentation update about editable mode (python-poetry#703)
Browse files Browse the repository at this point in the history
* Add info about path dependencies being installed in editable mode
according to information here:
python-poetry#519 (comment)

* Fix missing verb in doc

Co-Authored-By: germn <[email protected]>
  • Loading branch information
2 people authored and sdispater committed Mar 6, 2019
1 parent de5015e commit 0a38553
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ poetry add my-package --path ../my-package/dist/my-package-0.1.0.tar.gz
poetry add my-package --path ../my-package/dist/my_package-0.1.0.whl
```

Path dependencies pointing to a local directory will be installed in editable mode (i.e. setuptools "develop mode").
It means that changes in the local directory will be reflected directly in environment.

If you don't want the dependency to be installed in editable mode you can specify it in the `pyproject.toml` file:

```
[tool.poetry.dependencies]
my-package = {path = "../my/path", develop = false}
```

### Options

* `--dev (-D)`: Add package as development dependency.
Expand Down

0 comments on commit 0a38553

Please sign in to comment.