diff --git a/doc/setup/install.rst b/doc/setup/install.rst index 4b9d0735a26..0dd98f59f92 100644 --- a/doc/setup/install.rst +++ b/doc/setup/install.rst @@ -200,9 +200,7 @@ If you need this feature, you can install the python module like this: Fedora '''''' -Odoo 13.0 'rpm' package supports Fedora 26. -As of 2017, CentOS does not have the minimum Python requirements (3.5) for -Odoo 13.0. +Odoo 13.0 'rpm' package supports Fedora 30. Prepare ^^^^^^^ @@ -330,13 +328,13 @@ Prepare Python ^^^^^^ -Odoo requires Python 3.5 or later to run. Use the the official `Python 3 installer +Odoo requires Python 3.6 or later to run. Use the the official `Python 3 installer `_ to download and install Python 3 on your machine. During installation, check **Add Python 3 to PATH**, then click **Customize Installation** and make sure that **pip** is checked. -.. note:: If Python 3 is already installed, make sure that it is 3.5 or above, as previous versions +.. note:: If Python 3 is already installed, make sure that it is 3.6 or above, as previous versions are not compatible with Odoo. .. code-block:: doscon @@ -490,10 +488,10 @@ Prepare Python ^^^^^^ -Odoo requires Python 3.5 or later to run. Use your package manager to download and install Python 3 +Odoo requires Python 3.6 or later to run. Use your package manager to download and install Python 3 on your machine if it is not already done. -.. note:: If Python 3 is already installed, make sure that it is 3.5 or above, as previous versions +.. note:: If Python 3 is already installed, make sure that it is 3.6 or above, as previous versions are not compatible with Odoo. .. code-block:: console @@ -646,10 +644,10 @@ Prepare Python ^^^^^^ -Odoo requires Python 3.5 or later to run. Use your preferred package manager (homebrew_, macports_) +Odoo requires Python 3.6 or later to run. Use your preferred package manager (homebrew_, macports_) to download and install Python 3 on your machine if it is not already done. -.. note:: If Python 3 is already installed, make sure that it is 3.5 or above, as previous versions +.. note:: If Python 3 is already installed, make sure that it is 3.6 or above, as previous versions are not compatible with Odoo. .. code-block:: console diff --git a/odoo/__init__.py b/odoo/__init__.py index 49c78193233..30da3608237 100644 --- a/odoo/__init__.py +++ b/odoo/__init__.py @@ -10,9 +10,8 @@ #---------------------------------------------------------- __path__ = __import__('pkgutil').extend_path(__path__, __name__) -# As of version 12.0, python 2 is no longer supported, ensure py version is >= 3.5 import sys -assert sys.version_info > (3, 5), "Python 2 detected, Odoo requires Python >= 3.5 to run." +assert sys.version_info > (3, 6), "Outdated python version detected, Odoo requires Python >= 3.6 to run." #---------------------------------------------------------- # Running mode flags (gevent, prefork) diff --git a/setup.py b/setup.py index 00d90191525..47ea33a5a82 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ setup( 'xlsxwriter', 'xlwt', ], - python_requires='>=3.5', + python_requires='>=3.6', extras_require={ 'ldap': ['pyldap'], 'SSL': ['pyopenssl'],