I have a poetry based Django project using Python 3.10.2. I would like to upgrade the project to use Python 3.11.0.
What is the proper way to do that?
Should I nuke poetry.lock then update the pyproject.toml to
[tool.poetry.dependencies]
python = "^3.11"
The ability to easily upgrade to newer versions of Python seems like it should be a core feature but I don't see a command to automate the process.
poetry env use python3.11.0
or the full path to that python version – Bilipyenv local 3.11.0
poetry env use 3.11.0
poetry install
When I runpoetry env info
I see that the location of the env has been moved out of the standard$HOME/.cache/pypoetry/...
location and into the project root. It fires up and runs just fine. – Dimetric