diff --git a/README.md b/README.md index 4d1a0a68f6a..45522c40bcc 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,10 @@ ensuring you have the right stack everywhere. ![Poetry Install](https://raw.githubusercontent.com/python-poetry/poetry/master/assets/install.gif) -It supports Python 2.7 and 3.4+. +It supports Python 2.7 and 3.5+. + +**Note**: Python 2.7 and 3.5 will no longer be supported in the next feature release (1.2). +You should consider updating your Python version to a supported one. [![Tests Status](https://github.com/python-poetry/poetry/workflows/Tests/badge.svg?branch=master&event=push)](https://github.com/python-poetry/poetry/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush) diff --git a/docs/docs/index.md b/docs/docs/index.md index 9fe5b372c61..0ab7721ee15 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -6,9 +6,14 @@ It allows you to declare the libraries your project depends on and it will manag ## System requirements -Poetry requires Python 2.7 or 3.4+. It is multi-platform and the goal is to make it work equally well +Poetry requires Python 2.7 or 3.5+. It is multi-platform and the goal is to make it work equally well on Windows, Linux and OSX. +!!! note + + Python 2.7 and 3.5 will no longer be supported in the next feature release (1.2). + You should consider updating your Python version to a supported one. + ## Installation diff --git a/poetry/console/application.py b/poetry/console/application.py index 72f293124f8..e1d7c2aa525 100644 --- a/poetry/console/application.py +++ b/poetry/console/application.py @@ -1,3 +1,5 @@ +import sys + from cleo import Application as BaseApplication from poetry.__version__ import __version__ @@ -38,6 +40,24 @@ def __init__(self): for command in self.get_default_commands(): self.add(command) + if sys.version_info[:2] < (3, 6): + python_version = "{}".format( + ".".join(str(v) for v in sys.version_info[:2]) + ) + poetry_feature_release = "1.2" + message = ( + "\n" + "Python {} will no longer be supported " + "in the next feature release of Poetry ({}).\n" + "You should consider updating your Python version to a supported one.\n\n" + "" + "Note that you will still be able to manage Python {} projects " + "by using the env command.\n" + "See https://python-poetry.org/docs/managing-environments/ " + "for more information." + ).format(python_version, poetry_feature_release, python_version) + self._preliminary_io.write_line("{}\n".format(message)) + @property def poetry(self): from poetry.factory import Factory