Teemu R
87dcd42861
Add python3.12 and pypy-3.10 to CI ( #532 )
...
* Add python3.12 and pypy-3.10 to CI
Also, cleanup the action file a bit:
* Update action versions
* Remove commented out yaml
* Disable fail_ci_if_error for codecov
* Fix typo
2023-10-30 00:22:30 +01:00
Teemu R
c431dbb832
Use ruff and ruff format ( #534 )
...
Replaces the previously used linting and code formatting tools with ruff.
2023-10-29 23:15:42 +01:00
Teemu R
0061668c9f
Use trusted publisher for publishing to pypi ( #531 )
2023-10-29 16:30:37 +01:00
J. Nick Koston
afd54d11d3
Add optional kasa-crypt dependency for speedups ( #464 )
...
If installed, use the optimized protocol encryption procedures implemented as a C extension by kasa-crypt (https://pypi.org/project/kasa-crypt/
2023-06-30 02:43:01 +02:00
Teemu R
ce5821a35f
Drop python 3.7 support ( #455 )
...
* Drop python 3.7 support
* CI: drop 3.7 and add 3.11
* Remove skipifs that were required for <3.8
* Use pypy-3.8 for CI, re-enable pypy for windows to see if it works now
* Bump readthedocs to use py3.8
* Remove py3.7 failure comment
2023-05-17 20:03:08 +02:00
Teemu R
cece84352a
Manually pass the codecov token in CI ( #378 )
2022-10-17 18:08:26 +02:00
Teemu R
604520dcaf
Add codeql checks ( #338 )
2022-04-25 14:45:53 +02:00
Teemu R
e3d76bea75
Add pyupgrade to CI runs ( #314 )
2022-02-21 00:56:18 +01:00
Teemu R
255c0c9a25
Publish to pypi on github release published ( #287 )
...
* Publish to pypi on github release published, remove testpypi
* Remove release tag check
2022-01-14 16:32:48 +01:00
Teemu R
a817d9cab1
Add python 3.10 to CI ( #279 )
...
* Add python 3.10 to CI
* Require pytest >=6.2.5
Required for running on python 3.10 (https://github.com/pytest-dev/pytest/pull/8540 )
* Update lockfile
* Update pre-commit hooks
2021-12-17 17:48:03 +01:00
Teemu R
cf98674c3a
Use codecov-action@v2 for CI ( #277 )
2021-12-13 18:58:46 +01:00
Teemu R
5aaadaff39
Allow publish on test pypi workflow to fail ( #248 )
2021-11-03 01:55:49 +01:00
Teemu R
194aa8607b
Add github workflow for pypi publishing ( #220 )
2021-09-26 19:56:40 +02:00
Teemu R
bdb07a749c
Release 0.4.0.dev4 ( #210 )
...
* Release 0.4.0.dev4
The most important enhancements in this release are:
* Support for emeter on strip sockets
* Fix discovery and update() on some devices that do not support multi-module queries (e.g., HS200)
* Improved support for bulbs
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.4.0.dev3...0.4.0.dev4 )
**Implemented enhancements:**
- HS300 Children plugs have emeter [\#64](https://github.com/python-kasa/python-kasa/issues/64 )
- Improve emeterstatus API, move into own module [\#205](https://github.com/python-kasa/python-kasa/pull/205 ) ([rytilahti](https://github.com/rytilahti ))
- Avoid temp array during encrypt and decrypt [\#204](https://github.com/python-kasa/python-kasa/pull/204 ) ([bdraco](https://github.com/bdraco ))
- Add emeter support for strip sockets [\#203](https://github.com/python-kasa/python-kasa/pull/203 ) ([bdraco](https://github.com/bdraco ))
- Add own device type for smartstrip children [\#201](https://github.com/python-kasa/python-kasa/pull/201 ) ([rytilahti](https://github.com/rytilahti ))
- bulb: allow set\_hsv without v, add fallback ct range [\#200](https://github.com/python-kasa/python-kasa/pull/200 ) ([rytilahti](https://github.com/rytilahti ))
- Improve bulb support \(alias, time settings\) [\#198](https://github.com/python-kasa/python-kasa/pull/198 ) ([rytilahti](https://github.com/rytilahti ))
- Improve testing harness to allow tests on real devices [\#197](https://github.com/python-kasa/python-kasa/pull/197 ) ([rytilahti](https://github.com/rytilahti ))
- cli: add human-friendly printout when calling temperature on non-supported devices [\#196](https://github.com/python-kasa/python-kasa/pull/196 ) ([JaydenRA](https://github.com/JaydenRA ))
**Fixed bugs:**
- KL430: Throw error for Device specific information [\#189](https://github.com/python-kasa/python-kasa/issues/189 )
- dump\_devinfo: handle latitude/longitude keys properly [\#175](https://github.com/python-kasa/python-kasa/pull/175 ) ([rytilahti](https://github.com/rytilahti ))
**Closed issues:**
- Feature Request - Toggle Command [\#188](https://github.com/python-kasa/python-kasa/issues/188 )
- Is It Compatible With HS105? [\#186](https://github.com/python-kasa/python-kasa/issues/186 )
- Cannot use some functions with KP303 [\#181](https://github.com/python-kasa/python-kasa/issues/181 )
- Help needed - awaiting game [\#179](https://github.com/python-kasa/python-kasa/issues/179 )
- Version inconsistency between CLI and pip [\#177](https://github.com/python-kasa/python-kasa/issues/177 )
- Release 0.4.0.dev3? [\#169](https://github.com/python-kasa/python-kasa/issues/169 )
- Discover does not support specifying network interface [\#167](https://github.com/python-kasa/python-kasa/issues/167 )
- Can't command or query HS200 v5 switch [\#161](https://github.com/python-kasa/python-kasa/issues/161 )
**Merged pull requests:**
- More CI fixes [\#208](https://github.com/python-kasa/python-kasa/pull/208 ) ([rytilahti](https://github.com/rytilahti ))
- Fix CI dep installation [\#207](https://github.com/python-kasa/python-kasa/pull/207 ) ([rytilahti](https://github.com/rytilahti ))
- Use github actions instead of azure pipelines [\#206](https://github.com/python-kasa/python-kasa/pull/206 ) ([rytilahti](https://github.com/rytilahti ))
- Add KP115 fixture [\#202](https://github.com/python-kasa/python-kasa/pull/202 ) ([rytilahti](https://github.com/rytilahti ))
- Perform initial update only using the sysinfo query [\#199](https://github.com/python-kasa/python-kasa/pull/199 ) ([rytilahti](https://github.com/rytilahti ))
- Add real kasa KL430\(UN\) device dump [\#192](https://github.com/python-kasa/python-kasa/pull/192 ) ([iprodanovbg](https://github.com/iprodanovbg ))
- Use less strict matcher for kl430 color temperature [\#190](https://github.com/python-kasa/python-kasa/pull/190 ) ([rytilahti](https://github.com/rytilahti ))
- Add EP10\(US\) 1.0 1.0.2 fixture [\#174](https://github.com/python-kasa/python-kasa/pull/174 ) ([nbrew](https://github.com/nbrew ))
- Add a note about using the discovery target parameter [\#168](https://github.com/python-kasa/python-kasa/pull/168 ) ([leandroreox](https://github.com/leandroreox ))
* replace pypy3 with pypy-3.7 as we do not support python3.6 anyway
* skip pypy-3.7 on windows to avoid flaky ci
2021-09-24 01:44:22 +02:00
Teemu R
d7202883e9
More CI fixes ( #208 )
...
* Remove bandit from CI, update poetry.lock&pre-commit-config.yaml
* We don't support python 3.6
* poetry install also on tests flow
* remove pytest-azurepipelines
2021-09-23 19:09:19 +02:00
Teemu R
202d107d39
Fix CI dep installation ( #207 )
2021-09-23 18:29:45 +02:00
Teemu R
41bed35e01
Use github actions instead of azure pipelines ( #206 )
...
* Use github actions instead of azure pipelines
* add codecov badge
2021-09-23 18:25:41 +02:00