1
0
Fork 0
mirror of https://github.com/adswa/multimatch_gaze.git synced 2026-06-22 20:13:40 +00:00
multimatch_gaze/setup.py

63 lines
1.7 KiB
Python
Executable file

#!/usr/bin/env python
from setuptools import setup
from setuptools import find_packages
from os.path import join as opj
from os.path import dirname
def get_version():
"""Load version only
"""
with open(opj(dirname(__file__), 'multimatch_gaze', '__init__.py')) as f:
version_lines = list(filter(lambda x: x.startswith('__version__'), f))
assert (len(version_lines) == 1)
return version_lines[0].split('=')[1].strip(" '\"\t\n")
# extension version
version = get_version()
README = opj(dirname(__file__), 'README.md')
try:
import pypandoc
long_description = pypandoc.convert(README, 'rst')
except (ImportError, OSError) as exc:
print(
"WARNING: pypandoc failed to import or threw an error while converting"
" README.md to RST: %r .md version will be used as is" %exc
)
long_description = open(README).read()
# Metadata
setup(
name='multimatch_gaze',
version=version,
description='Multidimensional scan path comparison',
long_description=long_description,
author='Adina Wagner',
author_email='adina.wagner@t-online.de',
url='https://github.com/adswa/multimatch_gaze',
packages=[pkg for pkg in find_packages('.') if pkg.startswith('multimatch')],
install_requires=[
'numpy',
'pandas',
'scipy'
],
extras_require={
'devel-docs': [
# for converting README.md -> .rst for long description
'pypandoc',
]},
entry_points={
'console_scripts': [
'multimatch-gaze=multimatch_gaze.multimatch_gaze:main'
],
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)