-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
76 lines (67 loc) · 2.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import codecs
import os.path
from setuptools import setup
name = 'ipython2cwl'
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
with open(os.sep.join([os.path.abspath(os.path.dirname(__file__)), "README.md"]), "r") as fh:
long_description = fh.read()
setup(
name=name,
version=get_version(f"{name}/__init__.py"),
packages=['ipython2cwl'],
package_dir={'ipython2cwl': 'ipython2cwl'},
package_data={'': ['ipython2cwl/templates/*']},
include_package_data=True,
author='Yannis Doukas',
author_email='giannisdoukas2311@gmail.com',
description='Convert IPython Jupyter Notebooks to CWL tool',
long_description=long_description,
long_description_content_type="text/markdown",
python_requires='>=3.6',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Framework :: IPython',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS',
'Operating System :: POSIX',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Medical Science Apps.'
],
entry_points={
'console_scripts': [
'jupyter-repo2cwl=ipython2cwl.repo2cwl:repo2cwl',
],
},
install_requires=[
'nbformat>=5.0.6',
'astor>=0.8.1',
'PyYAML>=5.3.1',
'gitpython>=3.1.3',
'jupyter-repo2docker>=0.11.0',
'nbconvert==5.6.1',
'ipython>=7.15.0'
],
test_suite='tests',
url='https://ipython2cwl.readthedocs.io/'
)