Skip to content

Commit

Permalink
Use the appropriate version of Paramiko for Python 2.6 environments
Browse files Browse the repository at this point in the history
Paramiko dropped support for Python 2.6 in v2.4.0. Pinning the version to
v.2.3.1 for Python 2.6 environments.

Signed-off-by: Raghu Raja <[email protected]>
  • Loading branch information
rajachan committed Dec 21, 2017
1 parent 33b11c1 commit 3467dfe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ python:
- "3.6"

install:
- pip install -r requirements.txt
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install -r requirements26.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then pip install -r requirements.txt; fi
- pip install -e .

sudo: false
Expand Down
1 change: 1 addition & 0 deletions requirements26.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
paramiko==2.3.1
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ def read(fname):
console_scripts = ['sqswatcher = sqswatcher.sqswatcher:main',
'nodewatcher = nodewatcher.nodewatcher:main']
version = "1.4.2"
requires = ['boto>=2.48.0', 'paramiko>=2.3.1', 'python-dateutil>=2.6.1']
requires = ['boto>=2.48.0', 'python-dateutil>=2.6.1']

if sys.version_info[:2] == (2, 6):
# For python2.6 we have to require argparse since it
# was not in stdlib until 2.7.
requires.append('argparse>=1.4')
requires.append('paramiko==2.3.1')
else:
requires.append('paramiko>=2.3.1')

setup(
name = "cfncluster-node",
Expand Down

0 comments on commit 3467dfe

Please sign in to comment.