wbond / oscrypto

Compiler-free Python crypto library backed by the OS, supporting CPython and PyPy
MIT License
321 stars 71 forks source link

Please make a new PyPi release #81

Open viettappcard opened 8 months ago

viettappcard commented 8 months ago

1. Ask

New release please

2. Issue

I'm having an issue using oscrypto version 1.3.0 (python 3.11.8) on a machine with OpenSSL 3.0.11 .

The root cause looks to be with oscrypto/_openssl/_libcrypto_ctypes.py and oscrypto/_openssl/_libcrypto_cffi.py while attempting to get the OpenSSL version.

For example with _libcrypto_ctypes.py, the regex for version 1.3.0 as installed from pypi won't be able to recognize the version in string "OpenSSL 3.0.11 19 Sep 2023" (code link). Looking at what's currently in master branch, the regex has been improved since (code link). But there's no release so I can't install it with pip in my automated build.

I do not want to downgrade my OpenSSL. I haven't tried upgrading OpenSSL but I suspect the same error will occur.

3. Acceptance Criteria

A new release on PyPi of oscrypto

viettappcard commented 8 months ago

Judging from the discussion starting from here, looks like people can either pin the dependency on a commit hash or move off oscrypto