mirror of
https://github.com/cs01/gdbgui
synced 2024-11-16 07:47:46 +01:00
d60dc57274
* Bugfixes for building executable This commit has several bug fixes. - Add required python packages that were missing from setup.py - Add hiddenimports for pyinstaller so that pyinstaller properly loads gevent - Modify noxfile so that it loads the required packages when creating a session. Also, python 3.7 support was added in pyinstaller 3.4, so pyinstaller version needs to be updated. * General cleanup
81 lines
2.4 KiB
Python
81 lines
2.4 KiB
Python
#!/usr/bin/env python
|
|
|
|
import io
|
|
import os
|
|
from setuptools import find_packages, setup # type: ignore
|
|
|
|
CURDIR = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
EXCLUDE_FROM_PACKAGES = ["tests"]
|
|
REQUIRED = [
|
|
"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
|
|
"gevent-websocket>=0.10.1, <0.11", # also websocket
|
|
"eventlet>=0.25.0, <0.26". # also websocket
|
|
"pygdbmi>=0.9.0.0, <1.0", # parse gdb output
|
|
"Pygments>=2.2.0, <3.0", # syntax highlighting
|
|
]
|
|
|
|
README = io.open(os.path.join(CURDIR, "README.md"), "r", encoding="utf-8").read()
|
|
VERSION = (
|
|
io.open(os.path.join(CURDIR, "gdbgui/VERSION.txt"), "r", encoding="utf-8")
|
|
.read()
|
|
.strip()
|
|
)
|
|
|
|
setup(
|
|
name="gdbgui",
|
|
version=VERSION,
|
|
author="Chad Smith",
|
|
author_email="grassfedcode@gmail.com",
|
|
description="Browser-based frontend to gdb. Debug C, C++, Go, or Rust.",
|
|
long_description=README,
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/cs01/gdbgui",
|
|
license="License :: GNU GPLv3",
|
|
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
|
|
include_package_data=True,
|
|
keywords=[
|
|
"gdb",
|
|
"debug",
|
|
"c",
|
|
"c++",
|
|
"go",
|
|
"rust",
|
|
"python",
|
|
"machine-interface",
|
|
"parse",
|
|
"frontend",
|
|
"flask",
|
|
"browser",
|
|
"gui",
|
|
],
|
|
scripts=[],
|
|
entry_points={
|
|
"console_scripts": [
|
|
# allow user to type gdbgui from terminal to automatically launch
|
|
# the server and a tab in a browser
|
|
"gdbgui = gdbgui.backend:main"
|
|
]
|
|
},
|
|
zip_safe=False,
|
|
install_requires=REQUIRED,
|
|
classifiers=[
|
|
"Intended Audience :: Developers",
|
|
"Operating System :: OS Independent",
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.6",
|
|
"Programming Language :: Python :: 3.7",
|
|
"Programming Language :: Python :: 3.8",
|
|
],
|
|
python_requires=">=3.6",
|
|
project_urls={
|
|
"Documentation": "https://cs01.github.io/gdbgui/",
|
|
"Source Code": "https://github.com/cs01/gdbgui",
|
|
"Bug Tracker": "https://github.com/cs01/gdbgui/issues",
|
|
},
|
|
)
|