make binder directory visible
MODIFY
repo2docker/detectors.py
repo2docker/detectors.py
@@ -332,8 +332,8 @@ class BuildPack(LoggingConfigurable):
def binder_path(self, path):
"""Locate a file"""
- if os.path.exists('.binder'):
- return os.path.join('.binder', path)
+ if os.path.exists('binder'):
+ return os.path.join('binder', path)
else:
return path

MODIFY
tests/conda/binder-dir/Dockerfile
tests/conda/binder-dir/Dockerfile
FROM doesntmatter
-# this file should be ignored because there's a .binder dir
\ No newline at end of file
+# this file should be ignored because there's a binder dir

MODIFY
tests/conda/binder-dir/README.rst
tests/conda/binder-dir/README.rst
Binder Directory
----------------
-top-level Dockerfile will be ignored if .binder/environment.yml exists.
+top-level Dockerfile will be ignored if binder directory exists.

RENAME
tests/conda/binder-dir/.binder/environment.yml
tests/conda/binder-dir/binder/environment.yml
MODIFY
tests/dockerfile/binder-dir/README.rst
tests/dockerfile/binder-dir/README.rst
Binder Directory
----------------
-top-level Dockerfile will be ignored if .binder/Dockerfile exists.
+top-level Dockerfile will be ignored if binder directory exists.

RENAME
tests/dockerfile/binder-dir/.binder/Dockerfile
tests/dockerfile/binder-dir/binder/Dockerfile
MODIFY
tests/venv/binder-dir/README.rst
tests/venv/binder-dir/README.rst
Binder Directory
----------------
-top-level environment.yml will be ignored if .binder/requiremets.txt exists.
+top-level environment.yml will be ignored if binder directory exists.

RENAME
tests/venv/binder-dir/.binder/postBuild
tests/venv/binder-dir/binder/postBuild
RENAME
tests/venv/binder-dir/.binder/requirements.txt
tests/venv/binder-dir/binder/requirements.txt
make binder directory visible