Skip to content

Commit

Permalink
Merge pull request #190 from WikiMovimentoBrasil/2025-02-fix-mysqlcli…
Browse files Browse the repository at this point in the history
…ent-dependency

fix: use mysqlclient as dependency and put toolforge necessary env vars
  • Loading branch information
arcstur authored Feb 24, 2025
2 parents 8965ff0 + 92fbde1 commit d124e68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ toolforge webservice --backend=kubernetes python3.11 shell -- \
webservice-python-bootstrap && \
source venv/bin/activate && \
echo "==> Installing dependencies..." && \
export MYSQLCLIENT_CFLAGS="-I/usr/include/mariadb/" && \
export MYSQLCLIENT_LDFLAGS="-L/usr/lib/x86_64-linux-gnu/ -lmariadb" && \
pip install -r requirements.txt && \
echo "==> Running migrations..." && \
python3 src/manage.py migrate && \
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ djangorestframework==3.15.2
markdown==3.7 # Markdown support for the browsable API.
django-filter==24.3 #
jsonpatch==1.33
pymysql
mysqlclient==2.2.7
2 changes: 0 additions & 2 deletions src/qsts3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import pymysql

pymysql.install_as_MySQLdb()

0 comments on commit d124e68

Please sign in to comment.