Allow specifying requirements.txt with environment.yml
They both get installed.
MODIFY
repo2docker/detectors.py
repo2docker/detectors.py
@@ -552,6 +552,11 @@ class CondaBuildPack(BuildPack):
conda clean -tipsy
"""
))
+ if os.path.exists('requirements.txt'):
+ assembly_scripts.append((
+ '${NB_USER}',
+ 'pip install --no-cache-dir -r requirements.txt'
+ ))
return assembly_scripts
def detect(self):

ADD
tests/conda/requirements/environment.yml
+dependencies:
+ - numpy

ADD
tests/conda/requirements/requirements.txt
+there

ADD
tests/conda/requirements/verify
+#!/usr/bin/env python
+import sys
+
+assert sys.version_info[:2] == (3, 6)
+
+import numpy
+import there

Allow specifying requirements.txt with environment.yml

They both get installed.