Skip to content

Commit

Permalink
fix: add pymysql
Browse files Browse the repository at this point in the history
  • Loading branch information
xuan-how committed Sep 27, 2024
1 parent ea21ddd commit abef6ba
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 18 deletions.
4 changes: 4 additions & 0 deletions saas/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

import environ
from celery.schedules import crontab
import pymysql

# connect mysql
pymysql.install_as_MySQLdb()

# environ
env = environ.Env()
Expand Down
32 changes: 17 additions & 15 deletions saas/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion saas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ license = "MIT License"
python = "3.6.6"
# blueapps requirement
Django = "3.2.25"
mysqlclient = "2.0.1"
pymysql = "1.0.2"
MarkupSafe = "2.0.1"
requests = "2.27.1"
celery = "5.1.2"
Expand Down
2 changes: 1 addition & 1 deletion saas/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ itypes==1.2.0; python_version >= "3.6"
jinja2==3.0.3; python_version >= "3.6"
kombu==5.1.0; python_version >= "3.6"
markupsafe==2.0.1; python_version >= "3.6"
mysqlclient==2.0.1; python_version >= "3.5"
openpyxl==3.0.9; python_version >= "3.6"
opentelemetry-api==1.8.0; python_version >= "3.6"
opentelemetry-exporter-jaeger-proto-grpc==1.7.1; python_version >= "3.6"
Expand Down Expand Up @@ -96,6 +95,7 @@ pydantic==1.9.2; python_full_version >= "3.6.1"
pyinstrument-cext==0.2.4
pyinstrument==3.1.3
pyjwt==1.7.1
pymysql==1.0.2; python_version >= "3.6"
pyparsing==2.4.7; python_full_version >= "3.6.1" and python_full_version < "4.0.0" and python_version >= "3.6"
python-crontab==2.6.0
python-dateutil==2.8.2; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.3.0"
Expand Down
2 changes: 1 addition & 1 deletion saas/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ mccabe==0.6.1; python_version >= "3.6" and python_full_version < "3.0.0" or pyth
mock==1.0.1
mypy-extensions==0.4.3; python_full_version >= "3.6.2" and python_version >= "3.5"
mypy==0.910; python_version >= "3.5"
mysqlclient==2.0.1; python_version >= "3.5"
networkx==2.5; python_version >= "3.6"
openpyxl==3.0.9; python_version >= "3.6"
opentelemetry-api==1.8.0; python_version >= "3.6"
Expand Down Expand Up @@ -123,6 +122,7 @@ pyflakes==2.3.1; python_version >= "3.6" and python_full_version < "3.0.0" or py
pyinstrument-cext==0.2.4
pyinstrument==3.1.3
pyjwt==1.7.1
pymysql==1.0.2; python_version >= "3.6"
pyparsing==2.4.7; python_full_version >= "3.6.1" and python_full_version < "4.0.0" and python_version >= "3.6"
pyproject-flake8==0.0.1a2
pytest-cov==3.0.0; python_version >= "3.6"
Expand Down

0 comments on commit abef6ba

Please sign in to comment.