upgrade poetry installation way

Keep 1.1.5 for stable
This commit is contained in:
Chi Song 2021-04-09 12:31:46 +08:00
Родитель bad4e949c7
Коммит 4222aff80f
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -26,14 +26,14 @@ jobs:
- name: Install Poetry for Linux
if: runner.os == 'Linux'
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - --preview --version 1.1.4
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - --version 1.1.5
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install Poetry for Windows
if: runner.os == 'Windows'
run: |
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - --preview --version 1.1.4
echo "$env:USERPROFILE\.poetry\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py -UseBasicParsing).Content | python - --version 1.1.5
echo "$env:APPDATA\Python\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install Python dependencies (Linux-only)
if: runner.os == 'Linux'

Просмотреть файл

@ -72,8 +72,8 @@ Note, it's important to enter LISA's folder to run below command, since Poetry m
### Install Poetry in Linux
```bash
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
source $HOME/.poetry/env
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python3 -
source $HOME/.local/bin
poetry install
```