-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
35 lines (28 loc) · 968 Bytes
/
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
"""setup for mr_saliency to enable pip install"""
from setuptools import setup, find_packages
def readme():
"""opens github readme"""
with open('README.md') as _fo:
return _fo.read()
def readversion():
"""versioning of pip installer"""
with open('version.py') as _fo:
return _fo.read().split(' = ')[1]
def setup_package():
""" setup"""
metadata = dict(
name='MR',
version=readversion(),
description='implementation of mr_saliency',
url='https://github.com/ruanxiang/mr_saliency',
author='ruanxiang (xkunglu added installer and py3 port)',
license='GPL2',
dependency_links=['wxPython'],
install_requires=['opencv-python', 'numpy',
'scikit-image', 'matplotlib', 'scipy'],
packages=find_packages(),
long_description=readme(),
zip_safe=True)
setup(**metadata)
if __name__ == '__main__':
setup_package()