-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
90 lines (83 loc) · 2.72 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 13 15:37:43 2019
@author: Semeon Risom
@email: semeon.risom@gmail.com.
Sample code to run SR Research Eyelink eyetracking system. Code is optimized for the Eyelink 1000 Plus (5.0),
but should be compatiable with earlier systems.
"""
import os, datetime, sys, importlib, pkg_resources
from setuptools import find_packages
try:
from setuptools import setup
is_setuptools = True
except ImportError:
from distutils.core import setup
# versioning
import versioneer
cmdclass = versioneer.get_cmdclass()
date = datetime.date.today().isoformat()
# required packages
setuptools_kwargs = {
'install_requires': [
'numpy >= %s'%(pkg_resources.get_distribution("numpy").version),
'scipy >= %s'%(pkg_resources.get_distribution("scipy").version),
'pandas >= %s'%(pkg_resources.get_distribution("pandas").version),
'psychopy >= %s'%(pkg_resources.get_distribution("psychopy").version),
'%s'%('win32api' if sys.platform == 'win32' else 'pyobjc'),
],
'zip_safe': False
}
# setup
name = 'mdl-eyetracking'
author = 'Semeon Risom'
author_email = 'semeon.risom@gmail.com'
maintainer = 'Semeon Risom'
maintainer_email = 'semeon.risom@gmail.com'
version = versioneer.get_version()
url = 'https://semeon.io/d/mdl-eyetracking'
description = 'mdl-eyetracking: Bindings for Eyelink and Python.'
download_url = 'https://github.com/risoms/mdl-eyetracking/'
long_description = open('README.md').read()
long_description_content_type = 'text/markdown'
license_ = open('LICENSE', 'r').read()
classifiers = [
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: Human Machine Interfaces',
'Topic :: Multimedia :: Graphics',
'Operating System :: Unix',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows'
]
packages = find_packages()
namespace_packages=['mdl']
# init
setup(
name=name,
version=version,
packages=packages,
author=author,
author_email=author_email,
maintainer=maintainer,
maintainer_email=maintainer_email,
description=description,
license=license_,
cmdclass=cmdclass,
url=url,
download_url=download_url,
long_description = long_description,
long_description_content_type = long_description_content_type,
classifiers=classifiers,
platforms='any',
python_requires='>!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*!=3.5.*!=3.6.*!=3.7.*',
namespace_packages=namespace_packages,
**setuptools_kwargs
)