File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
testing/local-binder-local-hub Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1111from threading import Thread
1212
1313from tornado .log import app_log
14+ from traitlets import default
1415
1516from .build import BuildExecutor , ProgressEvent
1617
@@ -111,6 +112,15 @@ class LocalRepo2dockerBuild(BuildExecutor):
111112 WARNING: This is still under development. Breaking changes may be made at any time.
112113 """
113114
115+ @default ("identifier" )
116+ def _identifier_default (self ):
117+ try :
118+ import repo2docker
119+
120+ return repo2docker .__version__
121+ except ImportError :
122+ return ""
123+
114124 def submit (self ):
115125 """
116126 Run a build to create the image for the repository.
Original file line number Diff line number Diff line change 2424c .BinderHub .builder_required = False
2525
2626c .BinderHub .build_class = LocalRepo2dockerBuild
27- c .BinderHub .push_secret = None
27+ c .BinderHub .push_secret = ""
2828c .BinderHub .launch_quota_class = LaunchQuota
2929
3030c .BinderHub .about_message = "This is a local dev deployment without Kubernetes"
You can’t perform that action at this time.
0 commit comments