Skip to content

Commit

Permalink
Allow 5.1 of PyYAML
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Jun 11, 2019
1 parent 8024933 commit 73b6ece
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ requires-dist =
colorama>=0.2.5,<=0.3.9
docutils>=0.10
rsa>=3.1.2,<=3.5.0
PyYAML>=3.10,<=3.13
PyYAML>=3.10,<=3.13; python_version=="2.6"
PyYAML>=3.10,<=5.1;python_version!="2.6"
s3transfer>=0.2.0,<0.3.0
argparse>=1.1; python_version=="2.6"
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,20 @@ def find_version(*file_paths):
'colorama>=0.2.5,<=0.3.9',
'docutils>=0.10',
'rsa>=3.1.2,<=3.5.0',
's3transfer>=0.2.0,<0.3.0',
'PyYAML>=3.10,<=3.13']
's3transfer>=0.2.0,<0.3.0']


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.1')

# For Python 2.6, we have to require a different verion of PyYAML since the latest
# versions dropped support for Python 2.6.
requires.append('PyYAML>=3.10,<=3.13')
else:
requires.append('PyYAML>=3.10,<=5.1')


setup_options = dict(
name='awscli',
Expand Down

0 comments on commit 73b6ece

Please sign in to comment.