Skip to content

Commit e9b6d14

Browse files
committed
Added docker and opencv dep
1 parent 4c55401 commit e9b6d14

File tree

4 files changed

+46
-6
lines changed

4 files changed

+46
-6
lines changed

.travis.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ matrix:
77
include:
88
- os: linux
99
python: 2.7
10-
10+
1111
- os: linux
1212
python: 3.6
13-
13+
14+
- os: linux
15+
python: 3.8
16+
1417
script:
1518
- python -m pytest

docker/docker-compose.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: "3.6"
2+
3+
services:
4+
5+
tobiiglasses2:
6+
image: "python:3.8-buster"
7+
8+
container_name: tobiiglasses2
9+
10+
network_mode: "host"
11+
environment:
12+
- "DISPLAY=${DISPLAY}"
13+
- "QT_X11_NO_MITSHM=1"
14+
- "PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native"
15+
16+
privileged: true
17+
stdin_open: true
18+
tty: true
19+
20+
volumes:
21+
- type: bind
22+
source: ../
23+
target: /home/TobiiGlassesPyController
24+
25+
- type: bind
26+
source: ./init.sh
27+
target: /home/init.sh
28+
29+
- type: bind
30+
source: ${XDG_RUNTIME_DIR}/pulse
31+
target: ${XDG_RUNTIME_DIR}/pulse
32+
33+
entrypoint: ["bash", "/home/init.sh"]

docker/init.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd /home/TobiiGlassesPyController
2+
pip3 install --user .
3+
/bin/bash

setup.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
setup(
1515
name='tobiiglassesctrl',
16-
version='2.2.8',
16+
version='2.3.0',
1717
description='A Python controller for Tobii Pro Glasses 2',
1818
url='https://github.com/ddetommaso/TobiiGlassesPyController/',
19-
download_url='https://github.com/ddetommaso/TobiiGlassesPyController/archive/2.2.8.tar.gz',
20-
install_requires=['netifaces'],
19+
download_url='https://github.com/ddetommaso/TobiiGlassesPyController/archive/2.3.0.tar.gz',
20+
install_requires=['netifaces', 'opencv-python==4.1.2.30'],
2121
author='Davide De Tommaso',
2222
author_email='[email protected]',
2323
keywords=['eye-tracker','tobii','glasses', 'tobii pro glasses 2', 'tobii glasses', 'eye tracking'],
@@ -27,7 +27,8 @@
2727
'Programming Language :: Python :: 3.5',
2828
'Programming Language :: Python :: 3.6',
2929
'Programming Language :: Python :: 3.7',
30-
'Programming Language :: Python :: 3.8'
30+
'Programming Language :: Python :: 3.8',
31+
'Programming Language :: Python :: 3.9'
3132

3233
],
3334
)

0 commit comments

Comments
 (0)