Skip to content

Commit ba25e45

Browse files
committed
Add test reqs to bootstrap_env
1 parent ed2341d commit ba25e45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bootstrap_env.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def which(exe=None, throw=True):
8080
virtualenv_bin = which('virtualenv', throw=False)
8181
virtualenv_exists = os.path.exists(env_dir) and os.path.isfile(python_bin)
8282
sphinx_requirements_filepath = os.path.join(project_dir, 'requirements', 'doc.txt')
83+
test_requirements_filepath = os.path.join(project_dir, 'requirements', 'test.txt')
8384

8485

8586
try:
@@ -124,6 +125,11 @@ def main():
124125
[pip_bin, 'install', '-e', project_dir]
125126
)
126127

128+
if not has_module('pytest'):
129+
subprocess.check_call(
130+
[pip_bin, 'install', '-r', test_requirements_filepath]
131+
)
132+
127133
if not os.path.isfile(os.path.join(env_dir, 'bin', 'sphinx-quickstart')):
128134
subprocess.check_call(
129135
[pip_bin, 'install', '-r', sphinx_requirements_filepath]

0 commit comments

Comments
 (0)