2017-11-26 21:13:38 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Note: To use the 'upload' functionality of this file, you must:
|
|
|
|
# pip install twine
|
|
|
|
|
2017-03-02 14:33:34 +01:00
|
|
|
import io
|
2017-11-26 21:13:38 +01:00
|
|
|
import os
|
|
|
|
import sys
|
2017-01-29 04:15:28 +01:00
|
|
|
from setuptools import find_packages, setup, Command
|
2017-01-29 04:35:55 +01:00
|
|
|
|
2017-11-26 21:13:38 +01:00
|
|
|
CURDIR = os.path.abspath(os.path.dirname(__file__))
|
2016-09-26 07:34:30 +02:00
|
|
|
|
|
|
|
EXCLUDE_FROM_PACKAGES = []
|
2017-11-26 21:13:38 +01:00
|
|
|
REQUIRED = [
|
2018-05-26 22:19:56 +02:00
|
|
|
'Flask>=0.12.2, <1.0', # http server
|
|
|
|
'Flask-Compress>=1.4.0, <2.0', # to compress flask responses
|
|
|
|
'Flask-SocketIO>=2.9, <3.0', # websocket server
|
|
|
|
'gevent>=1.2.2, <2.0', # websocket handling
|
|
|
|
'pygdbmi>=0.8.2.0, <0.9', # parse gdb output
|
|
|
|
'Pygments>=2.2.0, <3.0', # syntax highlighting
|
2017-11-26 21:13:38 +01:00
|
|
|
]
|
2017-01-29 04:15:28 +01:00
|
|
|
|
2017-11-26 21:36:08 +01:00
|
|
|
README = io.open(os.path.join(CURDIR, 'README.rst'), 'r', encoding="utf-8").read()
|
|
|
|
VERSION = io.open(os.path.join(CURDIR, 'gdbgui/VERSION.txt'), 'r', encoding="utf-8").read().strip()
|
2017-03-04 22:29:42 +01:00
|
|
|
|
2016-09-26 07:34:30 +02:00
|
|
|
|
|
|
|
class TestCommand (Command):
|
|
|
|
description = 'test task'
|
|
|
|
user_options = []
|
|
|
|
|
|
|
|
def initialize_options(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def finalize_options(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def run(self):
|
2016-12-04 17:21:05 +01:00
|
|
|
# import here so dependency error on Flask is not
|
|
|
|
# raised
|
2018-04-16 00:00:39 +02:00
|
|
|
from tests import test_app
|
2016-09-26 07:34:30 +02:00
|
|
|
sys.exit(test_app.main())
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='gdbgui',
|
2017-11-26 21:36:08 +01:00
|
|
|
version=VERSION,
|
2016-09-26 07:34:30 +02:00
|
|
|
author='Chad Smith',
|
2017-01-25 06:41:59 +01:00
|
|
|
author_email='grassfedcode@gmail.com',
|
2017-11-26 21:13:38 +01:00
|
|
|
description='browser-based gdb frontend using Flask and JavaScript to visually debug C, C++, Go, or Rust',
|
|
|
|
long_description=README,
|
2016-09-26 07:34:30 +02:00
|
|
|
url='https://github.com/cs01/gdbgui',
|
2017-03-19 05:54:14 +01:00
|
|
|
license='License :: GNU GPLv3',
|
2016-09-26 07:34:30 +02:00
|
|
|
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
|
|
|
|
include_package_data=True,
|
2017-01-29 04:15:28 +01:00
|
|
|
keywords=['gdb', 'debug', 'c', 'c++', 'go', 'rust', 'python', 'machine-interface', 'parse', 'frontend', 'flask', 'browser', 'gui'],
|
2016-09-26 07:34:30 +02:00
|
|
|
scripts=[],
|
2017-01-03 22:29:37 +01:00
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
2017-02-13 00:29:05 +01:00
|
|
|
# allow user to type gdbgui from terminal to automatically launch the server and a tab in a browser
|
2017-01-03 22:29:37 +01:00
|
|
|
'gdbgui = gdbgui.backend:main'
|
|
|
|
],
|
|
|
|
},
|
2016-09-26 07:34:30 +02:00
|
|
|
extras_require={},
|
|
|
|
zip_safe=False,
|
2017-11-26 21:13:38 +01:00
|
|
|
cmdclass={
|
|
|
|
'test': TestCommand,
|
|
|
|
},
|
|
|
|
install_requires=REQUIRED,
|
2016-09-26 07:34:30 +02:00
|
|
|
classifiers=[
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Operating System :: OS Independent',
|
2017-11-26 21:36:08 +01:00
|
|
|
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
2016-09-26 07:34:30 +02:00
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Programming Language :: Python :: 3.4',
|
|
|
|
'Programming Language :: Python :: 3.5',
|
2017-11-26 21:13:38 +01:00
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
'Programming Language :: Python :: Implementation :: PyPy'
|
2016-09-26 07:34:30 +02:00
|
|
|
],
|
|
|
|
)
|