diff --git a/.travis.yml b/.travis.yml index 0e29e99b..b8a4a9e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ env: matrix: include: - python: "3.5" - env: NO_PYTZ=1 MONGODB_VERSION=3.4.4 + env: MONGODB_VERSION=3.4.4 NO_PYTZ=1 - python: "3.5" env: MONGODB_VERSION=3.2.13 @@ -34,8 +34,8 @@ before_install: install: - 'travis_retry pip install --upgrade setuptools pip pytest pytest-cov codecov "setuptools_scm>=1.9" cffi' - - 'pip install -e ".[development,logger]"' - - '[[ -e $NO_PYTZ ]] && pip uninstall --quiet --yes pytz tzlocal' + - 'pip install -e ".[development]"' + - 'test -n $NO_PYTZ && pip uninstall --quiet --yes pytz tzlocal' script: python setup.py test diff --git a/setup.py b/setup.py index 3bdc38b2..50e88dcb 100755 --- a/setup.py +++ b/setup.py @@ -34,6 +34,7 @@ 'pytest-isort', # import ordering 'misaka', 'pygments', # Markdown field support 'futures; python_version < "3.4"', # futures support + 'pytz', 'tzlocal>=1.4', # timezone support, logger support ] @@ -91,7 +92,7 @@ extras_require = dict( decimal = ['pymongo>=3.4'], # More modern version required for Decimal128 support. - development = tests_require + ['pre-commit'], # Development-time dependencies. + development = tests_require + ['pre-commit', 'bandit'], # Development-time dependencies. logger = ['tzlocal>=1.4'], # Timezone support to store log times in UTC like a sane person. markdown = ['misaka', 'pygments'], # Markdown text storage. scripting = ['javascripthon<1.0'], # Allow map/reduce functions and "stored functions" to be Python.