Conversation
Remove paramiko upper-bound to allow using paramiko version >3.0.
1 similar comment
cderici
left a comment
There was a problem hiding this comment.
I've had to pin urllib3 to urllib3==1.25.7 to have the test pass.
This is because the transitive dependency coming from pylxd. So, pylxd wants urllib3 < 2, but additionally it depends on requests library, and requests in turn wants urllib3>=1.21.1,<3 , but pip's not gonna complain because to satisfy pylxd's initial constraint it chooses the urllib==1.26.somthing, however, tox doesn't care about any of these unless you tell it explicitly. I tried swapping these lines to install pylxd first and I'm surprised that pip didn't seem to handle the dependency constraint (it chose the urllib>2).
Anyways I'm fine with the paramiko version change. When I fix the urllib3 versions on my local the tests seem to be passing. Let's just remove the urllib3 lines from the tox.ini and let the pip install pylxd install it as a dependency. That one already satisfies the requests library. So it'll be fine until the requests raises the floor for the urllib3 to >= 2. Then we might need to deal with another macaroonbakery situtation with the pylxd guys :)
Thanks for the PR <3
PyLXD needs a specific urllib3 version range, remove urllib3 installation and let pick choose a version compatible with PyLXD.
|
/build |
|
I think we'll need to put an upper limit on urllib3 |
|
Yeah I'm not sure why we keep picking |
cderici
left a comment
There was a problem hiding this comment.
Yeah that seems to have done it 👍
|
/build |
|
/merge |
#1024 ## What's Changed * Remove paramiko upper-bound by @gboutry in #1005 * Remove explicit passing of event_loop into tests by @cderici in #1006 * chore: remove the upper restrictions on the websockets dependency by @tonyandrewmeyer in #1007 * Target ceiling version by @cderici in #1008 * Make it easier to run tests using `make` by @cderici in #1012 * Avoid installing signal handlers to the event loop by @cderici in #1014 * feat: remove app block until done by @yanksyoon in #1017 * feat: remove app timeout by @yanksyoon in #1018 * Forward port latest changes from 2.9 onto 3.x by @cderici in #1022 #### Notes & Discussion JUJU-5414
Description
This change removes paramiko upper bound, allow using paramiko >3.0
Fixes: #1004
QA Steps
<Commands / tests / steps to run to verify that the change works:>
All CI tests need to pass.
Notes & Discussion
I've had to pin
urllib3tourllib3==1.25.7to have the test pass. but the error was from pylxd failing withTypeError: HTTPConnection.request() got an unexpected keyword argument 'chunked'. Not sure this is related to paramiko change, since paramiko does not depend on urllib3.