Closed bogdan-kulynych closed 5 years ago
Knowing the work it took to update, this is an great contribution! congrats. About the outdated travis image: its also possible to build using docker images of more recent distros.
Tweaked the code a bit to make version detection on MacOS more robust. It will now automatically pick openssl version 1.1 over version 1.0 if installed.
Extra fix to include C source files for the binding so that bplib -- which hooks directly into them -- compiles against the new version of petlib.
Sorry, one of the Travis builds failed because of an apt-get update
quirk (and I cannot request another build).
Merging the OpenSSL 1.1 compatibility.
Fix #13
Core changes:
petlib/_cffi_src
directory that contains C headers and sources for OpenSSL 1.0 and 1.1 bindingspetlib/_compat.py
petlib/_cff_src/install_openssl_v1_1.sh
that downloads and builds OpenSSL 1.1 on a Travis Ubuntu 14.04 machine. This will have to change once Travis moves to a more modern distro.Side changes:
from petlib import *
(commit https://github.com/gdanezis/petlib/commit/f87d763f09b2b2a8a3e01bf480ce1d46f649c7a6)autopep8
formatting tool (commit https://github.com/gdanezis/petlib/commit/48a8d614743ef9396d80a76d3636749d103ddb3b)Feel free to rollback any of the side changes.
We did not increment the version.
Linter output for reference: