diff --git a/Makefile b/Makefile index 18cd38ab..f30fe61e 100644 --- a/Makefile +++ b/Makefile @@ -6,18 +6,20 @@ coverage: pipenv run pytest -s --verbose --cov-report term-missing --cov-report xml --cov=teslajsonpy tests -Wi -Wd:::teslajsonpy clean: rm -rf dist/ build/ .egg teslajsonpy.egg-info/ +sync_deps: + pipenv-setup sync --pipfile init: pip3 install --upgrade pip pipenv pipenv lock pipenv install --three --dev -lint: flake8 docstyle pylint +lint: flake8 docstyle pylint sync_deps flake8: pipenv run flake8 teslajsonpy docstyle: pipenv run pydocstyle teslajsonpy pylint: pipenv run pylint teslajsonpy -publish: +publish: sync_deps pipenv run python setup.py sdist bdist_wheel pipenv run twine upload dist/* rm -rf dist/ build/ .egg teslajsonpy.egg-info/ diff --git a/Pipfile b/Pipfile index 5d37ae41..d9ccb76e 100644 --- a/Pipfile +++ b/Pipfile @@ -23,6 +23,7 @@ m2r2 = "*" sphinx-autoapi = "*" sphinx-copybutton = "*" bandit = "*" +pipenv-setup = "*" [packages] aiohttp = "*" diff --git a/Pipfile.lock b/Pipfile.lock index bbcd8c2b..ced3dc6b 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "a77eb7580a918b0ca94f7f59ebd8dbe4f72db5b3523bf931d5c02c3d923c1c04" + "sha256": "aa75fe8c4c1c3ad06ff51bac5dda5007eec74e358280adcf16997a8d9e0a9394" }, "pipfile-spec": 6, "requires": {}, @@ -119,11 +119,11 @@ }, "importlib-metadata": { "hashes": [ - "sha256:036eae7ebbd41db176774c42e80f3288a1e41c7ebfc8ed099a94653973ebd00f", - "sha256:6fd684b4c6c7bb36d57e93d57fc244b5ffc08faa1c298bcda3dfbbbf19d7550a" + "sha256:c9db46394197244adf2f0b08ec5bc3cf16757e9590b02af1fca085c16c0d600a", + "sha256:d2d46ef77ffc85cbf7dac7e81dd663fde71c45326131bea8033b9bad42268ebe" ], "markers": "python_version >= '3.6'", - "version": "==3.9.0" + "version": "==3.10.0" }, "multidict": { "hashes": [ @@ -304,9 +304,10 @@ }, "black": { "hashes": [ - "sha256:1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea" + "sha256:1b30e59be925fafc1ee4565e5e08abef6b03fe455102883820fe5ee2e4734e0b", + "sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539" ], - "version": "==20.8b1" + "version": "==19.10b0" }, "bleach": { "hashes": [ @@ -316,6 +317,19 @@ "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==3.3.0" }, + "cached-property": { + "hashes": [ + "sha256:9fa5755838eecbb2d234c3aa390bd80fbd3ac6b6869109bfc1b499f7bd89a130", + "sha256:df4f613cf7ad9a588cc381aaf4a512d26265ecebd5eb9e1ba12f1319eb85a6a0" + ], + "version": "==1.5.2" + }, + "cerberus": { + "hashes": [ + "sha256:302e6694f206dd85cb63f13fd5025b31ab6d38c99c50c6d769f8fa0b0f299589" + ], + "version": "==1.3.2" + }, "certifi": { "hashes": [ "sha256:1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c", @@ -539,11 +553,11 @@ }, "importlib-metadata": { "hashes": [ - "sha256:036eae7ebbd41db176774c42e80f3288a1e41c7ebfc8ed099a94653973ebd00f", - "sha256:6fd684b4c6c7bb36d57e93d57fc244b5ffc08faa1c298bcda3dfbbbf19d7550a" + "sha256:c9db46394197244adf2f0b08ec5bc3cf16757e9590b02af1fca085c16c0d600a", + "sha256:d2d46ef77ffc85cbf7dac7e81dd663fde71c45326131bea8033b9bad42268ebe" ], "markers": "python_version >= '3.6'", - "version": "==3.9.0" + "version": "==3.10.0" }, "iniconfig": { "hashes": [ @@ -717,6 +731,13 @@ ], "version": "==0.4.3" }, + "orderedmultidict": { + "hashes": [ + "sha256:04070bbb5e87291cc9bfa51df413677faf2141c73c61d2a5f7b26bea3cd882ad", + "sha256:43c839a17ee3cdd62234c47deca1a8508a3f2ca1d0678a3bf791c87cf84adbf3" + ], + "version": "==1.0.1" + }, "packaging": { "hashes": [ "sha256:5b327ac1320dc863dca72f4514ecc086f31186744b84a230374cc1fd776feae5", @@ -740,6 +761,21 @@ "markers": "python_version >= '2.6'", "version": "==5.5.1" }, + "pep517": { + "hashes": [ + "sha256:ac59f3f6b9726a49e15a649474539442cf76e0697e39df4869d25e68e880931b", + "sha256:eba39d201ef937584ad3343df3581069085bacc95454c80188291d5b3ac7a249" + ], + "version": "==0.10.0" + }, + "pip-shims": { + "hashes": [ + "sha256:05b00ade9d1e686a98bb656dd9b0608a933897283dc21913fad6ea5409ff7e91", + "sha256:16ca9f87485667b16b978b68a1aae4f9cc082c0fa018aed28567f9f34a590569" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", + "version": "==0.5.3" + }, "pipenv": { "hashes": [ "sha256:4ab2f60742184d851ac44b9e1d423afe71dc2ea7a68bde07eb890c8b4ce5a420", @@ -748,6 +784,19 @@ "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2020.11.15" }, + "pipenv-setup": { + "hashes": [ + "sha256:8a439aff7b16e18d7e07702c9186fc5fe86156679eace90e10c2578a43bd7af1", + "sha256:e1bfd55c1152024e762f1c17f6189fcb073166509e7c0228870f7ea160355648" + ], + "version": "==3.1.1" + }, + "pipfile": { + "hashes": [ + "sha256:f7d9f15de8b660986557eb3cc5391aa1a16207ac41bc378d03f414762d36c984" + ], + "version": "==0.0.2" + }, "pkginfo": { "hashes": [ "sha256:029a70cb45c6171c329dfc890cde0879f8c52d6f3922794796e06f577bb03db4", @@ -755,6 +804,17 @@ ], "version": "==1.7.0" }, + "plette": { + "extras": [ + "validation" + ], + "hashes": [ + "sha256:46402c03e36d6eadddad2a5125990e322dd74f98160c8f2dcd832b2291858a26", + "sha256:d6c9b96981b347bddd333910b753b6091a2c1eb2ef85bb373b4a67c9d91dca16" + ], + "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==0.2.3" + }, "pluggy": { "hashes": [ "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0", @@ -804,10 +864,10 @@ }, "pylint": { "hashes": [ - "sha256:0e21d3b80b96740909d77206d741aa3ce0b06b41be375d92e1f3244a274c1f8a", - "sha256:d09b0b07ba06bcdff463958f53f23df25e740ecd81895f7d2699ec04bbd8dc3b" + "sha256:466e067526b609c1f22b97895e2a64e5fc3d897016b91ef0f4f80480e89a1ef9", + "sha256:d29e1140d96362eb0b68fa0fb1a6192532f586886d6c52db79872a906a50be58" ], - "version": "==2.7.2" + "version": "==2.7.3" }, "pyparsing": { "hashes": [ @@ -838,6 +898,14 @@ ], "version": "==2.11.1" }, + "python-dateutil": { + "hashes": [ + "sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c", + "sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==2.8.1" + }, "pytz": { "hashes": [ "sha256:83a4a90894bf38e243cf052c8b58f381bfe9a7a483f6a9cab140bc7f702ac4da", @@ -948,6 +1016,14 @@ ], "version": "==0.9.1" }, + "requirementslib": { + "hashes": [ + "sha256:50d20f27e4515a2393695b0d886219598302163438ae054253147b2bad9b4a44", + "sha256:9c1e8666ca4512724cdd1739adcc7df19ec7ad2ed21f0e748f9631ad6b54f321" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", + "version": "==1.5.16" + }, "rfc3986": { "hashes": [ "sha256:112398da31a3344dc25dbf477d8df6cb34f9278a94fee2625d89e4514be8bb9d", @@ -1070,6 +1146,14 @@ "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==0.10.2" }, + "tomlkit": { + "hashes": [ + "sha256:6babbd33b17d5c9691896b0e68159215a9387ebfa938aa3ac42f4a4beeb2b831", + "sha256:ac57f29693fab3e309ea789252fcce3061e19110085aa31af5446ca749325618" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", + "version": "==0.7.0" + }, "tox": { "hashes": [ "sha256:2a8d8a63660563e41e64e3b5b677e81ce1ffa5e2a93c2c565d3768c287445800", @@ -1173,6 +1257,14 @@ "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==0.5.4" }, + "vistir": { + "hashes": [ + "sha256:a37079cdbd85d31a41cdd18457fe521e15ec08b255811e81aa061fd5f48a20fb", + "sha256:eff1d19ef50c703a329ed294e5ec0b0fbb35b96c1b3ee6dcdb266dddbe1e935a" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==0.5.2" + }, "webencodings": { "hashes": [ "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78", @@ -1180,6 +1272,14 @@ ], "version": "==0.5.1" }, + "wheel": { + "hashes": [ + "sha256:78b5b185f0e5763c26ca1e324373aadd49182ca90e825f7853f4b2509215dc0e", + "sha256:e11eefd162658ea59a60a0f6c7d493a7190ea4b9a85e335b33489d9f17e0245e" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", + "version": "==0.36.2" + }, "wrapt": { "hashes": [ "sha256:b62ffa81fb85f4332a4f609cab4ac40709470da05643a082ec1eb88e6d9b97d7" diff --git a/docs/html/.doctrees/environment.pickle b/docs/html/.doctrees/environment.pickle index df5322e1..645d94e1 100644 Binary files a/docs/html/.doctrees/environment.pickle and b/docs/html/.doctrees/environment.pickle differ diff --git a/docs/html/.doctrees/index.doctree b/docs/html/.doctrees/index.doctree index 05ac2885..9abb422e 100644 Binary files a/docs/html/.doctrees/index.doctree and b/docs/html/.doctrees/index.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.__version__.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.__version__.doctree index 170bc107..641b0aec 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.__version__.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.__version__.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.connection.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.connection.doctree index 9261edb3..9a2df172 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.connection.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.connection.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.const.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.const.doctree index e5c5f540..c1f6b834 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.const.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.const.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.controller.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.controller.doctree index 167fa18e..89e74ec3 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.controller.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.controller.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.doctree index adad331a..25d395f6 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.exceptions.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.exceptions.doctree index 13e07859..8c13d250 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.exceptions.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.exceptions.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.battery_sensor.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.battery_sensor.doctree index 43bab5c4..0a533835 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.battery_sensor.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.battery_sensor.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.binary_sensor.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.binary_sensor.doctree index 37fff9b7..4c877a50 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.binary_sensor.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.binary_sensor.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.charger.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.charger.doctree index dc12c250..d8c287ea 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.charger.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.charger.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.climate.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.climate.doctree index 52cc778d..150f7641 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.climate.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.climate.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.doctree index 4bbae989..16452e50 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.gps.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.gps.doctree index e8e0f360..7f4ab25f 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.gps.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.gps.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.lock.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.lock.doctree index eb2d15b3..ec8974bd 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.lock.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.lock.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.sentry_mode.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.sentry_mode.doctree index 0082e660..da6a0060 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.sentry_mode.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.sentry_mode.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.trunk.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.trunk.doctree index e48b5731..bcfe8f9d 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.trunk.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.trunk.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.vehicle.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.vehicle.doctree index 2313202a..d34f81cd 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.vehicle.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.homeassistant.vehicle.doctree differ diff --git a/docs/html/.doctrees/teslajsonpy/teslajsonpy.teslaproxy.doctree b/docs/html/.doctrees/teslajsonpy/teslajsonpy.teslaproxy.doctree index a595d7fd..b9e70618 100644 Binary files a/docs/html/.doctrees/teslajsonpy/teslajsonpy.teslaproxy.doctree and b/docs/html/.doctrees/teslajsonpy/teslajsonpy.teslaproxy.doctree differ diff --git a/docs/html/_sources/teslajsonpy/teslajsonpy.rst.txt b/docs/html/_sources/teslajsonpy/teslajsonpy.rst.txt index 383f394a..530e9b71 100644 --- a/docs/html/_sources/teslajsonpy/teslajsonpy.rst.txt +++ b/docs/html/_sources/teslajsonpy/teslajsonpy.rst.txt @@ -280,4 +280,4 @@ Variables .. code-block:: text - '0.11.5' + '0.14.0' diff --git a/docs/html/genindex.html b/docs/html/genindex.html index b1015c3c..27b6d49b 100644 --- a/docs/html/genindex.html +++ b/docs/html/genindex.html @@ -566,6 +566,8 @@

P