Closed BibMartin closed 1 year ago
Unfortunately, this does not seem to be the only place in need of fixes.
Tests pass for me if I also add
--- a/oscrypto/_openssl/_libcrypto_ctypes.py
+++ b/oscrypto/_openssl/_libcrypto_ctypes.py
@@ -40,7 +40,7 @@ except (AttributeError):
is_libressl = 'LibreSSL' in version_string
-version_match = re.search('\\b(\\d\\.\\d\\.\\d[a-z]*)\\b', version_string)
+version_match = re.search('\\b(\\d\\.\\d\\.\\d+[a-z]*)\\b', version_string)
if not version_match:
version_match = re.search('(?<=LibreSSL )(\\d\\.\\d(\\.\\d)?)\\b', version_string)
if not version_match:
@wbond Hello, this is blocker issue, can we get this merged soon please? :pray:
Can you rebase this on master please @BibMartin? I've done a bit of CI work over the past couple of days, so things should be in a good place now.
I've merged this for now and added some fixes on master since I didn't have permission to push to your branch @BibMartin
This PR fixes the regex that breaks oscrypto with openssl 3.0.10 (#75 ). In adding a
+
in the regex, we allow version numbers of the formD.D.DD
. Tested at home, it seems enough to solve the problem.This would be the clean solution to snowpark-python's problem (https://github.com/snowflakedb/snowpark-python/issues/992)