Skip to content

Commit 2b2f8a2

Browse files
ArlindKadramfeurer
authored andcommitted
Refactored setup.py and remove requirements.txt (#438)
1 parent c942308 commit 2b2f8a2

File tree

2 files changed

+19
-28
lines changed

2 files changed

+19
-28
lines changed

requirements.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

setup.py

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
11
# -*- coding: utf-8 -*-
22

3-
import os
43
import setuptools
54
import sys
65

76
with open("openml/__version__.py") as fh:
87
version = fh.readlines()[-1].split()[-1].strip("\"'")
98

10-
11-
requirements_file = os.path.join(os.path.dirname(__file__), 'requirements.txt')
12-
requirements = []
139
dependency_links = []
14-
with open(requirements_file) as fh:
15-
for line in fh:
16-
line = line.strip()
17-
if line:
18-
# Make sure the github URLs work here as well
19-
split = line.split('@')
20-
split = split[0]
21-
split = split.split('/')
22-
url = '/'.join(split[:-1])
23-
requirement = split[-1]
24-
requirements.append(requirement)
2510

2611
try:
2712
import numpy
@@ -48,7 +33,25 @@
4833
version=version,
4934
packages=setuptools.find_packages(),
5035
package_data={'': ['*.txt', '*.md']},
51-
install_requires=requirements,
36+
install_requires=[
37+
'mock',
38+
'numpy>=1.6.2',
39+
'scipy>=0.13.3',
40+
'liac-arff>=2.2.1',
41+
'xmltodict',
42+
'nose',
43+
'requests',
44+
'scikit-learn>=0.18',
45+
'nbformat',
46+
'python-dateutil',
47+
'oslo.concurrency',
48+
],
49+
extras_require={
50+
'test': [
51+
'nbconvert',
52+
'jupyter_client'
53+
]
54+
},
5255
test_suite="nose.collector",
5356
classifiers=['Intended Audience :: Science/Research',
5457
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)