Pin cffi version to 1.14.6 for Python 3.5 #570
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem Description
cffi 1.15.0
no longer supports python 3.5, and that is causing the CI tests to not run at all for python 3.5.So we need to pin the cffi version to
1.14.6
(the latest that works for python 3.5).Fixes #565
Solution
Modify
tox.ini
to use cffi1.14.6
for python versions <=3.5.Note that the higher versions (>3.5) will still use the latest cffi (1.15.0 as of this PR).
QA Steps
should install
cffi==1.14.6
as a dependency, and the tests should start rolling. (passing/failing doesn't matter)should install the latest cffi (any
cffi>1.14.6
).Notes & Discussion
tox.ini
seems like the correct place to intercept the cffi version (as opposed to thesetup.py
). Because thecffi
comes as a dependency ofpylxd
, which thetox.ini
installs before thesetup.py
runs (which like everything else after that uses the latest cffi from cache).