From ddd970676ead5d2d5a404f7ec5edc4e536be32a6 Mon Sep 17 00:00:00 2001 From: bjones1 Date: Mon, 3 Apr 2023 12:06:48 -0500 Subject: [PATCH] Fix: Keep Python version in sync with the Python version specified by the BookServer. This avoids the following Poetry dependency resolution error: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit root@aa3d58697a6d:/srv/web2py/applications/runestone# poetry update Updating dependencies Path /srv/bookserver-dev for bookserver-dev does not exist Path /srv/runestone-dev for runestone-dev does not exist Resolving dependencies... (1.6s) The current project's Python requirement (>=3.8.5,<4.0.0) is not compatible with some of the required packages Python requirement: - bookserver requires Python ^3.9.0, so it will not be satisfied for Python >=3.8.5,<3.9.0 Because runestone-poetry-project depends on bookserver (1.5.1) @ file:///srv/BookServer which requires Python ^3.9.0, version solving failed. • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties For bookserver, a possible solution would be to set the `python` property to ">=3.9.0,<4.0.0" https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies, https://python-poetry.org/docs/dependency-specification/#using-environment-markers --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f2c243452..5f8e41a3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ Paver = ">= 1.2.4" pgcli = "^3.0.0" psycopg2-binary = "^2.0.0" pylint = ">= 1.2.1" -python = ">= 3.8.5, < 4.0.0" +python = "^3.9.0" python-dateutil = ">= 2.4.2" pytz = ">= 2016.6.1" requests = ">= 2.10.0"