Master Approved-by: Marcos Pereira <marcospereira.mpj@gmail.com>
@ -43,7 +43,6 @@ python-keycloak depends on:
* Python 3
* `requests <http://docs.python-requests.org/en/master/>`_
* `python-jose <http://python-jose.readthedocs.io/en/latest/>`_
* `simplejson <https://simplejson.readthedocs.io/en/latest/>`_
Tests Dependencies
------------------
@ -22,7 +22,6 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import requests
from simplejson import JSONDecodeError
class KeycloakError(Exception):
@ -82,7 +81,7 @@ def raise_error_from_response(response, error, expected_code=200, skip_exists=Fa
try:
return response.json()
except JSONDecodeError as e:
except ValueError:
return response.content
if skip_exists and response.status_code == 409:
@ -1,4 +1,3 @@
requests>=2.18.4
httmock>=1.2.5
python-jose>=1.4.0
simplejson
@ -17,7 +17,8 @@ setup(
long_description=long_description,
long_description_content_type="text/markdown",
packages=['keycloak', 'keycloak.authorization', 'keycloak.tests'],
install_requires=['requests==2.18.4', 'httmock==1.2.5', 'python-jose==1.4.0', 'simplejson'],
install_requires=['requests==2.18.4', 'python-jose==1.4.0'],
tests_require=['httmock==1.2.5'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
xxxxxxxxxx
xxxxxxxxxx