This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch release-v0.16
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.16 by this push:
     new 6b33170e3 fix: Downgrade Python to 3.9 to support dbt plugin (#4946)
6b33170e3 is described below

commit 6b33170e34f63ce8904f42b202f26ec449a8a15c
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/pydevlake/pyproject.toml       | 2 +-
 backend/python/requirements.txt               | 6 ++++--
 backend/test/remote/fakeplugin/pyproject.toml | 6 ++++++
 4 files changed, 12 insertions(+), 5 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/pydevlake/pyproject.toml 
b/backend/python/pydevlake/pyproject.toml
index e46ee96e5..0aa69ab09 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
diff --git a/backend/test/remote/fakeplugin/pyproject.toml 
b/backend/test/remote/fakeplugin/pyproject.toml
index c91fa4692..bd4e6f3e2 100644
--- a/backend/test/remote/fakeplugin/pyproject.toml
+++ b/backend/test/remote/fakeplugin/pyproject.toml
@@ -20,8 +20,14 @@ description = "Fake python plugin used only in tests"
 authors = []
 
 [tool.poetry.dependencies]
+<<<<<<< HEAD:backend/test/remote/fakeplugin/pyproject.toml
 python = "^3.10"
 pydevlake = { path = "../../../python/pydevlake", develop = false }
+=======
+python = "^3.9"
+pydevlake = { path = "../../pydevlake", develop = true }
+iso8601 = "^1.1.0"
+>>>>>>> acda8dad (fix: Downgrade Python to 3.9 to support dbt plugin 
(#4946)):backend/python/plugins/azuredevops/pyproject.toml
 
 
 [build-system]

Reply via email to