ci: Remove Poetry version pin

Remove a Poetry version pin to 1.2.2, which causes installation issues
on systems with Python 3.11.

The pin was originally introduced because Poetry 1.3 was deemed
unstable, due to the following bugs:

* https://github.com/freedomofpress/dangerzone/issues/292#issuecomment-1351368122
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029156

The first problem still stands, but we can circumvent it with the
`--no-ansi` flag, at no functionality cost. The second problem has been
resolved, but it never affected Ubuntu Focal in the first place.

Refs #292
This commit is contained in:
Alex Pyrgiotis 2023-02-06 15:27:21 +02:00 committed by Alex Pyrgiotis
parent bbbf8224f1
commit 63a8748423
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -151,10 +151,10 @@ jobs:
- run: - run:
name: Install poetry dependencies name: Install poetry dependencies
command: | command: |
# Remove this pin once the upstream Poetry issue is fixed: sudo pip3 install poetry
# This flag is important, due to an open upstream Poetry issue:
# https://github.com/python-poetry/poetry/issues/7184 # https://github.com/python-poetry/poetry/issues/7184
sudo pip3 install poetry==1.2.2 poetry install --no-ansi
poetry install
- run: - run:
name: Prepare cache directory name: Prepare cache directory
command: | command: |