-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
98 lines (91 loc) · 3 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
91
92
93
94
95
96
97
98
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
@`purpose`: 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.
@`date`: Created on Sat May 1 15:12:38 2019
@`author`: Semeon Risom
@`email`: [email protected]
@`url`: http://mdl.psy.utexas.edu/a/imhr
"""
if __name__ == '__main__':
import os
from setuptools import find_packages, setup, __version__
# versioning
import versioneer
versioneer.VCS = "git"
# description
description = 'imhr: psychology and data science suite.'
long_description_content_type = 'text/markdown'
with open('README.md') as f:
long_description = f.read()
# required packages
path = '%s/%s'%(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
with open(path) as f:
required = f.read().splitlines()
required = required + ["win32api; sys_platform == 'pywin32'"] + ["pyobjc; sys_platform == 'darwin'"] + ["certifi; sys_platform == 'darwin'"]
# sphinx pydoc - if this is the master version from github, add sphinx requirements
# sphinx==1.85 - prevents parameters to be rendered as <dl> instead of <th>
if os.path.isdir("./docs"):
path = '%s/%s'%(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
with open(path) as f:
required_addt = f.read().splitlines()
required = required + required_addt
# add to setuptools
setuptools_kwargs = {
'zip_safe': False,
'install_requires': required
}
# setup
name = 'imhr'
author = 'Semeon Risom'
packages = find_packages()
platforms = 'Darwin, Windows'
python_requires = '~=3.7'
author_email = '[email protected]'
maintainer = 'Semeon Risom'
maintainer_email = '[email protected]'
version = versioneer.get_version()
cmdclass = versioneer.get_cmdclass()
url = 'http://mdl.psy.utexas.edu/a/imhr'
download_url = 'https://github.com/risoms/imhr/'
classifiers = [
'Intended Audience :: Science/Research',
'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 :: MacOS',
'Operating System :: Microsoft :: Windows'
]
project_urls = {
'Documentation': 'http://mdl.psy.utexas.edu/a/imhr',
'Source': 'https://github.com/risoms/imhr/'
},
#namespace_packages=['mdl']
# init
setup(
name=name,
version=version,
packages=packages,
platforms=platforms,
python_requires=python_requires,
include_package_data=True,
author=author,
author_email=author_email,
maintainer=maintainer,
maintainer_email=maintainer_email,
description=description,
license="MIT",
cmdclass=cmdclass,
url=url,
download_url=download_url,
long_description = long_description,
long_description_content_type = 'text/markdown',
classifiers=classifiers,
#namespace_packages=namespace_packages,
**setuptools_kwargs
)