-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
41 lines (34 loc) · 1.03 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
"""A setuptools based setup module."""
from setuptools import setup, find_packages
from codecs import open
from os import path
import subprocess
import sys
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file.
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# Pull in the schemas
subprocess.run(
'git submodule init && git submodule update',
shell=True,
cwd=here,
check=True,
)
requirements = [
'jsonschema==3.2.0',
'singleton-decorator==1.0.0',
'websocket-client==0.57.0',
]
setup(
name='gateway_addon',
version='1.1.1',
description='Bindings for WebThings Gateway add-ons',
long_description=long_description,
url='https://github.com/WebThingsIO/gateway-addon-python',
author='WebThingsIO',
keywords='webthings gateway addon add-on',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
package_data={'': ['schema/schema.json', 'schema/**/*.json']},
install_requires=requirements,
)