Skip to content

Commit

Permalink
Fix installation for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Oct 13, 2018
1 parent 4ca41b7 commit 23fe6e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
fi

pip3 install setuptools --upgrade
pip3 install .[datetime,test]
pip3 install .[test]
else
pip install setuptools --upgrade
pip install .[datetime,test]
pip install .[test]
fi
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def get_release_command_class():

SETUPTOOLS_REQUIRES = ["setuptools>=38.3.0"]
PYTEST_RUNNER_REQUIRES = ["pytest-runner"] if need_pytest() else []
DATETIME_REQUIRES = [
"python-dateutil>=2.7.3",
"pytz>=2018.5",
]

setuptools.setup(
name=MODULE_NAME,
Expand All @@ -79,13 +83,10 @@ def get_release_command_class():
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*',
install_requires=SETUPTOOLS_REQUIRES + install_requires,
setup_requires=SETUPTOOLS_REQUIRES + PYTEST_RUNNER_REQUIRES,
tests_require=tests_requires,
tests_require=tests_requires + DATETIME_REQUIRES,
extras_require={
"build": ["wheel"],
"datetime": [
"python-dateutil>=2.7.3",
"pytz>=2018.5",
],
"datetime": DATETIME_REQUIRES,
"docs": docs_requires,
"release": ["releasecmd>=0.0.12"],
"test": tests_requires,
Expand Down

0 comments on commit 23fe6e5

Please sign in to comment.