Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendor telnetlib library #3444

Merged
merged 24 commits into from
Jun 26, 2024
Merged

Vendor telnetlib library #3444

merged 24 commits into from
Jun 26, 2024

Conversation

ktbyers
Copy link
Owner

@ktbyers ktbyers commented Jun 24, 2024

Fixes #3177

@ktbyers
Copy link
Owner Author

ktbyers commented Jun 24, 2024

TODO: Regression test on PY3.8 through PY3.13 to some real devices using telnet.

@ktbyers
Copy link
Owner Author

ktbyers commented Jun 24, 2024

pyats/genie are causing PY3.12 to break. I will have to look at this separately.

@ktbyers
Copy link
Owner Author

ktbyers commented Jun 24, 2024

@dtantsur @AdamWill

Let me know if you want to test and verify this will work for your use-case.

pyproject.toml Outdated
@@ -1,5 +1,5 @@
[build-system]
requires = ["poetry==1.3.2"]
requires = ["poetry==1.8.3"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side comment: I'm forced to override this in the RPM packaging since the chances of having exactly this version of Poetry are not high.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will relax to make it >= 1.6.1 or something close to that. There was an issue with PY3.13 and Poetry ~1.3.1 (IIRC).

@dtantsur
Copy link

@ktbyers as long as it passes tests under Python 3.13, it's good for me, thanks much! Do you want to update license-dependencies.txt?

@@ -57,7 +52,9 @@ jobs:
shell: bash
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
# pyats and genie breakage on newer python versions.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pardon my ignorance, is it possible to run a subset of tests without these dependencies?

@ktbyers
Copy link
Owner Author

ktbyers commented Jun 25, 2024

@dtantsur Okay, specified a wider range for Poetry versions; cleaned up license-dependencies.txt, and broke out separate tests for the parsers (pyats/genie).

So most of the testing now works on PY38 through PY313

Still need to do some manual telnet testing using this branch before I want to merge, but I think everything else is good-to-go from my perspective.

Copy link

@dtantsur dtantsur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you!

@ktbyers
Copy link
Owner Author

ktbyers commented Jun 26, 2024

Tested cisco_ios and telnet using PY3.9, PY3.10, and PY3.11 (config and show commands). The other three were (somewhat) difficult to run the live test suite against given my current setup (PY3.8, PY3.12, PY3.13)...I doubt any differences matter here (i.e. the differences should have been caught in the unit tests).

@ktbyers ktbyers merged commit b2700b5 into develop Jun 26, 2024
16 checks passed
@dtantsur
Copy link

@ktbyers thank you so much for your cooperation! Could you make a release with this change? I can pick up the version from git, but it's somewhat easier with an official release.

@ktbyers
Copy link
Owner Author

ktbyers commented Jul 8, 2024

@dtantsur FYI, this version of Netmiko was released today to pypi (Netmiko 4.4.0)

@dtantsur
Copy link

dtantsur commented Jul 9, 2024

Yep, thank you, already uploaded to Fedora!

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.

telnetlib is deprecated
2 participants