File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,17 @@ def repo2cwl(argv: Optional[List[str]] = None):
100
100
supported_schemes = {'file' , 'http' , 'https' , 'ssh' }
101
101
if uri .scheme not in supported_schemes :
102
102
raise ValueError (f'Supported schema uris: { supported_schemes } ' )
103
- local_git_directory = os .path .join (tempfile .mkdtemp (prefix = 'repo2cwl ' ), 'repo' )
103
+ local_git_directory = os .path .join (tempfile .mkdtemp (prefix = 'repo2cwl_ ' ), 'repo' )
104
104
if uri .scheme == 'file' :
105
105
if not os .path .isdir (uri .path ):
106
106
raise ValueError (f'Directory does not exists' )
107
107
logger .info (f'copy repo to temp directory: { local_git_directory } ' )
108
108
shutil .copytree (uri .path , local_git_directory )
109
+ local_git = git .Repo (local_git_directory )
109
110
else :
110
111
logger .info (f'cloning repo to temp directory: { local_git_directory } ' )
111
- git .Git ( local_git_directory ). clone (uri .geturl ())
112
- local_git = git . Repo ( local_git_directory )
112
+ local_git = git .Repo . clone_from (uri .geturl (), local_git_directory )
113
+
113
114
image_id , cwl_tools = _repo2cwl (local_git )
114
115
logger .info (f'Generated image id: { image_id } ' )
115
116
for tool in cwl_tools :
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ def get_version(rel_path):
49
49
],
50
50
entry_points = {
51
51
'console_scripts' : [
52
- 'jupyter-jn2cwl=ipython2cwl.ipython2cwl:main' ,
53
- 'jupyter-jnrepo2cwl =ipython2cwl.repo2cwl:repo2cwl' ,
52
+ # 'jupyter-jn2cwl=ipython2cwl.ipython2cwl:main',
53
+ 'jupyter-repo2cwl =ipython2cwl.repo2cwl:repo2cwl' ,
54
54
],
55
55
},
56
56
install_requires = [
You can’t perform that action at this time.
0 commit comments