Skip to content

Commit

Permalink
fix ImportError in v0.13 release branch (#392)
Browse files Browse the repository at this point in the history
* pin dependencies

* update changelog

* update changelog text
  • Loading branch information
Chad Smith authored May 20, 2021
1 parent 233acdd commit baf918d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 17 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include README.md
include LICENSE
include requirements.txt
graft gdbgui

prune examples
Expand All @@ -20,7 +21,6 @@ exclude jest.config.js
exclude make_executable.py
exclude mkdocs.yml
exclude package.json
exclude requirements.txt
exclude tsconfig.json
exclude tslint.json
exclude webpack.config.js
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# gdbgui release history

## 0.13.2.2
* Fix `ImportError: cannot import name 'NoGdbProcessError'` by pinning dependencies to ensure they are all compatible. Note that this means the only way gdbgui should be run is by installing inside a virtual environment, installing with pipx (as it uses virtual environments), or to run the executable build from gdbgui's release page.

## 0.13.2.1
* No end user changes. This release builds the gdbgui executables with GitHub actions.

Expand Down
2 changes: 1 addition & 1 deletion gdbgui/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.2.1
0.13.2.2
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def develop(session):
session.log("To use, run: '%s'", command)


@nox.session(python="3.7")
def build(session):
session.install("setuptools", "wheel", "twine")
session.run("rm", "-rf", "dist", external=True)
Expand Down
24 changes: 21 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# https://caremad.io/posts/2013/07/setup-vs-requirement/
--index-url https://pypi.org/simple/
-e .
bidict==0.21.2
Brotli==1.0.9
click==7.1.2
dnspython==2.0.0
eventlet==0.25.2
Flask==0.12.5
Flask-Compress==1.8.0
Flask-SocketIO==2.9.6
gevent==1.5.0
gevent-websocket==0.10.1
greenlet==0.4.16
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
monotonic==1.5
pygdbmi==0.9.0.3
Pygments==2.7.3
python-engineio==3.14.2
python-socketio==4.6.1
six==1.15.0
Werkzeug==0.16.1
14 changes: 2 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,7 @@
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
]

REQUIREMENTS = io.open(os.path.join(CURDIR, "requirements.txt"), "r", encoding="utf-8").readlines()
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")
Expand Down Expand Up @@ -61,7 +51,7 @@
]
},
zip_safe=False,
install_requires=REQUIRED,
install_requires=REQUIREMENTS,
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
Expand Down

0 comments on commit baf918d

Please sign in to comment.