From 96f265a4a28a867c06b0cc97677c5897ac344a20 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 26 May 2024 03:31:25 +0200 Subject: [PATCH] [CI/CD] Use a base Alpine image instead of `python:3.11-alpine`. Weird errors seem to happen on Twine on that image: ``` Traceback (most recent call last): File "/usr/bin/twine", line 5, in from twine.__main__ import main File "/usr/lib/python3.11/site-packages/twine/__init__.py", line 32, in import importlib.metadata File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 17, in from . import _adapters, _meta File "/usr/lib/python3.11/importlib/metadata/_adapters.py", line 3, in import email.message File "/usr/lib/python3.11/email/message.py", line 15, in from email import utils File "/usr/lib/python3.11/email/utils.py", line 28, in import random File "/usr/lib/python3.11/random.py", line 49, in from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil ImportError: Error relocating /usr/lib/python3.11/lib-dynload/math.cpython-311-x86_64-linux-musl.so: _PyModule_Add: symbol not found ``` --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1f1e1469c..91d63ad97 100644 --- a/.drone.yml +++ b/.drone.yml @@ -263,7 +263,7 @@ steps: ### - name: update-pip-package - image: python:3.11-alpine + image: alpine environment: TWINE_USERNAME: from_secret: pypi_user