Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"ghcr.io/jungaretti/features/make:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2.12.0": {},
"ghcr.io/devcontainers/features/python:1": {
"version": "3.9"
"version": "3.11"
},
"ghcr.io/devcontainers-extra/features/poetry:2": {},
"ghcr.io/devcontainers/features/node:1": {
Expand Down
2 changes: 1 addition & 1 deletion 2 backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ RUN cd /usr/local/deps/target/lib && \
done


FROM python:3.9-slim-bookworm as base
FROM python:3.11-slim-bookworm as base

RUN apt-get update && \
apt-get install -y python3-dev python3-pip tar pkg-config curl libssh2-1 zlib1g libffi-dev default-libmysqlclient-dev libpq-dev tini git openssh-client corkscrew && \
Expand Down
10 changes: 5 additions & 5 deletions 10 backend/python/DevelopmentSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ limitations under the License.
For the Python plugin tests to run properly, the following steps must be taken:

1. The following packages are required for Ubuntu: `libffi-dev default-libmysqlclient-dev libpq-dev`
2. `python3.9` is required by the time of this document.
- Try `deadsnakes` if you are using Ubuntu 22.04 or above, the `python3.9-dev` is required.
- Use `virtualenv` if you are having multiple python versions. `virtualenv -p python3.9 path/to/venv` and `source path/to/venv/bin/activate.sh` should do the trick
3. both `mysql-client` and `postgresql` are required.
2. `python3.11` is required by the time of this document.
- Try `deadsnakes` if you are using Ubuntu 22.04 or above, the `python3.11-dev` is required.
- Use `virtualenv` if you are having multiple python versions. `virtualenv -p python3.11 path/to/venv` and `source path/to/venv/bin/activate.sh` should do the trick
3. both `mysql-client` and `postgresql` are required.
- `postgresql` is required for `psycopg2` to work
4. [poetry](https://python-poetry.org/) is required.
4. [poetry](https://python-poetry.org/) is required.
- run `cd backend/python/pydevlake && poetry install`
- run `cd backend/python/plugins/azuredevops && poetry install`
5. `sqlalchemy` won't work with `localhost` in the database connection string, use `127.0.0.1` instead
2 changes: 1 addition & 1 deletion 2 backend/python/plugins/azuredevops/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ authors = ["Hezheng Yin <hezheng@merico.dev>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "~3.9"
python = ">=3.11,<3.12"
pydevlake = { path = "../../pydevlake", develop = true }


Expand Down
2 changes: 1 addition & 1 deletion 2 backend/python/pydevlake/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ license = "Apache-2.0"
readme = "README.md"

[tool.poetry.dependencies]
python = "~3.9"
python = ">=3.11,<3.12"
sqlmodel = "^0.0.8"
mysqlclient = "^2.1.1"
requests = "^2.28.1"
Expand Down
2 changes: 1 addition & 1 deletion 2 backend/python/test/fakeplugin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ description = "Fake python plugin used only in tests"
authors = []

[tool.poetry.dependencies]
python = "~3.9"
python = ">=3.11,<3.12"
pydevlake = { path = "../../pydevlake", develop = true }


Expand Down
2 changes: 1 addition & 1 deletion 2 backend/python/uv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ sync_project() {
rm -rf .venv
fi
if [ ! -x .venv/bin/python ]; then
uv venv --python "${DEVLAKE_PYTHON_VERSION:-3.9}" .venv
uv venv --python "${DEVLAKE_PYTHON_VERSION:-3.11}" .venv
fi
uv pip install --python .venv/bin/python -e .
}
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.