Skip to content

Commit 301fefe

Browse files
committed
chore(ci): issue2551368 make pip install gpg work for 24.04 ubuntu
Use the version installed on the test pypi server.
1 parent bcd9215 commit 301fefe

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/ci-test.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,18 @@ jobs:
235235
# docutils for ReStructuredText
236236
pip install beautifulsoup4 brotli docutils jinja2 \
237237
mistune==0.8.4 pyjwt pytz whoosh
238-
# gpg doesn't build on Ubuntu 24.04. Ignore failure on that
239-
# platform only. Grep os-release to cover matrix.os in
240-
# [ubunutu-latest, ubuntu-24.04].
241-
pip install gpg || ( save_status=$?; \
242-
if grep 24.04 /etc/os-release > /dev/null; then \
243-
echo "Ignoring error ubuntu-24.04: issue2551368"; exit 0; \
244-
else exit $save_status; fi; )
238+
# gpg on PyPi is currently broken with newer OS platform
239+
# ubuntu 24.04
240+
# used for newer Python versions. Temporarily use the
241+
# testing index, which contains a newer version of the
242+
# bindings on 24.04 or released version for other OS
243+
# versions. See issue2551368
244+
if grep 24.04 /etc/os-release > /dev/null; then \
245+
pip install --index-url https://test.pypi.org/simple/ \
246+
--extra-index-url https://pypi.org/simple --pre gpg; \
247+
else \
248+
pip install gpg; \
249+
fi
245250
246251
- name: Install aux packages that need versions differences
247252
# if zstd fails install, keep going with test, don't abort

0 commit comments

Comments
 (0)