1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-16 23:30:10 -07:00

Switch to Flit for distribution

This commit is contained in:
Adrian Sampson 2019-06-16 15:09:32 -04:00
parent dae03a0645
commit a16e146b64
4 changed files with 18 additions and 20 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist/

14
pyproject.toml Normal file
View File

@ -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"

View File

@ -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',
],
)

View File

@ -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'