Bump required Python version to 3.5

This commit is contained in:
André Apitzsch 2020-10-31 10:34:21 +01:00 committed by Nick Hall
parent 4492999f21
commit adc50f7a08
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ Requirements
============
The following packages **MUST** be installed in order for Gramps to work:
* **Python** 3.3 or greater - The programming language used by Gramps. https://www.python.org/
* **Python** 3.5 or greater - The programming language used by Gramps. https://www.python.org/
* **GTK** 3.12 or greater - A cross-platform widget toolkit for creating graphical user interfaces. http://www.gtk.org/
* **pygobject** 3.12 or greater - Python Bindings for GLib/GObject/GIO/GTK+ https://wiki.gnome.org/Projects/PyGObject

View File

@ -167,7 +167,7 @@ from .gen.mime import mime_type_is_defined
#
#-------------------------------------------------------------------------
MIN_PYTHON_VERSION = (3, 3, 0, '', 0)
MIN_PYTHON_VERSION = (3, 5, 0, '', 0)
if not sys.version_info >= MIN_PYTHON_VERSION:
logging.warning(_("Your Python version does not meet the "
"requirements. At least python %(v1)d.%(v2)d.%(v3)d is needed to"

View File

@ -29,8 +29,8 @@ Gramps distutils module.
#check python version first
import sys
if sys.version_info < (3, 2):
raise SystemExit("Gramps requires Python 3.2 or later.")
if sys.version_info < (3, 5):
raise SystemExit("Gramps requires Python 3.5 or later.")
from distutils import log
from setuptools import setup