From e96039c082868cf6c865d615791ec7af4976b063 Mon Sep 17 00:00:00 2001 From: Yunus Date: Wed, 2 Aug 2023 20:40:28 +0200 Subject: [PATCH 1/3] python 3.10.* --- README.md | 2 ++ pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b5f2aaacb..aaf66cdcd 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,8 @@ The test use [pymongo_inmemory](https://github.com/kaizendorks/pymongo_inmemory) Depending on your OS it might be necessary to configure it in order to get the correct version of MongoDB. E.g. for Ubuntu add the following environment variables: +To fix error: `pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 111] Connection refused, ...` when +running tests install mongodb locally. See https://github.com/kaizendorks/pymongo_inmemory/issues/63 ```dotenv PYMONGOIM__MONGO_VERSION=4.4 PYMONGOIM__OPERATING_SYSTEM=ubuntu diff --git a/pyproject.toml b/pyproject.toml index 9008cfe0e..c17355266 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "" authors = [] [tool.poetry.dependencies] -python = "3.9.*" +python = "3.10.*" falcon = "^3.0.1" falcon-auth = "*" pymongo = "*" From 382656e85c1906a167f6c72869d581518383b233 Mon Sep 17 00:00:00 2001 From: Yunus Date: Wed, 2 Aug 2023 20:46:27 +0200 Subject: [PATCH 2/3] update cli to python3.10 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2be17e405..8223ef1e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', 'pypy-3.9'] + python-version: ['3.10', 'pypy-3.10'] name: Test Python ${{ matrix.python-version }} steps: From ef740cac57fd5dceebcdfa8ec1d8583cf038bb42 Mon Sep 17 00:00:00 2001 From: Yunus Date: Thu, 3 Aug 2023 18:54:11 +0200 Subject: [PATCH 3/3] update dockerfiles --- .gitpod.Dockerfile | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 43f6748a3..c153da7db 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -9,7 +9,7 @@ RUN sudo apt-get update \ RUN brew install go-task/tap/go-task -ARG PYTHON_VERSION=pypy3.9-7.3.10 +ARG PYTHON_VERSION=pypy3.12-7.3.12 RUN cd /home/gitpod/.pyenv/plugins/python-build/../.. && git pull && cd - RUN pyenv install $PYTHON_VERSION RUN pyenv global $PYTHON_VERSION diff --git a/Dockerfile b/Dockerfile index 1eb74f02b..bbf92dd10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM pypy:3.9-7.3.10 +FROM pypy:3.12-7.3.12 RUN pip install poetry