Commit | Line | Data |
---|---|---|
dcdbb941 PP |
1 | #!/usr/bin/env python3 |
2 | # | |
3 | # The MIT License (MIT) | |
4 | # | |
5 | # Copyright (c) 2014 Philippe Proulx <philippe.proulx@efficios.com> | |
6 | # | |
7 | # Permission is hereby granted, free of charge, to any person obtaining a copy | |
8 | # of this software and associated documentation files (the "Software"), to deal | |
9 | # in the Software without restriction, including without limitation the rights | |
10 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
11 | # copies of the Software, and to permit persons to whom the Software is | |
12 | # furnished to do so, subject to the following conditions: | |
13 | # | |
14 | # The above copyright notice and this permission notice shall be included in | |
15 | # all copies or substantial portions of the Software. | |
16 | # | |
17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
23 | # THE SOFTWARE. | |
24 | import os | |
25 | import sys | |
26 | import subprocess | |
27 | from setuptools import setup | |
28 | ||
29 | ||
30 | # make sure we run Python 3+ here | |
31 | v = sys.version_info | |
b17695bd | 32 | |
dcdbb941 PP |
33 | if v.major < 3: |
34 | sys.stderr.write('Sorry, barectf needs Python 3\n') | |
35 | sys.exit(1) | |
36 | ||
37 | ||
dcdbb941 | 38 | install_requires = [ |
c29af392 PP |
39 | 'termcolor', |
40 | 'pytsdl', | |
dcdbb941 PP |
41 | ] |
42 | ||
43 | ||
44 | packages = [ | |
45 | 'barectf', | |
46 | ] | |
47 | ||
48 | ||
49 | entry_points = { | |
50 | 'console_scripts': [ | |
51 | 'barectf = barectf.cli:run' | |
52 | ], | |
53 | } | |
54 | ||
55 | ||
56 | setup(name='barectf', | |
e755390d | 57 | version='0.3.1', |
c29af392 | 58 | description='Generator of C99 code that can write native CTF', |
dcdbb941 PP |
59 | author='Philippe Proulx', |
60 | author_email='eeppeliteloop@gmail.com', | |
61 | license='MIT', | |
401f0c4f | 62 | keywords='ctf generator tracing bare-metal bare-machine', |
cc8ceb9a | 63 | url='https://github.com/efficios/barectf', |
dcdbb941 PP |
64 | packages=packages, |
65 | install_requires=install_requires, | |
66 | entry_points=entry_points) |