Skip to content

Allow cloudshell-cli 6.x so telnet works on Python 3.13 (v6.1.1) - #90

Merged
nahumtimerman merged 1 commit into
masterfrom
feature/cli6-py313
Sep 7, 2026
Merged

nahumtimerman merged 1 commit into
masterfrom
feature/cli6-py313

Conversation

@nahumtimerman

Copy link
Copy Markdown
Contributor

Second pass of the bundled-Python 3.13 wave: these three shells pinned cloudshell-cli~=5.0, and cli 5.x has a bare import telnetlib (removed in 3.13) — so telnet sessions broke at import time on 3.13 even though the package installed fine.

  • cloudshell-cli>=5.0,<7 (cli 6.0.0 vendors telnetlib; diff vs 5.0.2 is only that vendoring + the paramiko 3.x bump, no API change — so the pin is widened, not forced, to stay friendly to offline PyPI mirrors)
  • Juniper also gets pydantic~=1.10, matching what PanOS already carries: cloudshell-shell-connectivity-flow~=4.0 caps pydantic<2.5, so the resolver picks pydantic 2.4 → pydantic-core==2.10.1, which has no cp313 wheel and fails a Rust/maturin build

Verified on 64-bit Python 3.13: full dependency stack resolves wheel-only, telnet resolves to the vendored _telnetlib, and unit tests pass (juniper 40, panos 2, cisco 74).

🤖 Generated with Claude Code

cloudshell-cli 5.x imports telnetlib unguarded, which is gone in 3.13,
so telnet sessions failed at import time even though the package
installed cleanly. cli 6.0.0 vendors telnetlib and is otherwise
API-identical to 5.0.2, so the pin is widened rather than forced.

Juniper additionally caps pydantic to ~=1.10 (matching PanOS): via
cloudshell-shell-connectivity-flow~=4.0's pydantic<2.5, the resolver
would pick pydantic 2.4 -> pydantic-core 2.10.1, which has no cp313
wheel and fails to build.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@nahumtimerman
nahumtimerman merged commit 724a66d into master Sep 7, 2026
4 of 5 checks passed
@nahumtimerman
nahumtimerman deleted the feature/cli6-py313 branch September 7, 2026 08:01
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