From 606fdcf33da4538f0eb5d045092b7ca7cf60c5b1 Mon Sep 17 00:00:00 2001 From: Guilherme Caminha Date: Tue, 3 Sep 2019 15:02:58 +0200 Subject: [PATCH] Using environment marker for version on setup.py --- setup.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 08baacc..1f4fe1f 100644 --- a/setup.py +++ b/setup.py @@ -22,19 +22,13 @@ 'requests' ] -# If python version is above 3.4 (built in enums supported enums) -if sys.version_info <= (3,4): - dependencies.append('enum') - -print("List of dependencies : {0}".format(str(dependencies))) - setup( name='CMRESHandler', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='1.0.0', + version='1.0.1', description='Elasticsearch Log handler for the logging library', long_description=long_description, @@ -93,6 +87,9 @@ # for example: # $ pip install -e .[dev,test] extras_require={ + ':python_version<="3.4"': [ + 'enum' + ], 'dev': ['check-manifest', 'six', 'pylint'], 'test': ['coverage'], },