Skip to content

Commit d124e68

Browse files
authored
Merge pull request #190 from WikiMovimentoBrasil/2025-02-fix-mysqlclient-dependency
fix: use mysqlclient as dependency and put toolforge necessary env vars
2 parents 8965ff0 + 92fbde1 commit d124e68

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ toolforge webservice --backend=kubernetes python3.11 shell -- \
1212
webservice-python-bootstrap && \
1313
source venv/bin/activate && \
1414
echo "==> Installing dependencies..." && \
15+
export MYSQLCLIENT_CFLAGS="-I/usr/include/mariadb/" && \
16+
export MYSQLCLIENT_LDFLAGS="-L/usr/lib/x86_64-linux-gnu/ -lmariadb" && \
1517
pip install -r requirements.txt && \
1618
echo "==> Running migrations..." && \
1719
python3 src/manage.py migrate && \

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ djangorestframework==3.15.2
88
markdown==3.7 # Markdown support for the browsable API.
99
django-filter==24.3 #
1010
jsonpatch==1.33
11-
pymysql
11+
mysqlclient==2.2.7

src/qsts3/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import pymysql
21

3-
pymysql.install_as_MySQLdb()

0 commit comments

Comments
 (0)