-
Notifications
You must be signed in to change notification settings - Fork 145
/
setup.py
74 lines (56 loc) · 2.55 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from setuptools import setup
import io
import os
import re
here = os.path.abspath(os.path.dirname(__file__))
def find_version():
with io.open(os.path.join(here, 'rep', '__init__.py'), 'r') as f:
version_file = f.read()
# The version line must have the form like following:
# __version__ = '0.x.x'
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.MULTILINE)
candidate = str(version_match.group(1))
assert str.startswith(candidate, '0.') and candidate[2] != '0'
if version_match:
return candidate
raise RuntimeError("Unable to find version string.")
with io.open(os.path.join(here, 'README.md')) as f:
long_description = f.read()
with io.open(os.path.join(here, 'AUTHORS')) as f:
authors = f.read()
with io.open(os.path.join(here, 'requirements.txt')) as f:
requirements = f.read().split('\n')
setup(
name="rep",
version=find_version(),
description="infrastructure for computational experiments in machine learning",
long_description="Reproducible Experiment Platform is a collaborative software infrastructure for computational " \
"experiments in machine learning, which allows obtaining reproducible, repeatable results " \
"and consistent comparisons of the obtained results.",
url='https://github.com/yandex/rep',
# Author details
author=authors,
author_email='[email protected], [email protected]',
# Choose your license
license='Apache-2.0 License',
# Manually specifying all packages
packages=['rep', 'rep.data', 'rep.estimators', 'rep.metaml', 'rep.report', 'rep.test'],
package_dir={'rep': 'rep'},
classifiers=[
'Development Status :: 5 - Production/Stable',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: Apache Software License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2.7 ',
'Programming Language :: Python :: 3.4 ',
],
# What does your project relate to?
keywords='machine learning, high energy physics, particle physics, data analysis, reproducible experiment',
# List run-time dependencies here. These will be installed by pip when your
# project is installed.
install_requires=requirements,
)