forked from greatscottgadgets/facedancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (52 loc) · 1.7 KB
/
Copy pathsetup.py
File metadata and controls
61 lines (52 loc) · 1.7 KB
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
import os
import sys
from setuptools import setup, find_packages
def read(fname):
filename = os.path.join(os.path.dirname(__file__), fname)
with open(filename, 'r') as f:
return f.read()
# Ensure we're not accidentally installed on Python2.
if sys.version_info.major < 3:
raise RuntimeError("Facedancer is not compatible with python2; and requires python 3.0 or later.")
setup_req=[]
setup_options = {}
# Deduce version, if possible.
if os.path.isfile('VERSION'):
setup_options['version'] = read('VERSION')
else:
setup_options['version_config'] = {
"version_format": '{tag}.dev+git.{sha}',
"starting_version": "v2.9"
}
setup_req.append('even-better-setuptools-git-version')
setup(
name='facedancer',
setup_requires=setup_req,
url='https://github.com/usb-tools/facedancer',
author = "Kate Temkin",
author_email = "kate@ktemkin.com",
license='BSD',
tests_require=[''],
install_requires=['pyusb'],
description='Python library for emulating USB devices',
long_description=read('README.md'),
packages=find_packages(),
include_package_data=True,
platforms='any',
classifiers = [
'Development Status :: 4 - Beta',
'Natural Language :: English',
'Environment :: Console',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering',
'Topic :: Security',
'Programming Language :: Python',
"Programming Language :: Python :: 3",
],
extras_require={},
**setup_options
)