Skip to content

Commit 72897f8

Browse files
authored
update and freeze mkdoc dependencies (#73)
1 parent 4a379a4 commit 72897f8

File tree

6 files changed

+170
-64
lines changed

6 files changed

+170
-64
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Set up Python
4343
uses: actions/setup-python@v2
4444
with:
45-
python-version: "3.8"
45+
python-version: "3.10"
4646
- name: Install dependencies
4747
run: |
4848
python -m pip install --upgrade pip
@@ -58,7 +58,7 @@ jobs:
5858
- name: Set up Python
5959
uses: actions/setup-python@v2
6060
with:
61-
python-version: "3.8"
61+
python-version: "3.10"
6262
- name: Install dependencies
6363
run: |
6464
python -m pip install --upgrade pip

CHANGELOG.md

Lines changed: 75 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,129 @@
11
# pygdbmi release history
22

3-
## 0.10.0.3
4-
* Fixed a bug where notifications without a payload were not recognized as such
5-
* Invalid octal sequences produced by GDB are left unchanged instead of causing a `UnicodeDecodeError` (#64)
3+
## dev
4+
5+
- Fixed a bug where notifications without a payload were not recognized as such
6+
- Invalid octal sequences produced by GDB are left unchanged instead of causing a `UnicodeDecodeError` (#64)
7+
8+
Internal changes
9+
10+
- Update and freeze dependencies for documentation generation
611

712
## 0.10.0.2
8-
* Strings containing escapes are now unescaped, both for messages in error records, which were previously mangled (#57), and textual records, which were previously left escaped (#58)
9-
* Dropped support for Python 3.6 and added explicit support for Python 3.9 and 3.10.
13+
14+
- Strings containing escapes are now unescaped, both for messages in error records, which were previously mangled (#57), and textual records, which were previously left escaped (#58)
15+
- Dropped support for Python 3.6 and added explicit support for Python 3.9 and 3.10.
1016

1117
## 0.10.0.1
12-
* Fix bug with `time_to_check_for_additional_output_sec`, as it was not being used when passed to `GdbController`
18+
19+
- Fix bug with `time_to_check_for_additional_output_sec`, as it was not being used when passed to `GdbController`
1320

1421
## 0.10.0.0
1522

16-
**Breaking Changes**
23+
**Breaking Changes**
1724

18-
* Drop support for Python 3.5
19-
* Update `GdbController()` API. New API is `GdbController(command: Optional[List[str]], time_to_check_for_additional_output_sec: Optional[int])`.
20-
* `GdbController.verify_valid_gdb_subprocess()` was removed
21-
* Remove `NoGdbProcessError` error
25+
- Drop support for Python 3.5
26+
- Update `GdbController()` API. New API is `GdbController(command: Optional[List[str]], time_to_check_for_additional_output_sec: Optional[int])`.
27+
- `GdbController.verify_valid_gdb_subprocess()` was removed
28+
- Remove `NoGdbProcessError` error
2229

2330
Other Changes
2431

25-
* Add new `IoManager` class to handle more generic use-cases
26-
* [dev] use pytest for testing
27-
* gdb mi parsing remains unchanged
32+
- Add new `IoManager` class to handle more generic use-cases
33+
- [dev] use pytest for testing
34+
- gdb mi parsing remains unchanged
2835

2936
## 0.9.0.3
3037

31-
* Drop support for 2.7, 3.4
32-
* Add support for 3.7, 3.8
33-
* Add `py.typed` file so mypy can enforce type hints on `pygdbmi`
34-
* Do not log in StringStream (#36)
35-
* Updates to build and CI tests (use nox)
36-
* Use mkdocs and mkdocstrings
37-
* Doc updates
38+
- Drop support for 2.7, 3.4
39+
- Add support for 3.7, 3.8
40+
- Add `py.typed` file so mypy can enforce type hints on `pygdbmi`
41+
- Do not log in StringStream (#36)
42+
- Updates to build and CI tests (use nox)
43+
- Use mkdocs and mkdocstrings
44+
- Doc updates
3845

3946
## 0.9.0.2
40-
* More doc updates
47+
48+
- More doc updates
4149

4250
## 0.9.0.1
43-
* Update docs
51+
52+
- Update docs
4453

4554
## 0.9.0.0
46-
* Stop buffering output
47-
* Use logger in GdbController; modify `verbose` arguments.
48-
* Remove support for Python 3.3
55+
56+
- Stop buffering output
57+
- Use logger in GdbController; modify `verbose` arguments.
58+
- Remove support for Python 3.3
4959

5060
## 0.8.4.0
51-
* Add method `get_subprocess_cmd` to view the gdb command run in the shell
61+
62+
- Add method `get_subprocess_cmd` to view the gdb command run in the shell
5263

5364
## 0.8.3.0
54-
* Improve reading gdb responses on unix (performance, bugfix) (@mouuff)
65+
66+
- Improve reading gdb responses on unix (performance, bugfix) (@mouuff)
5567

5668
## 0.8.2.0
57-
* Add support for [record and replay (rr) gdb supplement](http://rr-project.org/)
69+
70+
- Add support for [record and replay (rr) gdb supplement](http://rr-project.org/)
5871

5972
## 0.8.1.1
60-
* Discard unexpected text from gdb
73+
74+
- Discard unexpected text from gdb
6175

6276
## 0.8.1.0
63-
* Add native Windows support
77+
78+
- Add native Windows support
6479

6580
## 0.8.0.0
66-
* Make parsing more efficient when gdb outputs large strings
67-
* Add new methods to GdbController class: `spawn_new_gdb_subprocess`, `send_signal_to_gdb`, and `interrupt_gdb`
81+
82+
- Make parsing more efficient when gdb outputs large strings
83+
- Add new methods to GdbController class: `spawn_new_gdb_subprocess`, `send_signal_to_gdb`, and `interrupt_gdb`
6884

6985
## 0.7.4.5
70-
* Update setup.py
86+
87+
- Update setup.py
7188

7289
## 0.7.4.4
73-
* Fix windows ctypes import (#23, @rudolfwalter)
90+
91+
- Fix windows ctypes import (#23, @rudolfwalter)
7492

7593
## 0.7.4.3
76-
* Workaround gdb bug with repeated dictionary keys
94+
95+
- Workaround gdb bug with repeated dictionary keys
7796

7897
## 0.7.4.2
79-
* Improved buffering of incomplete gdb mi output (@trapito)
80-
* Remove support of Python 3.2
98+
99+
- Improved buffering of incomplete gdb mi output (@trapito)
100+
- Remove support of Python 3.2
81101

82102
## 0.7.4.1
83-
* Preserve leading and trailing spaces in gdb/mi output (plus unit tests)
84-
* Add unit test for buffering of gdb/mi output
85-
* Documentation updates
86-
* Refactoring
103+
104+
- Preserve leading and trailing spaces in gdb/mi output (plus unit tests)
105+
- Add unit test for buffering of gdb/mi output
106+
- Documentation updates
107+
- Refactoring
87108

88109
## 0.7.4.0
89-
* Add more exception types (`NoGdbProcessError`, `GdbTimeoutError`)
90-
* Add logic fixes for Windows (@johncf)
91-
* Use codecs.open() to open the readme.rst, to prevent locale related bugs (@mariusmue)
110+
111+
- Add more exception types (`NoGdbProcessError`, `GdbTimeoutError`)
112+
- Add logic fixes for Windows (@johncf)
113+
- Use codecs.open() to open the readme.rst, to prevent locale related bugs (@mariusmue)
92114

93115
## 0.7.3.3
94-
* Add alternate pipe implementation for Windows
116+
117+
- Add alternate pipe implementation for Windows
95118

96119
## 0.7.3.2
97-
* Replace `epoll` with `select` for osx compatibility (@felipesere)
120+
121+
- Replace `epoll` with `select` for osx compatibility (@felipesere)
98122

99123
## 0.7.3.1
100-
* Fix README
124+
125+
- Fix README
101126

102127
## 0.7.3.0
103-
* Add support for gdb/mi (optional) tokens (@mariusmue)
128+
129+
- Add support for gdb/mi (optional) tokens (@mariusmue)

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ exclude example.py
77
exclude .flake8
88
exclude noxfile.py
99
exclude mkdocs.yml
10+
exclude *.in
11+
exclude *.txt
1012

1113
prune tests
1214
prune docs

mkdoc_requirements.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.
2+
mkdocstrings[python]
3+
mkdocs
4+
mkdocs-material
5+
pygments

mkdoc_requirements.txt

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#
2+
# This file is autogenerated by pip-compile with python 3.10
3+
# To update, run:
4+
#
5+
# pip-compile mkdoc_requirements.in
6+
#
7+
click==8.1.3
8+
# via mkdocs
9+
ghp-import==2.1.0
10+
# via mkdocs
11+
griffe==0.22.0
12+
# via mkdocstrings-python
13+
importlib-metadata==4.12.0
14+
# via mkdocs
15+
jinja2==3.1.2
16+
# via
17+
# mkdocs
18+
# mkdocs-material
19+
# mkdocstrings
20+
markdown==3.3.7
21+
# via
22+
# mkdocs
23+
# mkdocs-autorefs
24+
# mkdocs-material
25+
# mkdocstrings
26+
# pymdown-extensions
27+
markupsafe==2.1.1
28+
# via
29+
# jinja2
30+
# mkdocstrings
31+
mergedeep==1.3.4
32+
# via mkdocs
33+
mkdocs==1.3.1
34+
# via
35+
# -r mkdoc_requirements.in
36+
# mkdocs-autorefs
37+
# mkdocs-material
38+
# mkdocstrings
39+
mkdocs-autorefs==0.4.1
40+
# via mkdocstrings
41+
mkdocs-material==8.3.9
42+
# via -r mkdoc_requirements.in
43+
mkdocs-material-extensions==1.0.3
44+
# via mkdocs-material
45+
mkdocstrings[python]==0.19.0
46+
# via
47+
# -r mkdoc_requirements.in
48+
# mkdocstrings-python
49+
mkdocstrings-python==0.7.1
50+
# via mkdocstrings
51+
packaging==21.3
52+
# via mkdocs
53+
.
54+
# via -r mkdoc_requirements.in
55+
pygments==2.12.0
56+
# via
57+
# -r mkdoc_requirements.in
58+
# mkdocs-material
59+
pymdown-extensions==9.5
60+
# via
61+
# mkdocs-material
62+
# mkdocstrings
63+
pyparsing==3.0.9
64+
# via packaging
65+
python-dateutil==2.8.2
66+
# via ghp-import
67+
pyyaml==6.0
68+
# via
69+
# mkdocs
70+
# pyyaml-env-tag
71+
pyyaml-env-tag==0.1
72+
# via mkdocs
73+
six==1.16.0
74+
# via python-dateutil
75+
watchdog==2.1.9
76+
# via mkdocs
77+
zipp==3.8.1
78+
# via importlib-metadata

noxfile.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,25 @@ def lint(session):
2626
session.run("python", "setup.py", "check", "--metadata", "--strict")
2727

2828

29-
doc_dependencies = [
30-
".",
31-
"mkdocstrings",
32-
"mkdocs",
33-
"mkdocs-material",
34-
"pygments",
35-
]
29+
def install_mkdoc_dependencies(session):
30+
session.install("-r", "mkdoc_requirements.txt")
3631

3732

38-
@nox.session(python="3.7")
33+
@nox.session
3934
def docs(session):
40-
session.install(*doc_dependencies)
35+
install_mkdoc_dependencies(session)
4136
session.run("mkdocs", "build")
4237

4338

44-
@nox.session(python="3.7")
39+
@nox.session
4540
def serve_docs(session):
46-
session.install(*doc_dependencies)
41+
install_mkdoc_dependencies(session)
4742
session.run("mkdocs", "serve")
4843

4944

50-
@nox.session(python="3.7")
45+
@nox.session
5146
def publish_docs(session):
52-
session.install(*doc_dependencies)
47+
install_mkdoc_dependencies(session)
5348
session.run("mkdocs", "gh-deploy")
5449

5550

0 commit comments

Comments
 (0)