-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
97 lines (76 loc) · 2.65 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# Copyright 2019-2020 CodeReef
# See CodeReef client LICENSE.txt for licensing details
#
# Developer(s): Grigori Fursin, https://fursin.net
# Herve Guillou, herve@codereef.ai
#
import os
import sys
import imp
############################################################
from setuptools import find_packages, setup, convert_path
############################################################
# Version
version = imp.load_source(
'codereef.__init__', os.path.join('codereef', '__init__.py')).__version__
# Default portal
portal_url='https://codereef.ai/portal'
# Read description (TBD: should add short description!)
with open(convert_path('./README.md')) as f:
long_readme = f.read()
# Package description
setup(
name='codereef',
author="Grigori Fursin",
author_email="Grigori.Fursin@CodeReef.ai",
version=version,
description="CodeReef client to deal with portable workflows",
license="Apache Software License (Apache 2.0)",
long_description_content_type='text/markdown',
long_description=long_readme,
url=portal_url,
python_requires=">=2.7",
packages=find_packages(exclude=["tests*", "docs*"]),
package_data={"codereef":['static/*']},
include_package_data=True,
install_requires=[
'click>=7.0',
'ck',
'requests',
'virtualenv'
],
entry_points={
"console_scripts":
[
"cr = codereef.main:cli",
"codereef = codereef.main:cli"
]
},
zip_safe=False,
keywords="portable workflows, reproducibility, collaborative experiments, portability, dependencies, workflows, automation, pipelines, data pipelines, computer systems, data science",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research"
],
)
###########################################################
# Get release notes
import codereef.misc
r=codereef.misc.request({'url':portal_url+'/api/v1/?',
'get':{'action':'get_client_release_notes',
'version':version}})
if r['return']==0:
notes=r.get('dict',{}).get('notes','')
if notes!='':
print ('*********************************************************************')
print ('Release notes:')
print ('')
print (notes)
print ('*********************************************************************')