Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.11 & code quality improvements #277

Closed
wants to merge 2 commits into from
Closed

Conversation

aceisace
Copy link
Member

@aceisace aceisace commented Nov 7, 2023

These changes solve a few problems with the latest version of Raspberry Pi OS:

  • Upgrade from Pillow 9.x to 10.x, requiring several changes to existing font-rendering functions, improving security as Pillow 9.x had some vulnerabilities
  • Switch from pyowm to own wrapper due to compatibility issues. Pyowm is a great project, but only supported until python 3.9. As the standard is now 3.11, it will not work with the latest version of Raspberry Pi OS
  • Code quality improvements. Tests are now named according to python guidelines, starting with test_...

⚠️Warning! Breaking change!

Due to the custom wrapper for openweathermap, it is no longer possible to use the city-name and country-id. For once, it requires a lot more dependencies for only a small win. Secondly, the approach to use a city-id instead of the string provides a definite way to ensuring the location is correct

@aceisace aceisace self-assigned this Nov 7, 2023
@aceisace aceisace linked an issue Nov 7, 2023 that may be closed by this pull request
@aceisace aceisace marked this pull request as draft November 7, 2023 22:38
@aceisace aceisace removed their assignment Nov 7, 2023
@aceisace aceisace marked this pull request as ready for review November 7, 2023 22:38
@aceisace aceisace closed this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant