Skip to content

Commit

Permalink
Specify doit versions in setup.py instead of requirements.txt
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 10, 2017
1 parent 17d00a1 commit 46186d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions requirements-rtd.txt
@@ -0,0 +1,2 @@
-r requirements.txt
doit
2 changes: 0 additions & 2 deletions requirements.txt
@@ -1,5 +1,3 @@
doit>=0.28.0,<=0.29.0 ; python_version <= '3.3' # rq.filter: <=0.29.0
doit>=0.28.0 ; python_version >= '3.4'
Pygments>=1.6
Pillow>=2.4.0
python-dateutil>=2.4.0
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Expand Up @@ -26,7 +26,10 @@ def run_tests(self):
with open('requirements.txt', 'r') as fh:
dependencies = [l.strip() for l in fh]

extras = {}
extras = {
':python_version >= "3.4"': ['doit>=0.28.0'],
':python_version <= "3.3"': ['doit>=0.28.0,<=0.29.0'],
}

with open('requirements-extras.txt', 'r') as fh:
extras['extras'] = [l.strip() for l in fh][1:]
Expand Down

0 comments on commit 46186d1

Please sign in to comment.