Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions bigquery/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,20 @@ def default(session):
run the tests.
"""
# Install all test dependencies, then install this package in-place.
session.install('mock', 'pytest', 'pytest-cov', 'ipython', *LOCAL_DEPS)
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)

# Pandas does not support Python 3.4
if session.interpreter == 'python3.4':
session.install('-e', '.')
else:
session.install('-e', '.[pandas]')

# IPython does not support Python 2 after version 5.x

This comment was marked as spam.

This comment was marked as spam.

if session.interpreter == 'python2.7':
session.install('ipython==5.5')
else:
session.install('ipython')

# Run py.test against the unit tests.
session.run(
'py.test',
Expand Down Expand Up @@ -87,13 +95,19 @@ def system(session, py):

# Install all test dependencies, then install this package into the
# virtualenv's dist-packages.
session.install('mock', 'pytest', 'ipython', *LOCAL_DEPS)
session.install('mock', 'pytest', *LOCAL_DEPS)
session.install(
os.path.join('..', 'storage'),
os.path.join('..', 'test_utils'),
)
session.install('-e', '.[pandas]')

# IPython does not support Python 2 after version 5.x
if session.interpreter == 'python2.7':
session.install('ipython==5.5')
else:
session.install('ipython')

# Run py.test against the system tests.
session.run(
'py.test',
Expand Down