forked from openml/openml-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (62 loc) · 2.63 KB
/
setup.py
File metadata and controls
69 lines (62 loc) · 2.63 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import os
import setuptools
import sys
requirements_file = os.path.join(os.path.dirname(__file__), 'requirements.txt')
requirements = []
dependency_links = []
with open(requirements_file) as fh:
for line in fh:
line = line.strip()
if line:
# Make sure the github URLs work here as well
split = line.split('@')
split = split[0]
split = split.split('/')
url = '/'.join(split[:-1])
requirement = split[-1]
requirements.append(requirement)
# Add the rest of the URL to the dependency links to allow
# setup.py test to work
if 'git+https' in url:
dependency_links.append(line.replace('git+', ''))
try:
import numpy
except ImportError:
print('numpy is required during installation')
sys.exit(1)
try:
import scipy
except ImportError:
print('scipy is required during installation')
sys.exit(1)
setuptools.setup(name="openml",
author="Matthias Feurer",
author_email="feurerm@informatik.uni-freiburg.de",
maintainer="Matthias Feurer",
maintainer_email="feurerm@informatik.uni-freiburg.de",
description="Python API for OpenML",
license="GPLv3",
url="http://openml.org/",
version="0.3.0",
packages=setuptools.find_packages(),
package_data={'': ['*.txt', '*.md']},
install_requires=requirements,
test_suite="nose.collector",
classifiers=['Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: GPLv3',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
dependency_links=[
"http://github.com/mfeurer/liac-arff/archive/master.zip"
"#egg=liac-arff-2.1.1dev"])