You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.
Describe the bug
Trying to create a new interpreter on Debian with python3.9 generates invalid pyproject.toml
To Reproduce
Steps to reproduce the behavior:
Install python3.9 on Debian.
Try to generate a virtualenv based on that
Error:
ParseConstraintError
Could not parse version constraint: ^3.9.1+
at ~/.poetry/lib/poetry/_vendor/py3.6/poetry/core/semver/__init__.py:164 in parse_single_constraint
160│ else:
161│ return version
162│
163│ raise ParseConstraintError(
→ 164│ "Could not parse version constraint: {}".format(constraint)
165│ )
166│
This is because the version of the Debian Python is 3.9.1+ and that gets put in the deps:
[tool.poetry.dependencies]
python = "^3.9.1+"
Expected behavior
poetry init suggests ^3.9, that's probably a more sensible value.
Environments (please complete the following information):
Python 3.9 is only available on testing/sid, but it should still work.
The text was updated successfully, but these errors were encountered:
Describe the bug
Trying to create a new interpreter on Debian with python3.9 generates invalid pyproject.toml
To Reproduce
Steps to reproduce the behavior:
This is because the version of the Debian Python is
3.9.1+
and that gets put in the deps:Expected behavior
poetry init suggests
^3.9
, that's probably a more sensible value.Environments (please complete the following information):
Python 3.9 is only available on testing/sid, but it should still work.
The text was updated successfully, but these errors were encountered: