forked from greatscottgadgets/facedancer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (49 loc) · 1.65 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
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.")
dynamic_options = {}
version = None
# Deduce version, if possible.
if os.path.isfile('./VERSION'):
version = read('./VERSION')
else:
dynamic_options['version_format'] = '{tag}.dev{commitcount}+git.{gitsha}'
dynamic_options['setup_requires'] = ['setuptools-git-version']
setup(
name='facedancer',
version=version,
url='https://greatscottgadgets.com/greatfet/',
license='BSD',
tests_require=[''],
install_requires=['pyusb'],
description='Python library for emulating USB devices',
maintainer = "Katherine J. Temkin",
maintainer_email = "[email protected]",
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={},
**dynamic_options
)