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
67 lines (59 loc) · 2.55 KB
/
setup.py
File metadata and controls
67 lines (59 loc) · 2.55 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
# -*- coding: utf-8 -*-
import os
import setuptools
import sys
with open("openml/__version__.py") as fh:
version = fh.readlines()[-1].split()[-1].strip("\"'")
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)
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, Andreas Müller, Farzan Majdani, "
"Joaquin Vanschoren, Jan van Rijn and Pieter Gijsbers",
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=version,
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',
'Programming Language :: Python :: 3.6'])