forked from datarobot/batch-scoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (42 loc) · 1.44 KB
/
setup.py
File metadata and controls
53 lines (42 loc) · 1.44 KB
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
#!/usr/bin/env python
import codecs
import os.path
import re
from setuptools import setup
extra = {}
fname = os.path.join(os.path.abspath(os.path.dirname(
__file__)), 'requirements.txt')
install_requires = open(fname, 'r').readlines()
extra['entry_points'] = {
'console_scripts': [
'batch_scoring = datarobot_batch_scoring.main:main',
'batch_scoring_sse = datarobot_batch_scoring.main:main_standalone'
]}
extra['install_requires'] = install_requires
fname = os.path.join(os.path.abspath(os.path.dirname(
__file__)), 'datarobot_batch_scoring', '__init__.py')
with codecs.open(fname, 'r', 'latin1') as fp:
try:
version = re.findall(r"^__version__ = '([^']+)'\r?$",
fp.read(), re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
setup(
name='datarobot_batch_scoring',
version=version,
description=("A script to score CSV files via DataRobot's prediction API"),
author='DataRobot',
author_email='support@datarobot.com',
maintainer='DataRobot',
maintainer_email='support@datarobot.com',
license='BSD',
url='http://www.datarobot.com/',
packages=['datarobot_batch_scoring'],
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
**extra
)