capless / warrant

Python library for using AWS Cognito. With support for SRP.
Apache License 2.0
467 stars 190 forks source link

Fix setup install for py37 #135

Closed kritchie closed 3 years ago

kritchie commented 5 years ago

This PR brings compatibility to install the package using Python 3.7. Without this, trying to call the pip install -e . command will result in :

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/user/workspace/warrant/setup.py", line 4, in <module>
    from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'

It seems that with the release of pip>=10.0 some breaking changes were introduced in the API. This was tested with Python 3.7, Python 3.5 and Python 2.7. This should fix GH-116 as well.

swt2c commented 5 years ago

@bjinwright can you please review and merge this one? warrant can't be installed from PyPI currently with newer pip. :-(