diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..849ddff --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist/ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..439cf9c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,14 @@ +[build-system] +requires = ["flit"] +build-backend = "flit.buildapi" + +[tool.flit.metadata] +module = "wideq" +author = "Adrian Sampson" +author-email = "adrian@radbox.org" +home-page = "https://github.com/sampsyo/wideq" +requires = [ + "requests" +] +description-file = "README.md" +requires-python = ">=3.4" diff --git a/setup.py b/setup.py deleted file mode 100644 index a3a3663..0000000 --- a/setup.py +++ /dev/null @@ -1,20 +0,0 @@ -from setuptools import setup - - -setup( - name='wideq', - version='0.0.0', - description='LG SmartThinQ API client', - author='Adrian Sampson', - author_email='adrian@radbox.org', - url='https://github.com/sampsyo/wideq', - license='MIT', - platforms='ALL', - install_requires=['requests'], - py_modules=['wideq'], - classifiers=[ - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - ], -) diff --git a/wideq.py b/wideq.py index 6788481..bfbd335 100644 --- a/wideq.py +++ b/wideq.py @@ -1,3 +1,5 @@ +"""Reverse-engineered client for the LG SmartThinQ API. +""" import requests from urllib.parse import urljoin, urlencode, urlparse, parse_qs import uuid @@ -9,6 +11,7 @@ import datetime from collections import namedtuple import enum +__version__ = '1.0.0' GATEWAY_URL = 'https://kic.lgthinq.com:46030/api/common/gatewayUriList' APP_KEY = 'wideq'