kushaldas / johnnycanencrypt

Python module for OpenPGP written in Rust.
GNU Lesser General Public License v3.0
51 stars 9 forks source link

Remove cffi usage for building the wheel #44

Closed kushaldas closed 3 years ago

kushaldas commented 3 years ago

Users can not use the existing releases if they try to install via pip directory.

❯ python3
Python 3.9.0 (default, Oct  6 2020, 00:00:00) 
[GCC 10.2.1 20200826 (Red Hat 10.2.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import johnnycanencrypt as jce
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/test1/lib64/python3.9/site-packages/johnnycanencrypt/__init__.py", line 10, in <module>
    from .johnnycanencrypt import (
ImportError: cannot import name 'CryptoError' from 'johnnycanencrypt.johnnycanencrypt' (/tmp/test1/lib64/python3.9/site-packages/johnnycanencrypt/johnnycanencrypt/__init__.py)

This is happening as pyproject.toml mentions cffi as bindings.