Skip to content

Commit baf918d

Browse files
author
Chad Smith
authored
fix ImportError in v0.13 release branch (#392)
* pin dependencies * update changelog * update changelog text
1 parent 233acdd commit baf918d

File tree

6 files changed

+29
-17
lines changed

6 files changed

+29
-17
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include README.md
22
include LICENSE
3+
include requirements.txt
34
graft gdbgui
45

56
prune examples
@@ -20,7 +21,6 @@ exclude jest.config.js
2021
exclude make_executable.py
2122
exclude mkdocs.yml
2223
exclude package.json
23-
exclude requirements.txt
2424
exclude tsconfig.json
2525
exclude tslint.json
2626
exclude webpack.config.js

docs/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# gdbgui release history
22

3+
## 0.13.2.2
4+
* 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.
5+
36
## 0.13.2.1
47
* No end user changes. This release builds the gdbgui executables with GitHub actions.
58

gdbgui/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.13.2.1
1+
0.13.2.2

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def develop(session):
9393
session.log("To use, run: '%s'", command)
9494

9595

96+
@nox.session(python="3.7")
9697
def build(session):
9798
session.install("setuptools", "wheel", "twine")
9899
session.run("rm", "-rf", "dist", external=True)

requirements.txt

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1-
# https://caremad.io/posts/2013/07/setup-vs-requirement/
2-
--index-url https://pypi.org/simple/
3-
-e .
1+
bidict==0.21.2
2+
Brotli==1.0.9
3+
click==7.1.2
4+
dnspython==2.0.0
5+
eventlet==0.25.2
6+
Flask==0.12.5
7+
Flask-Compress==1.8.0
8+
Flask-SocketIO==2.9.6
9+
gevent==1.5.0
10+
gevent-websocket==0.10.1
11+
greenlet==0.4.16
12+
itsdangerous==1.1.0
13+
Jinja2==2.11.2
14+
MarkupSafe==1.1.1
15+
monotonic==1.5
16+
pygdbmi==0.9.0.3
17+
Pygments==2.7.3
18+
python-engineio==3.14.2
19+
python-socketio==4.6.1
20+
six==1.15.0
21+
Werkzeug==0.16.1

setup.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,7 @@
77
CURDIR = os.path.abspath(os.path.dirname(__file__))
88

99
EXCLUDE_FROM_PACKAGES = ["tests"]
10-
REQUIRED = [
11-
"Flask>=0.12.2, <1.0", # http server
12-
"Flask-Compress>=1.4.0, <2.0", # to compress flask responses
13-
"Flask-SocketIO>=2.9, <3.0", # websocket server
14-
"gevent>=1.2.2, <2.0", # websocket handling
15-
"gevent-websocket>=0.10.1, <0.11", # also websocket
16-
"eventlet>=0.25.0, <0.26", # also websocket
17-
"pygdbmi>=0.9.0.0, <1.0", # parse gdb output
18-
"Pygments>=2.2.0, <3.0", # syntax highlighting
19-
]
20-
10+
REQUIREMENTS = io.open(os.path.join(CURDIR, "requirements.txt"), "r", encoding="utf-8").readlines()
2111
README = io.open(os.path.join(CURDIR, "README.md"), "r", encoding="utf-8").read()
2212
VERSION = (
2313
io.open(os.path.join(CURDIR, "gdbgui/VERSION.txt"), "r", encoding="utf-8")
@@ -61,7 +51,7 @@
6151
]
6252
},
6353
zip_safe=False,
64-
install_requires=REQUIRED,
54+
install_requires=REQUIREMENTS,
6555
classifiers=[
6656
"Intended Audience :: Developers",
6757
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)