Skip to content

Add multiple features, bug fixes and update libssh2 to the latest stable. #94

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

Closed
wants to merge 26 commits into from

Conversation

Red-M
Copy link

@Red-M Red-M commented Jun 25, 2020

This is a new PR (from #90) to track the branch of changes for upstream as I see it now that I am required to make my own changes and publish under a new name as it appears the maintainer has disappeared.

The changes are as follows. I also recommend reading the commit messages and the changes on each commit instead of the roll up diff as it is HUGE.

Changes

  • Update libssh2 to 1.9.0 stable.
  • Regenerate Cython files.
  • Update .gitignore to include src directory to ignore libssh2 rebuilds.
  • Add python 3.8 to appveyor.
  • Add additional error codes.
  • Add session.method_pref(), docs and tests.
  • Add session.methods(), docs and tests.
  • Add session.supported_algs(), docs and tests.
  • Add session.flag(), docs and tests.
  • Bug fix for session.userauth_publickey_frommemory() being provided no public key and throwing a type error.

dvolodin7 and others added 25 commits May 8, 2019 07:49
This enables giving ssh a prefered list of options such as
kex, ciphers, MACs and etc
Regenerate Cython files.
Add `ssh2.session.Session.method_pref()` doc string.
Update .gitignore to include src directory to ignore libssh2 rebuilds.
Add additional error codes.
Add `session.method_pref()` docs and tests.
Add `session.methods()`, docs and tests.
Add `session.supported_algs()`, docs and tests.
Add `session.flag()`, docs and tests.
Bug fix for `session.userauth_publickey_frommemory()` being provided no public key and throwing a type error.
Add callback function typedef for keyboard interactive authentication.
Add `ctypedef`s for keyboard interactive authentication.
Fix keyboard interactive authentication function def in c_ssh.
Internally hide that `libssh2_userauth_keyboard_interactive` takes a callback function and not a string...
Add enums to clean up any symbols from libssh2 and make interacting with them much easier to do.
Add additional unit tests for ParallelSSH#86
Correct issue in `ssh2.sftp_handel.SFTPHandle.readdir*()` which adds EAGAIN items into the generators.
Rename library to redlibssh2.
@Red-M Red-M changed the title Ssh2 python Add multiple features, bug fixes and update libssh2 to the latest stable. Jun 25, 2020
@llchan
Copy link

llchan commented Jun 29, 2020

Thanks for splitting off dedicated PR branch. Could you revert the changes that rename ssh2 to redlibssh2 in this branch? I assume the maintainer(s) will require that before it can be merged.

@Red-M

This comment was marked as spam.

@fruch
Copy link

fruch commented Jul 20, 2020

seems like appveyor isn't happy

This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

May I suggest trying to move to travis ? (they now support windows and mac)

@Red-M

This comment was marked as spam.

@fruch
Copy link

fruch commented Jul 26, 2020

@llchan
Sorry this took so long but I have been busy with other matters however this should be fine now.

@fruch
Right now I am aiming for redlibssh2 to build packages for manylinux2014 on my own build infrastructure. Once I have packages I can publish to pypi I will be.
I'll also eventually get to travis builds because my build system easily supports that but for now, you should be able to install via my own repo if you'd like to use these patches and be sure you're getting them.

FYI you can build on travis for multiple platfrom quite easily with cibuildwheel
here's an example of a package i'm maintaining (it's now even has python3.9 wheels):
https://travis-ci.org/github/scylladb/python-driver/builds/711061342
I'll be happy to give a hand with such a setup if you want

It's breaks my heart to see those kind of failures....
https://ci.appveyor.com/project/pkittenis/ssh2-python/builds/34304826/job/4yefexlvgd216bb7

@pkittenis
Copy link
Member

Thanks for the PR. Have made similar changes, will aim to get these in.

If @Red-M is interested can add you to this project. As has been obvious from this PR, there is only so much one maintainer can do.

@pkittenis
Copy link
Member

| Thanks for splitting off dedicated PR branch. Could you revert the changes that rename ssh2 to redlibssh2 in this branch? I assume the maintainer(s) will require that before it can be merged.

Yes.

@pkittenis
Copy link
Member

| I'll be happy to give a hand with such a setup if you want [cibuildwheel]

@fruch , if you would like to take a stab at re-doing the wheel builds for travis CI would welcome a PR.

@@ -0,0 +1,3 @@
[submodule "libssh2"]
Copy link
Member

Choose a reason for hiding this comment

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

Would rather not use submodules. It adds quite a bit of overhead on the developer and can be confusing to work with. The source code is included in the repo so as not to have to use submodules.

This comment was marked as spam.

@Red-M

This comment was marked as spam.

@pkittenis
Copy link
Member

Closing this so can split the various tasks into different PRs. Libssh2 upgrade is being done in #101

In general better to do one thing per PR to make reviewing easier, eg API implementation, libssh2 upgrade, bug fixes etc. This PR has too many unrelated changes to effectively review at once.

@pkittenis pkittenis closed this Aug 13, 2020
@Red-M Red-M deleted the ssh2-python branch September 5, 2020 11:14
@Red-M

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants