forked from ahtn/python-easyhid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·30 lines (27 loc) · 824 Bytes
/
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2018 jem@seethis.link
# Licensed under the MIT license (http://opensource.org/licenses/MIT)
from setuptools import setup
import os
# Load the version number
try: # python3
fields = {}
with open(os.path.join("easyhid", "version.py")) as f:
exec(f.read(), fields)
__version__ = fields['__version__']
except: # python2
execfile(os.path.join("easyhid", "version.py"))
setup(
name = 'easyhid',
version = __version__,
description = "A simple interface to the HIDAPI library.",
url = "http://github.com/ahtn/python-easyhid",
author = "jem",
author_email = "jem@seethis.link",
license = 'MIT',
packages = ['easyhid'],
install_requires = ['cffi'],
keywords = ['hidapi', 'usb', 'hid'],
zip_safe = False
)