- modified tox.ini so that py32 can continue to be tested even though cryptography no longer supports it
 - Key Generation - #147 :
   - implemented new API method
   - added unit tests for generating keys, adding user ids, and adding new subkeys
   - added unit tests to test basic expected exception raising when trying to use incomplete keys
   - added a very basic key-completeness test to the @KeyAction decorator
 - added __contains__ to SignatureVerification
This commit is contained in:
Michael Greene
2015-06-01 17:45:41 -07:00
parent f05e9e9a37
commit 84567e085f
13 changed files with 184 additions and 77 deletions

View File

@@ -1,16 +1,32 @@
#!/usr/bin/python
# from distutils.core import setup
import importlib.machinery
import sys
from setuptools import setup
# this is dirty
import sys
sys.path.append('pgpy')
import _author
_loader = importlib.machinery.SourceFileLoader('_author', 'pgpy/_author.py')
_author = _loader.load_module()
# long_description is the contents of README.rst
with open('README.rst') as readme:
long_desc = readme.read()
_requires = [
'cryptography>=0.8',
'enum34',
'pyasn1',
'six',
'singledispatch',
]
if sys.version_info[:2] == (3, 2):
# cryptography dropped support for Python 3.2 in 0.9
# I still need to support Python 3.2 for the time being, and it's still feasible to do so currently,
# so just ensure we install 0.8.x on 3.2
_requires[0] = 'cryptography>=0.8,<0.9'
setup(
# metadata
name = 'PGPy',
@@ -49,10 +65,7 @@ setup(
"signature", ],
# dependencies
install_requires = ['cryptography==0.6',
'enum34',
'six',
'singledispatch'],
install_requires = _requires,
# urls
url = "https://github.com/SecurityInnovation/PGPy",