Commit 455def65 by 8F3E Committed by GitHub

Add note for setting up poetry in a pre-existing project. (#2641)

* Add note for setting up poetry in a pre-existing project.

Resolves: #2630

* Show poetry init in more detail

* Update docs to reflect real poetry init usage
parent a3ef6dcb
...@@ -41,6 +41,16 @@ python = "*" ...@@ -41,6 +41,16 @@ python = "*"
pytest = "^3.4" pytest = "^3.4"
``` ```
### Initialising a pre-existing project
Instead of creating a new project, Poetry can be used to 'initialise' a pre-populated
directory. To interactively create a `pyproject.toml` file in directory `pre-existing-project`:
```bash
cd pre-existing-project
poetry init
```
### Specifying dependencies ### Specifying dependencies
If you want to add dependencies to your project, you can specify them in the `tool.poetry.dependencies` section. If you want to add dependencies to your project, you can specify them in the `tool.poetry.dependencies` section.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment