-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (42 loc) · 1.17 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
#!/usr/bin/env python
import io
import os
from os.path import join as pjoin
from setuptools import setup, find_packages
def get_version(file, name='__version__'):
"""Get the version of the package from the given file by
executing it and extracting the given `name`.
"""
path = os.path.realpath(file)
version_ns = {}
with io.open(path, encoding="utf8") as f:
exec(f.read(), {}, version_ns)
return version_ns[name]
with open('README.md') as f:
README = f.read()
with open('LICENSE') as f:
LICENSE = f.read()
NAME = 'regulus'
VERSION = get_version(pjoin(NAME, '_version.py'))
setup(
name=NAME,
version=VERSION,
description='Regulus',
long_description=README,
author='Yarden Livnat',
author_email='[email protected]',
url='https://github.com/yarden_livnat/regulus',
license=LICENSE,
zip_safe=False,
packages=find_packages(exclude=('tests', 'docs')),
install_requires=[
'topopy=0.1', 'numpy', 'sklearn', 'pandas'
],
test_suite='nose.collector',
tests_require=['nose'],
entry_points={
'console_scripts': [
'regulus=regulus.command_line:main'
],
}
)