8000 code gardening and add None to type for Parameter to allow creation o… · illusional/python-cwlgen@adcabca · GitHub
[go: up one dir, main page]

Skip to content

Commit adcabca

Browse files
committed
code gardening and add None to type for Parameter to allow creation of Parameter with only an id
1 parent 161041e commit adcabca

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

cwlgen/__init__.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
#!/usr/bin/env python
2-
3-
## Author(s): Kenzo-Hugo Hillion
4-
## Contact(s): kehillio@pasteur.fr
5-
## Python version: 3.6.0
6-
## Creation : 12-30-2016
7-
81
'''
92
Library to handle the manipulation and generation of CWL tool
103
'''
@@ -20,13 +13,15 @@
2013
import ruamel.yaml
2114
import six
2215

23-
# Class and Objects
16+
version_info = (0,1,1)
17+
version = '.'.join(str(c) for c in version_info)
2418

2519
########### Constant(s) ###########
2620

2721
CWL_SHEBANG = "#!/usr/bin/env cwl-runner"
2822
DEF_CWL_VERSION = 'v1.0'
29-
CWL_TYPE = ['null', 'boolean', 'int', 'long', 'float', 'double', 'string', 'File', 'Directory']
23+
CWL_TYPE = ['null', 'boolean', 'int', 'long', 'float', 'double', 'string', 'File',
24+
'Directory', None]
3025

3126
########### Function(s) ###########
3227

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from setuptools import setup
2+
import cwlgen
23

34
setup(name="cwlgen",
4-
version='0.1.0',
5+
version=cwlgen.version,
56
description='Generation of CWL programmatically. Avaible types: CommandLineTool and DockerRequirement',
67
author='Kenzo-Hugo Hillion and Herve Menager',
78
author_email='kehillio@pasteur.fr and hmenager@pasteur.fr',

0 commit comments

Comments
 (0)
0