mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
ci: Install Poetry via APT on Debian Bookworm
We no longer need to install Poetry via PyPI, since the upstream Debian issues have been fixed. Moreover, PEP 668 [1] is now enforced in Debian Bookworm, so we can't install Poetry globally via `pip` in any case. For these reasons, prefer installing Poetry via APT. [1]: https://peps.python.org/pep-0668/ Refs #351
This commit is contained in:
parent
e840c7a18c
commit
7979dbd653
1 changed files with 4 additions and 10 deletions
|
@ -86,19 +86,13 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Install dev. dependencies
|
name: Install dev. dependencies
|
||||||
# Install only the necessary packages to run our linters.
|
# Install only the necessary packages to run our linters.
|
||||||
# FIXME: We currently install Poetry from PyPI, due to an upstream
|
|
||||||
# Debian bug [1]. Once this bug is fixed, revert to installing
|
|
||||||
# Poetry from the Debian repos instead, which is more stable.
|
|
||||||
#
|
#
|
||||||
# Also, we run poetry with --no-ansi, to sidestep a Poetry bug
|
# We run poetry with --no-ansi, to sidestep a Poetry bug that
|
||||||
# [2] that currently exists in 1.3.
|
# currently exists in 1.3. See:
|
||||||
#
|
# https://github.com/freedomofpress/dangerzone/issues/292#issuecomment-1351368122
|
||||||
# [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029156
|
|
||||||
# [2]: https://github.com/freedomofpress/dangerzone/issues/292#issuecomment-1351368122
|
|
||||||
command: |
|
command: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y make python3 python3-pip --no-install-recommends
|
apt-get install -y make python3 python3-poetry --no-install-recommends
|
||||||
pip install poetry
|
|
||||||
poetry install --no-ansi --only lint
|
poetry install --no-ansi --only lint
|
||||||
- run:
|
- run:
|
||||||
name: Run linters to enforce code style
|
name: Run linters to enforce code style
|
||||||
|
|
Loading…
Reference in a new issue