Skip to content

Commit

Permalink
Improve setup.py and increase version to 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcs committed Jun 13, 2017
1 parent dbb50ec commit 6ceefa6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6ceefa6

Please sign in to comment.