Skip to content

Commit

Permalink
Remove version constraints from setup.py
Browse files Browse the repository at this point in the history
`pip` can behave unexpectedly with some version constraints.
  1. It will abort when constraints aren't satisfiable using the highest version
  2. It will not consider multiple constraints on a single dependency

In general, it is safer to remove constraints from setup.py, and allow
users to ensure install which-ever dependencies work.
  • Loading branch information
nathan-muir committed Jul 18, 2017
1 parent 2e8f1e4 commit aa93d67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cryptography>=1.5
boto3>=1.1.1
click>=6.6
PyYAML>=3.10
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ def read_markdown(*file_paths):

setup_requires=[] + pytest_runner + setupext_pip,
install_requires=[
'cryptography~=1.5',
'boto3>=1.1.1',
'click>=6.6',
'cryptography',
'boto3',
'click',
'six'
],
tests_require=[
'pytest',
],
extras_require={
'yaml': ['PyYAML>=3.10'],
'yaml': ['PyYAML'],
'templates': ['jinja2'],
'documentation': ['pyandoc'],
},
Expand Down

0 comments on commit aa93d67

Please sign in to comment.