Skip to content

Commit 4368b90

Browse files
authored
Merge pull request #10 from hayorov/feature/docs-poetry-1.x
DOC Update poetry export command usage
2 parents a9b4211 + 99d057f commit 4368b90

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,22 @@ pythonloc <app>
137137

138138
### Installing from `poetry.lock`
139139
pip cannot read poetry.lock files, so you'll have to generate a requirements.txt file.
140+
141+
Poetry 1.x provides `export` command:
142+
```bash
143+
poetry self:update --preview # install 1.x version of Poetry
144+
poetry export -f requirements.txt
145+
piploc install -r requirements.txt
146+
pythonloc <app>
140147
```
148+
149+
For Poetry 0.x you can adopt the next approach:
150+
```bash
141151
poetry run pip freeze > requirements.txt
142152
piploc install -r requirements.txt
143153
pythonloc <app>
144154
```
145155

146-
There may be an `export` command coming to `poetry` but it hasn't landed yet. See https://github.com/sdispater/poetry/pull/675.
147156

148157
### Installing from `Pipfile.lock`
149158
pip cannot read `Pipfile`s yet, only pipenv can. So you will need to generate requirements.txt using pipenv.

0 commit comments

Comments
 (0)