Skip to content

Commit

Permalink
Fixes #22 #26: Scoped ordereddict to < Python 2.7 and enum34 to < Pyt…
Browse files Browse the repository at this point in the history
…hon 3.4.
  • Loading branch information
donnemartin committed Sep 24, 2015
1 parent 64e115d commit f109bc8
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions setup.py
@@ -1,9 +1,26 @@
from saws.__init__ import __version__
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup

install_requires = [
'awscli>=1.7.46',
'click>=4.0',
'configobj>=5.0.6',
'fuzzyfinder>=1.0.0',
'prompt-toolkit==0.52',
'six>=1.9.0',
'pygments>=2.0.2'
]

if sys.version_info < (2, 7):
# Introduced in Python 2.7
install_requires.append('ordereddict>=1.1')
if sys.version_info < (3, 4):
# Backport of Python 3.4 enums to earlier versions
install_requires.append('enum34>=1.0.4')

setup(
description='SAWS: A Supercharged AWS Command Line Interface (CLI)',
Expand All @@ -13,17 +30,7 @@
author_email='donne.martin@gmail.com',
version=__version__,
license='Apache License 2.0',
install_requires=[
'awscli>=1.7.46',
'click>=4.0',
'configobj >= 5.0.6',
'enum34>=1.0.4',
'fuzzyfinder>=1.0.0',
'ordereddict>=1.1',
'prompt-toolkit==0.52',
'six>=1.9.0',
'pygments>=2.0.2'
],
install_requires=install_requires,
extras_require={
'testing': [
'mock>=1.0.1',
Expand Down

0 comments on commit f109bc8

Please sign in to comment.