-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
executable file
·107 lines (83 loc) · 4.42 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
99
100
101
102
103
104
105
106
107
from setuptools import setup, find_packages
long_description = """
Mousetrap plugin for OpenSesame
===============================
**Easily build mouse-tracking experiments with OpenSesame.**
The Mousetrap plugin provides two items that implement mouse-tracking in `OpenSesame`_. Both offer different ways of implementing mouse-tracking:
The `mousetrap_response item`_ tracks mouse movements while another stimulus (e.g., a sketchpad) is presented.
The `mousetrap_form item`_ allows tracking of mouse movements in custom forms specified using OpenSesame script.
More information about each item can be found in the corresponding helpfile (as linked above). Besides, a number of example experiments that demonstrate the basic features of the items can be found in the `examples folder`_.
Once data have been collected with the mousetrap plugin, the data can be processed, analyzed and visualized using the `mousetrap R package`_.
.. _OpenSesame: http://osdoc.cogsci.nl/
.. _mousetrap_response item: https://github.com/PascalKieslich/mousetrap-os/blob/master/plugins/mousetrap_response/mousetrap_response.md
.. _mousetrap_form item: https://github.com/PascalKieslich/mousetrap-os/blob/master/plugins/mousetrap_form/mousetrap_form.md
.. _examples folder: https://github.com/PascalKieslich/mousetrap-os/blob/master/examples
.. _mousetrap R package: https://github.com/PascalKieslich/mousetrap
"""
def list_files(path):
import glob, os
return [f for f in glob.glob(path)
if os.path.isfile(path) and not f.endswith('.pyc')]
setup(
name="opensesame-plugin-mousetrap",
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version = '2.1.0.9999',
description = "Mousetrap plugin for OpenSesame",
long_description = long_description,
# The project's main homepage.
url = 'https://github.com/PascalKieslich/mousetrap-os',
# Author details
author = 'Pascal Kieslich & Felix Henninger',
author_email = 'pascal.kieslich@gmail.com',
# License
license = 'GPLv3',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
# Status
'Development Status :: 5 - Production/Stable',
# Audience
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
# License
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
# Python version support
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
],
keywords='opensesame mouse-tracking',
# Package information
# For now, we are installing all files as supplementary data
#package_dir = {'mousetrap-os': 'plugins'},
#packages = find_packages(exclude='examples'),
py_modules=[],
# OpenSesame packages are installed as auxiliary data
data_files = [
# Files are hard-coded for now
#('share/opensesame_plugins/mousetrap_form', list_files('plugins/mousetrap_form/*')),
#('share/opensesame_plugins/mousetrap_response', list_files('plugins/mousetrap_response/*')),
#('share/opensesame_plugins/mousetrap_form/PyMT_form', list_files('plugins/mousetrap_form/PyMT_form/*')),
#('share/opensesame_plugins/mousetrap_response/PyMT_response', list_files('plugins/mousetrap_response/PyMT_response/*')),
('share/opensesame_plugins/mousetrap_form', [
'plugins/mousetrap_form/info.yaml',
'plugins/mousetrap_form/mousetrap_form.md',
'plugins/mousetrap_form/mousetrap_form.png',
'plugins/mousetrap_form/mousetrap_form.py',
'plugins/mousetrap_form/mousetrap_form_large.png',
]),
('share/opensesame_plugins/mousetrap_form/PyMT_form', [
'plugins/mousetrap_form/PyMT_form/__init__.py'
]),
('share/opensesame_plugins/mousetrap_response', [
'plugins/mousetrap_response/info.yaml',
'plugins/mousetrap_response/mousetrap_response.md',
'plugins/mousetrap_response/mousetrap_response.png',
'plugins/mousetrap_response/mousetrap_response.py',
'plugins/mousetrap_response/mousetrap_response_large.png',
]),
('share/opensesame_plugins/mousetrap_response/PyMT_response', [
'plugins/mousetrap_response/PyMT_response/__init__.py'
]),
]
)