File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 1+ include ipython2cwl/templates/*
Original file line number Diff line number Diff line change 44[ ![ Coverage Status] ( https://coveralls.io/repos/github/giannisdoukas/ipython2cwl/badge.svg?branch=dev )] ( https://coveralls.io/github/giannisdoukas/ipython2cwl?branch=dev )
55[ ![ Documentation Status] ( https://readthedocs.org/projects/ipython2cwl/badge/?version=latest )] ( https://ipython2cwl.readthedocs.io/en/latest/?badge=latest )
66
7+ IPython2CWL is a tool for converting [ IPython] ( https://ipython.org/ ) Jupyter Notebooks to
8+ [ CWL] ( https://www.commonwl.org/ ) Command Line Tools by simply providing typing annotation.
9+
10+
11+ ``` python
12+ from ipython2cwl.iotypes import CWLFilePathInput, CWLFilePathOutput
13+ import csv
14+ input_filename: ' CWLFilePathInput' = ' data.csv'
15+ with open (input_filename) as f:
16+ csv_reader = csv.reader(f)
17+ data = [line for line in csv_reader]
18+ number_of_lines = len (data)
19+ result_file: ' CWLFilePathOutput' = ' number_of_lines.txt'
20+ with open (result_file, ' w' ) as f:
21+ f.write(str (number_of_lines))
22+ ```
23+
24+ IPython2CWL is based on [ repo2docker] ( https://github.com/jupyter/repo2docker ) , the same tool
25+ used by [ mybinder] ( https://mybinder.org/ ) . Now, by writing Jupyter Notebook and publish them, including repo2docker
26+ configuration, the community can not only execute the notebooks remotely but also to use them as steps in scientific
27+ workflows.
Original file line number Diff line number Diff line change 1- __version__ = "0.1"
1+ __version__ = "0.0. 1"
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ def get_version(rel_path):
2929 version = get_version (f"{ name } /__init__.py" ),
3030 packages = ['ipython2cwl' ],
3131 package_dir = {'ipython2cwl' : 'ipython2cwl' },
32- package_data = {'ipython2cwl' : ['ipython2cwl/templates/*' ]},
32+ package_data = {'' : ['ipython2cwl/templates/*' ]},
33+ include_package_data = True ,
3334 author = 'Yannis Doukas' ,
3435 author_email = 'giannisdoukas2311@gmail.com' ,
3536 description = 'Convert IPython Jupyter Notebooks to CWL tool' ,
@@ -63,4 +64,5 @@ def get_version(rel_path):
6364 'ipython>=7.15.0'
6465 ],
6566 test_suite = 'tests' ,
67+ url = 'https://ipython2cwl.readthedocs.io/'
6668)
You can’t perform that action at this time.
0 commit comments