Skip to content

Commit 4648077

Browse files
Update poetry.md
1 parent e7e1a66 commit 4648077

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

markdown/poetry.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,15 @@
77
* Install from the [Setup](../README.md#setup) section
88
* Normal usage
99
```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) -
1712
1813
# Uninstall
1914
export POETRY_UNINSTALL=1
2015
curl -sSL https://install.python-poetry.org | $(which python3) -
2116
2217
# Change config
2318
poetry config virtualenvs.in-project true # .venv in `pwd`
24-
poetry config experimental.new-installer false # fixes JSONDecodeError on Python3.10
2519
2620
# Activate virtual environment (venv)
2721
poetry shell
@@ -49,7 +43,19 @@
4943
5044
# Generate requirements.txt
5145
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
5254
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
5561
```

0 commit comments

Comments
 (0)