Update to Poetry version 1.1.0b4

This commit is contained in:
Andrew Schwartzmeyer 2020-09-23 17:07:10 -07:00 коммит произвёл Andy Schwartzmeyer
Родитель 29019c4432
Коммит 929fbc0326
2 изменённых файлов: 10 добавлений и 5 удалений

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

@ -27,13 +27,13 @@ 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.0b2
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - --preview --version 1.1.0b4
echo "::add-path::$HOME/.poetry/bin"
- 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.0b2
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - --preview --version 1.1.0b4
echo "::add-path::$env:USERPROFILE\.poetry\bin"
- name: Install Python dependencies

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

@ -34,23 +34,28 @@ appear in your `PATH` before the Windows version, or this error will appear:
This is a temporary workaround! The currently released version of Poetry
(1.0.10) cannot handle the `azure-identity` package, so we need to install the
preview version (1.1.0b2).
preview version (1.1.0b4).
On Linux (or WSL):
```bash
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - --preview --version 1.1.0b2
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - --preview --version 1.1.0b4
source $HOME/.poetry/env
```
On Windows (in PowerShell):
```powershell
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - --preview --version 1.1.0a2
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - --preview --version 1.1.0b4
# the path can be added to system, so it applies to every terminal.
$env:PATH += ";$env:USERPROFILE\.poetry\bin"
```
If you already have Poetry installed, you can update it like:
```bash
poetry self update --preview 1.1.0b4
```
### Install Python packages
Then use Poetry to install LISAv3's Python package dependencies: