Machine readable cryptography dependency
parent
812475df32
commit
999b41fa9d
|
@ -11,7 +11,7 @@ dist: trusty
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- pip install --quiet codecov wheel
|
- pip install --quiet codecov wheel cryptography
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- make install
|
- make install
|
||||||
|
|
|
@ -13,7 +13,7 @@ dependency on `cryptography <https://pypi.python.org/pypi/cryptography>`_.
|
||||||
from requests_http_signature import HTTPSignatureAuth
|
from requests_http_signature import HTTPSignatureAuth
|
||||||
preshared_secret = 'monorail_cat'
|
preshared_secret = 'monorail_cat'
|
||||||
url = 'http://httpbin.org/get'
|
url = 'http://httpbin.org/get'
|
||||||
requests.get(url, auth=HTTPSignatureAuth(secret=preshared_secret))
|
requests.get(url, auth=HTTPSignatureAuth(key=preshared_secret))
|
||||||
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -27,5 +27,9 @@ setup(
|
||||||
'Programming Language :: Python :: 3.4',
|
'Programming Language :: Python :: 3.4',
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules'
|
'Topic :: Software Development :: Libraries :: Python Modules'
|
||||||
]
|
],
|
||||||
|
extras_require={
|
||||||
|
"rsa": ["cryptography >= 1.8.2"],
|
||||||
|
"ecdsa": ["cryptography >= 1.8.2"]
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue