briggySmalls / cookiecutter-pypackage

Cookiecutter template for a poetry-managed Python package.
BSD 3-Clause "New" or "Revised" License
71 stars 34 forks source link

Restrict python version #19

Closed briggySmalls closed 3 years ago

briggySmalls commented 4 years ago

poetry add can fail because python version not restricted tightly enough.

python = "*" is not useful. Better to do something like python = "^3.5"?

briggySmalls commented 3 years ago

Seems to be related to a bug here: https://github.com/python-poetry/poetry/issues/655

i.e. this was an issue on my own system because I had multiple python versions managed by pyenv, and other filth. Now I've edited the shebang in ~/.poetry/bin/poetry to drop the python3 in favour of python it's all working neatly again.