Skip to content

deps: mark pyreadline3 as Windows-only - #253

Open
bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:bsn/pyreadline-windows-only
Open

deps: mark pyreadline3 as Windows-only#253
bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:bsn/pyreadline-windows-only

Conversation

@bjornars

Copy link
Copy Markdown
Contributor

pyreadline3 is only imported when os.name == "nt" (see novem/cli/__init__.py), where it stands in for the stdlib readline module that isn't available on Windows. On Linux/macOS the stdlib readline is used and pyreadline3 is never touched.

This adds an os_name == 'nt' environment marker to the dependency so it is no longer installed on non-Windows platforms.

  • pyproject.toml: "pyreadline3>=3.5.4 ; os_name == 'nt'"
  • uv.lock: regenerated; uv lock --check passes

No behavior change — the import was already guarded by the os.name check.

pyreadline3 is only imported when os.name == 'nt' (novem/cli/__init__.py),
as a stand-in for the stdlib readline module which is unavailable on
Windows. Add an os_name == 'nt' environment marker so it is no longer
installed on Linux/macOS, where it is never used.
@bjornars
bjornars requested review from myme and sondove and removed request for sondove July 10, 2026 14:52
@bjornars
bjornars requested review from sondove and removed request for sondove July 29, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant