This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new acda8dadd fix: Downgrade Python to 3.9 to support dbt plugin (#4946)
acda8dadd is described below
commit acda8dadd904a88528dc39959000ba5cbd22eb2e
Author: Keon Amini <[email protected]>
AuthorDate: Tue Apr 18 01:47:32 2023 -0500
fix: Downgrade Python to 3.9 to support dbt plugin (#4946)
---
backend/Dockerfile | 3 +--
backend/python/plugins/azuredevops/pyproject.toml | 2 +-
backend/python/pydevlake/pyproject.toml | 2 +-
backend/python/requirements.txt | 6 ++++--
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/backend/Dockerfile b/backend/Dockerfile
index 417cc4782..ccae398a4 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -111,7 +111,7 @@ RUN cd /usr/local/deps/target/lib && \
done
-FROM python:3.11.2-slim-bullseye as base
+FROM python:3.9.9-slim-bullseye as base
ENV PYTHONUNBUFFERED=1
@@ -136,7 +136,6 @@ WORKDIR /app
# Setup Python
COPY python/ /app/python/
RUN python3 -m pip install --no-cache --upgrade pip setuptools && \
- python3 -m pip install --no-cache dbt-mysql dbt-postgres && \
python3 -m pip install --no-cache -r python/requirements.txt && \
rm -fr /usr/share/python-wheels/*
# Setup Python Poetry package manager
diff --git a/backend/python/plugins/azuredevops/pyproject.toml
b/backend/python/plugins/azuredevops/pyproject.toml
index 762acbf9e..aad5b9602 100644
--- a/backend/python/plugins/azuredevops/pyproject.toml
+++ b/backend/python/plugins/azuredevops/pyproject.toml
@@ -21,7 +21,7 @@ authors = ["Hezheng Yin <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
-python = "^3.10"
+python = "^3.9"
pydevlake = { path = "../../pydevlake", develop = true }
iso8601 = "^1.1.0"
diff --git a/backend/python/pydevlake/pyproject.toml
b/backend/python/pydevlake/pyproject.toml
index 1e6f11b6a..a882f9220 100644
--- a/backend/python/pydevlake/pyproject.toml
+++ b/backend/python/pydevlake/pyproject.toml
@@ -22,7 +22,7 @@ license = "Apache-2.0"
readme = "README.md"
[tool.poetry.dependencies]
-python = "^3.10"
+python = "^3.9"
sqlmodel = "^0.0.8"
mysqlclient = "^2.1.1"
requests = "^2.28.1"
diff --git a/backend/python/requirements.txt b/backend/python/requirements.txt
index 6575706b4..fe3fc3fd6 100644
--- a/backend/python/requirements.txt
+++ b/backend/python/requirements.txt
@@ -1,3 +1,5 @@
-# runtime miscellaneous dependencies
+# runtime dependencies
setuptools
-wheel
\ No newline at end of file
+wheel
+dbt-mysql
+dbt-postgres
\ No newline at end of file