RunestoneInteractive / RunestoneServer

Interactive books for computer science and mathematics
http://runestoneinteractive.org
Other
575 stars 503 forks source link

Fix: Keep Python version in sync with the Python version specified by the BookServer #2058

Closed bjones1 closed 1 year ago

bjones1 commented 1 year ago

This avoids the following Poetry dependency resolution error:

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