MatthewFlamm / pytest-homeassistant-custom-component

Package to automatically extract testing plugins from Home Assistant for custom component testing
MIT License
66 stars 10 forks source link

Bump minimum Python to 3.10 #134

Closed mvdwetering closed 1 year ago

mvdwetering commented 1 year ago

I noticed there were no releases for the 2023.2 betas . The Gitbhu action was failing and I noticed it was still using Python 3.9. With 2023.2 Python 3.9 support has been dropped from HA.

This pullrequest is an attempt to upgrade to 3.10.

Currently the PR is just a search for 3.9 and replace/extend with 3.10 and 3.11 where it seems relevant. Lets see if it passes CI

MatthewFlamm commented 1 year ago

Thank you! 3.11 is seemingly having problems with aiohttp. Let's just bump to 3.10 only?

mvdwetering commented 1 year ago

ok, will do 3.10 only.

btw should I update teh CHANGELOG.md file? It seems it has not been updated in a while and not sure if that change would make it 0.13.x

MatthewFlamm commented 1 year ago

On my to do list is have releases on GitHub instead of the README. In the meantime, feel free to add to readme, or I will before releasing. I think this would require a minor version bump as it will no longer be guaranteed to be backwards compatible.

mvdwetering commented 1 year ago

Manually running the generate command below made changes for HA 2023.2.0b4 without errors, so I guess it still works :)

export PYTHONPATH=$PYTHONPATH:$(pwd)
python generate_phacc/generate_phacc.py