forked from automl/HPOBench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (54 loc) · 2.13 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
# -*- encoding: utf-8 -*-
import setuptools
import json
import os
def get_extra_requirements():
""" Helper function to read in all extra requirement files in the extra
requirement folder. """
extra_requirements = {}
for file in os.listdir('./extra_requirements'):
with open(f'./extra_requirements/{file}', encoding='utf-8') as fh:
requirements = json.load(fh)
extra_requirements.update(requirements)
return extra_requirements
def read_file(file_name):
with open(file_name, encoding='utf-8') as fh:
text = fh.read()
return text
setuptools.setup(
name='hpobench',
author_email='eggenspk@informatik.uni-freiburg.de',
description='Benchmark-Suite for Hyperparameter Optimization',
long_description=read_file('README.md'),
long_description_content_type='text/markdown',
license='Apache-2.0',
url='https://www.automl.org/automl/hpobench/',
project_urls={
'Documentation': 'https://automl.github.io/HPOBench/',
'Source Code': 'https://github.com/automl/HPOBench'
},
version=read_file('hpobench/__version__.py').split()[-1].strip('\''),
packages=setuptools.find_packages(exclude=['*.tests', '*.tests.*',
'tests.*', 'tests'],),
python_requires='>=3.6, <3.8',
install_requires=read_file('./requirements.txt').split('\n'),
extras_require=get_extra_requirements(),
test_suite='pytest',
platforms=['Linux'],
classifiers=[
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Development Status :: 3 - Alpha',
'Natural Language :: English',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering',
'Topic :: Software Development',
]
)