Machine readable cryptography dependency

pull/1/head
Andrey Kislyuk 2017-08-22 12:40:07 -07:00
parent 812475df32
commit 999b41fa9d
3 changed files with 7 additions and 3 deletions

View File

@ -11,7 +11,7 @@ dist: trusty
sudo: false
before_install:
- pip install --quiet codecov wheel
- pip install --quiet codecov wheel cryptography
install:
- make install

View File

@ -13,7 +13,7 @@ dependency on `cryptography <https://pypi.python.org/pypi/cryptography>`_.
from requests_http_signature import HTTPSignatureAuth
preshared_secret = 'monorail_cat'
url = 'http://httpbin.org/get'
requests.get(url, auth=HTTPSignatureAuth(secret=preshared_secret))
requests.get(url, auth=HTTPSignatureAuth(key=preshared_secret))
Installation

View File

@ -27,5 +27,9 @@ setup(
'Programming Language :: Python :: 3.4',
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Libraries :: Python Modules'
]
],
extras_require={
"rsa": ["cryptography >= 1.8.2"],
"ecdsa": ["cryptography >= 1.8.2"]
}
)