Skip to content

Commit be95217

Browse files
authored
update yarn.lock and python version (#469)
* update yarn.lock and python version * update requirements.txt * fix type errors * update flask socket io version and use apt instead of apt get * update install gdb command * set node env var to fix installation * set node env var to fix installation2 * fix typescript errors * run prettier * update pyinstaller version * update pex version
1 parent f869684 commit be95217

17 files changed

+1636
-1300
lines changed

.github/workflows/build_executable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest]
16-
python-version: ["3.10"]
16+
python-version: ["3.12"]
1717
include:
1818
- os: ubuntu-latest
1919
buildname: linux

.github/workflows/tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest]
18-
python-version: ["3.10"]
18+
python-version: ["3.12"]
1919

2020
steps:
2121
- uses: actions/checkout@v2
@@ -29,7 +29,9 @@ jobs:
2929
pip install nox
3030
- name: Install gdb ubuntu
3131
run: |
32-
sudo apt-get install gdb
32+
sudo apt update
33+
sudo apt upgrade
34+
sudo apt install gdb
3335
- name: Execute Tests
3436
run: |
3537
nox --non-interactive --session tests-${{ matrix.python-version }}
@@ -39,7 +41,7 @@ jobs:
3941
strategy:
4042
matrix:
4143
os: [ubuntu-latest]
42-
python-version: ["3.10"]
44+
python-version: ["3.12"]
4345

4446
steps:
4547
- uses: actions/checkout@v2
@@ -78,7 +80,7 @@ jobs:
7880
- name: Set up Python
7981
uses: actions/setup-python@v2
8082
with:
81-
python-version: "3.10"
83+
python-version: "3.12"
8284
- name: Install dependencies
8385
run: |
8486
python -m pip install --upgrade pip

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ venv
1515
site
1616
gdbgui/static/js/*
1717
__pycache__
18+
.coverage*

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"python.formatting.provider": "black",
2+
"python.formatting.provider": "none",
33
"[python]": {
4-
"editor.formatOnSave": true
4+
"editor.formatOnSave": true,
5+
"editor.defaultFormatter": "ms-python.black-formatter"
56
},
67
"[json]": {
78
"editor.formatOnSave": true

CHANGELOG.md

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

3+
## 0.15.2.0
4+
- Update default python version to 3.12
5+
- utf-8 decode error bugfix
6+
- fix registers cannot be displayed bug
7+
38
## 0.15.1.0
49

510
- Compatibility with Werkzeug 2.1. Use the eventlet server instead of

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Note that this only applies if you are installing the Python package, and not us
8181

8282
### Linux Dependencies
8383

84-
sudo apt-get install gdb python3
84+
sudo apt install gdb python3
8585

8686
### macOS Dependencies
8787

gdbgui/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.15.1.0
1+
0.15.2.0

gdbgui/server/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
pyinstaller_base_dir = getattr(sys, "_MEIPASS", None)
1212
using_pyinstaller = pyinstaller_base_dir is not None
1313
if using_pyinstaller:
14-
BASE_PATH = Path(pyinstaller_base_dir)
14+
BASE_PATH = Path(pyinstaller_base_dir or "")
1515
else:
1616
BASE_PATH = Path(os.path.realpath(__file__)).parent.parent
1717
PARENTDIR = BASE_PATH.parent

gdbgui/server/sessionmanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def add_new_debug_session(
100100
pid = pty_for_gdb.pid
101101
debug_session = DebugSession(
102102
pygdbmi_controller=IoManager(
103-
os.fdopen(pty_for_gdbgui.stdin, mode="wb", buffering=0),
104-
os.fdopen(pty_for_gdbgui.stdout, mode="rb", buffering=0),
103+
os.fdopen(pty_for_gdbgui.stdin, mode="wb", buffering=0), # type: ignore
104+
os.fdopen(pty_for_gdbgui.stdout, mode="rb", buffering=0), # type: ignore
105105
None,
106106
),
107107
pty_for_gdbgui=pty_for_gdbgui,

gdbgui/src/js/ToolTip.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class ToolTip extends React.Component {
5959
border: "1px solid",
6060
position: "fixed",
6161
padding: "5px",
62-
// @ts-expect-error ts-migrate(2322) FIXME: Type '"121"' is not assignable to type '"-moz-init... Remove this comment to see the full error message
6362
zIndex: "121"
6463
}}
6564
>

0 commit comments

Comments
 (0)