Skip to content

Commit

Permalink
add networkx as test requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
joernhees committed Mar 9, 2015
1 parent 1edb21b commit f393cf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ install:
- if [[ ${TRAVIS_PYTHON_VERSION%%.*} == '2' ]]; then pip install --default-timeout 60 -r requirements.py2.txt; pip install --default-timeout 60 "html5lib";fi
- if [[ ${TRAVIS_PYTHON_VERSION%%.*} == '3' ]]; then pip install --default-timeout 60 -r requirements.py3.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install --upgrade "https://bitbucket.org/gjhiggins/isodate/downloads/isodate-0.4.8.tar.gz"; pip install --default-timeout 60 "elementtree"; fi
- if [[ $TRAVIS_PYTHON_VERSION != '2.5' ]]; then pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1; fi
- if [[ $TRAVIS_PYTHON_VERSION != '2.5' ]]; then pip install --default-timeout 60 coverage coveralls nose-timer networkx && export HAS_COVERALLS=1; fi
- python setup.py install

before_script:
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def setup_python3():
from setuptools import setup
# kwargs['use_2to3'] = True # is done in setup_python3 above already
kwargs['install_requires'] = ['isodate', 'pyparsing']
kwargs['tests_require'] = ['html5lib']
kwargs['tests_require'] = ['html5lib', 'networkx']
kwargs['requires'] = [
'isodate', 'pyparsing',
'SPARQLWrapper']
Expand All @@ -53,6 +53,7 @@ def setup_python3():
kwargs['install_requires'] = [
'isodate',
'pyparsing', 'SPARQLWrapper']
kwargs['tests_require'] = ['networkx']

if sys.version_info[1]<7: # Python 2.6
kwargs['install_requires'].append('ordereddict')
Expand Down

0 comments on commit f393cf4

Please sign in to comment.