Skip to content

Commit ae51167

Browse files
Merge pull request #3 from giannisdoukas/dev
Dev
2 parents d92cc8b + d32ab29 commit ae51167

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ipython2cwl/templates/*

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,24 @@
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.

ipython2cwl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1"
1+
__version__ = "0.0.1"

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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='[email protected]',
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
)

0 commit comments

Comments
 (0)