diff options
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 16 | 
1 files changed, 15 insertions, 1 deletions
| @@ -32,13 +32,15 @@ with open(os.path.join(base_dir, "cryptography", "__about__.py")) as f:      exec(f.read(), about) +SETUPTOOLS_DEPENDENCY = "setuptools"  CFFI_DEPENDENCY = "cffi>=0.8"  SIX_DEPENDENCY = "six>=1.4.1"  VECTORS_DEPENDENCY = "cryptography_vectors=={0}".format(about['__version__'])  requirements = [      CFFI_DEPENDENCY, -    SIX_DEPENDENCY +    SIX_DEPENDENCY, +    SETUPTOOLS_DEPENDENCY  ]  # If you add a new dep here you probably need to add it in the tox.ini as well @@ -173,5 +175,17 @@ setup(          "build": CFFIBuild,          "install": CFFIInstall,          "test": PyTest, +    }, + +    entry_points={ +        "cryptography.hazmat.backends": [ +            "commoncrypto = cryptography.hazmat.backends.commoncrypto:backend", +            "openssl = cryptography.hazmat.backends.openssl:backend" +        ], + +        "cryptography.hazmat.is_backend_available": [ +            "commoncrypto = cryptography.hazmat.bindings.commoncrypto." +            "binding:Binding.is_available" +        ]      }  ) | 
