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
Correct constraint extraction code for Python not installed error message
Some of the templates make use of Python packages. These dependencies are managed by the "Poetry" tool.
The templates provide a task for automatically installing the project's managed version of Poetry. Python is required to
install Poetry (and to use it after installation), so this is a prerequisite for project contributors using the template
locally. In order to make the project infrastructure more friendly for contributors, instead of failing with a cryptic
error if Python is not installed, the task starts by checking whether Python is installed, and if not displays a
friendly error message explaining the need to install it.
The project's standard Python version must later be available for use by Poetry, so it makes sense for the contributor
to install that version of Python in this case, rather than installing an arbitrary version and then needing to install
yet another copy later. For this reason, the task contains code to determine the version constraint for the Python
dependency and include that information in the error message.
Previously that code extracted the version constraint for Poetry instead of for Python as intended, resulting in
incorrect information in the error message. The code is hereby corrected to get the correct data.
0 commit comments