|
7 | 7 | * Install from the [Setup](../README.md#setup) section |
8 | 8 | * Normal usage |
9 | 9 | ```bash |
10 | | - # Install (modifies $PATH) |
11 | | - curl -sSL https://install.python-poetry.org | $(which python3) - # append `--no-modify-path` to EOL if you know what you're doing |
12 | | -
|
13 | | - # Install via asdf w/version |
14 | | - asdf plugin-add poetry https://github.com/asdf-community/asdf-poetry.git |
15 | | - ASDF_POETRY_INSTALL_URL=https://install.python-poetry.org asdf install poetry 1.2.0b1 |
16 | | - asdf local poetry 1.2.0b1 |
| 10 | + # Install |
| 11 | + curl -sSL https://install.python-poetry.org | $(which python3) - |
17 | 12 |
|
18 | 13 | # Uninstall |
19 | 14 | export POETRY_UNINSTALL=1 |
20 | 15 | curl -sSL https://install.python-poetry.org | $(which python3) - |
21 | 16 |
|
22 | 17 | # Change config |
23 | 18 | poetry config virtualenvs.in-project true # .venv in `pwd` |
24 | | - poetry config experimental.new-installer false # fixes JSONDecodeError on Python3.10 |
25 | 19 |
|
26 | 20 | # Activate virtual environment (venv) |
27 | 21 | poetry shell |
|
49 | 43 |
|
50 | 44 | # Generate requirements.txt |
51 | 45 | poetry export -f requirements.txt --output requirements.txt --without-hashes |
| 46 | + ``` |
| 47 | +* Poetry with `asdf` |
| 48 | + ```bash |
| 49 | + # Add poetry asdf plugin |
| 50 | + asdf plugin-add poetry https://github.com/asdf-community/asdf-poetry.git |
| 51 | +
|
| 52 | + # Install latest version via asdf |
| 53 | + asdf install poetry latest |
52 | 54 |
|
53 | | - # Uninstall Poetry (e.g., troubleshooting) |
54 | | - POETRY_UNINSTALL=1 bash -c 'curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py' | $(which python3) - |
| 55 | + # Set latest version as default |
| 56 | + asdf global poetry latest |
| 57 | +
|
| 58 | + # Install via asdf w/version |
| 59 | + ASDF_POETRY_INSTALL_URL=https://install.python-poetry.org asdf install poetry 1.2.2 |
| 60 | + asdf local poetry 1.2.2 |
55 | 61 | ``` |
0 commit comments