Skip to content

Commit ea90c08

Browse files
Merge pull request #6 from giannisdoukas/dev
Dev
2 parents a3b55a0 + e9fb97c commit ea90c08

File tree

5 files changed

+30
-50
lines changed

5 files changed

+30
-50
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ pip install ipython2cwl
3939
```
4040
jupyter repo2cwl https://github.com/giannisdoukas/cwl-annotated-jupyter-notebook.git -o cwlbuild
4141
```
42+
43+
### Docs
44+
45+
[https://ipython2cwl.readthedocs.io/](https://readthedocs.org/projects/ipython2cwl/badge/?version=latest)

ipython2cwl/ipython2cwl.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

ipython2cwl/repo2cwl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _store_jn_as_script(notebook_path: str, git_directory_absolute_path: str, bi
7272
def existing_path(path: str):
7373
path = Path(path)
7474
if not path.is_dir():
75-
raise ValueError('Directory does not exists')
75+
raise argparse.ArgumentTypeError(f'Directory: {str(path)} does not exists')
7676
return path
7777

7878

setup.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,27 @@ def get_version(rel_path):
3838
long_description_content_type="text/markdown",
3939
python_requires='>=3.6',
4040
classifiers=[
41-
"Programming Language :: Python :: 3",
42-
"License :: OSI Approved :: Apache Software License",
43-
"Operating System :: MacOS",
44-
"Operating System :: POSIX",
45-
"Development Status :: 2 - Pre-Alpha",
46-
"Framework :: IPython",
47-
"Programming Language :: Python :: 3.6",
48-
"Programming Language :: Python :: 3.7",
49-
"Programming Language :: Python :: 3.8",
41+
'Development Status :: 3 - Alpha',
42+
'Environment :: Console',
43+
'Framework :: IPython',
44+
'Intended Audience :: Developers',
45+
'Intended Audience :: Science/Research',
46+
'License :: OSI Approved :: Apache Software License',
47+
'Operating System :: MacOS',
48+
'Operating System :: POSIX',
49+
'Programming Language :: Python :: 3',
50+
'Programming Language :: Python :: 3.6',
51+
'Programming Language :: Python :: 3.7',
52+
'Programming Language :: Python :: 3.8',
53+
'Topic :: Scientific/Engineering',
54+
'Topic :: Scientific/Engineering :: Astronomy',
55+
'Topic :: Scientific/Engineering :: Atmospheric Science',
56+
'Topic :: Scientific/Engineering :: Bio-Informatics',
57+
'Topic :: Scientific/Engineering :: Information Analysis',
58+
'Topic :: Scientific/Engineering :: Medical Science Apps.'
5059
],
5160
entry_points={
5261
'console_scripts': [
53-
# 'jupyter-jn2cwl=ipython2cwl.ipython2cwl:main',
5462
'jupyter-repo2cwl=ipython2cwl.repo2cwl:repo2cwl',
5563
],
5664
},

tests/test_system_tests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import shutil
33
import tempfile
4+
import uuid
45
from subprocess import DEVNULL
56
from unittest import TestCase, skipIf
67

@@ -47,3 +48,9 @@ def test_repo2cwl(self):
4748
new_data = yaml.safe_load(f)
4849
self.assertDictEqual({'entry1': 2, 'entry2': 'foo', 'entry3': 'bar'}, new_data)
4950
shutil.rmtree(output_dir)
51+
52+
def test_repo2cwl_output_dir_does_not_exists(self):
53+
random_dir_name = str(uuid.uuid4())
54+
repo2cwl = pkg_resources.load_entry_point('ipython2cwl', 'console_scripts', 'jupyter-repo2cwl')
55+
with self.assertRaises(SystemExit):
56+
repo2cwl(['-o', random_dir_name, self.repo_like_dir])

0 commit comments

Comments
 (0)