Skip to content

Commit 0f936a0

Browse files
committed
Bump to latest myst-parser and requests package
1 parent e9e884b commit 0f936a0

5 files changed

Lines changed: 27 additions & 39 deletions

File tree

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
- Detect interpreter-hosted shells like Xonsh, which runs as a Python script so the process tree shows `python` rather than `xonsh`. The tree walk now scans interpreter arguments for the shell's launcher file, matching only an existing file named exactly after the shell to avoid false positives. A new `interpreter` field on `Shell` declares the host interpreter (`XONSH` sets it to `python`). On macOS and the BSDs this required the `ps` walk to read full command lines, so a shell's path there now comes from `argv[0]` (when absolute) or `SHELL`.
1616
- Detect the active shell on illumos, Solaris, and AIX/IBM i. Their System V `/proc` exposes process status as a binary `pstatus_t` and has no `/proc/<pid>/cmdline` or `exe`: the `/proc` walk previously decoded that binary as text and raised `UnicodeDecodeError`, crashing `current_shell()`. It now reads `/proc` records as bytes, and the process-tree walk falls back to `ps` when `/proc` yields nothing. The `ps` invocation uses the portable POSIX form (`-o pid=,ppid=,args=`, dropping the `-ww` that AIX's POSIX-mode `ps` rejects) with positional parsing of empty headers, so it works across the System V `ps` of all three without depending on header names (`COMMAND` vs `CMD`).
1717
- Detect the active shell on Windows by walking the parent process tree via the Win32 Tool Help API (`CreateToolhelp32Snapshot`), where neither `/proc` nor `ps` exists. `is_powershell()`, `is_cmd()`, Git Bash detection through `is_bash()`, `current_shell()` arbitration, and `current_shell_path()` now rely on the actual ancestor processes rather than only the `PROMPT`/`PSModulePath` environment variables. Executable paths are resolved with `QueryFullProcessImageNameW`. The `ctypes` bindings live in a new `extra_platforms._windows` module, imported lazily and only on Windows.
18+
- Render GitHub-style alerts (`> [!NOTE]`, `> [!WARNING]`, …) as admonitions in the documentation by enabling MyST's `alert` extension (requires `myst-parser>=5.1`).
19+
- Drop the `types-requests` typing stub and the now-empty `typing` dependency group, and require `requests>=2.34`, which ships inline type hints (PEP 561).
1820

1921
## [`12.0.3` (2026-04-29)](https://github.com/kdeldycke/extra-platforms/compare/v12.0.2...v12.0.3)
2022

claude.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $ uv run --group test pytest -n auto
5252
### Type checking
5353

5454
```shell-session
55-
$ uv run --group typing mypy extra_platforms
55+
$ uvx repomatic run mypy -- extra_platforms
5656
```
5757

5858
### Documentation

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545

4646
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html
4747
myst_enable_extensions = [
48+
# Render GitHub-style alerts (> [!NOTE], > [!WARNING], …) as admonitions.
49+
# readme.md, changelog.md and install.md use them, and are pulled into the
50+
# docs via {include}; without this they degrade to plain blockquotes.
51+
"alert",
4852
"attrs_block",
4953
"attrs_inline",
5054
"colon_fence",

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,18 @@ test = [
281281
"pytest-randomly>=4",
282282
# pytest-xdist 3.7.0 is the first version to support Python 3.13.
283283
"pytest-xdist[psutil]>=3.7",
284-
# requests 2.32.5 is the first version to drop support for Python 3.8.
285-
"requests>=2.32.5",
284+
# requests 2.34 is the first version to ship inline type hints (PEP 561),
285+
# which lets us drop the types-requests stub package from the typing group.
286+
"requests>=2.34",
286287
"tomli>=2.3; python_version<'3.11'",
287288
]
288289
docs = [
289290
# We need Click Extra 7.5 to render Markdown table properly.
290291
"click-extra[sphinx]>=7.5",
291292
"furo>=2025.9.25",
292-
"myst-parser>=5",
293+
# myst-parser 5.1 adds the "alert" extension that renders GitHub-style
294+
# callouts (> [!NOTE], …) as admonitions. See docs/conf.py.
295+
"myst-parser>=5.1",
293296
# Required so autodoc can import extra_platforms.pytest and document decorators.
294297
"pytest>=8.2.1",
295298
# Provides the repomatic.myst_docstrings Sphinx extension.
@@ -305,9 +308,6 @@ docs = [
305308
# wcmatch 10.0 fix some inconsistencies in globbing and symlinks.
306309
"wcmatch>=10",
307310
]
308-
typing = [
309-
"types-requests>=2.32.4.20250611",
310-
]
311311

312312
[tool.uv]
313313
dependency-groups.docs = { requires-python = ">= 3.12" }

uv.lock

Lines changed: 14 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)