From 6ceefa6583059b0c4869127f741399dc533618ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santos?= Date: Tue, 13 Jun 2017 18:03:04 +0200 Subject: [PATCH] Improve setup.py and increase version to 1.2 --- setup.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 64aface..dfdbdae 100644 --- a/setup.py +++ b/setup.py @@ -2,17 +2,19 @@ # -*- coding: utf-8 -*- import platform +import sys from setuptools import setup, find_packages VERSION_MAJOR = 1 -VERSION_MINOR = 1 -VERSION = '{VERSION_MAJOR}.{VERSION_MINOR}'.format_map(locals()) +VERSION_MINOR = 2 +VERSION = f'{VERSION_MAJOR}.{VERSION_MINOR}' python_version_major, python_version_minor = (int(version) for version in platform.python_version_tuple()[:-1]) -if python_version_major < 3: - print("Ecological doesn't support Python 2") +if (python_version_major, python_version_minor) < (3, 6): + print("Ecological doesn't support Python <= 3.6") + sys.exit(1) setup(