Skip to content

Commit

Permalink
Remove Support for Python2 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbickar authored Jun 23, 2023
1 parent 9659041 commit 8944299
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sense_energy/asyncsenseable.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import json
import ssl
import sys
from time import time

import aiohttp
import orjson
Expand Down
1 change: 0 additions & 1 deletion sense_energy/sense_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import uuid
from time import time
from datetime import datetime

from .sense_exceptions import *
Expand Down
4 changes: 3 additions & 1 deletion sense_energy/senseable.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import json
import requests
import ssl
from time import time

import requests
from requests.exceptions import ReadTimeout
from websocket import create_connection
from websocket._exceptions import WebSocketTimeoutException
Expand Down
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
'orjson',
'requests',
'websocket-client',
'websockets;python_version>="3.5"',
'aiohttp;python_version>="3.5"',
'websockets',
'aiohttp',
"kasa-crypt>=0.2.0",
],
version = version,
Expand All @@ -26,7 +26,11 @@
download_url = 'https://github.com/scottbonline/sense/archive/'+version+'.tar.gz',
keywords = ['sense', 'energy', 'api'],
classifiers = [
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
)

0 comments on commit 8944299

Please sign in to comment.