From 9559f4e29897c6b72debd217c62e9f6e9fb625f8 Mon Sep 17 00:00:00 2001 From: Soloman Weng Date: Fri, 28 Apr 2023 10:34:19 +1000 Subject: [PATCH] Make version 0.0.3 for python 3.7 support --- Dockerfile | 2 +- event_bus/request.py | 2 +- requirements.txt | 5 +++-- setup.py | 14 ++++---------- 4 files changed, 9 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 13b532b..61b6f01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.6-alpine +FROM python:3.7-alpine MAINTAINER Soloman Weng "soloman.weng@intellihr.com.au" ENV REFRESHED_AT 2018-02-14 diff --git a/event_bus/request.py b/event_bus/request.py index ab1ecfd..661e18b 100644 --- a/event_bus/request.py +++ b/event_bus/request.py @@ -47,7 +47,7 @@ def _jwt_token(self): 'exp': exp }, self.jwt_secret, - algorithm='HS256').decode() + algorithm='HS256') class APIError(Exception): diff --git a/requirements.txt b/requirements.txt index cc5c3f9..07fce7f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,11 @@ flake8==3.5.0 ptpython==0.41 -PyJWT==1.5.3 +PyJWT==2.4.0 pytest-freezegun==0.2.0 pytest==3.4.0 -python-dateutil==2.6.1 +python-dateutil==2.7.0 requests-mock==1.4.0 requests==2.18.4 six==1.11.0 snapshottest==0.5.0 +attrs==19.1.0 diff --git a/setup.py b/setup.py index 3edd3ee..aceeb1a 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ install_requires = [ "requests>=2.18,<3.0", "six>=1.11", - "PyJWT>=1.5.3", + "PyJWT>=2.0.0", "python-dateutil>=2.6" ] @@ -34,14 +34,8 @@ description='intellihr event bus client for python applications', classifiers=[ "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.6", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.2", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", ] )