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 #278

Merged
merged 3 commits into from
Nov 7, 2023
Merged

python 3.11 & code quality improvements #278

merged 3 commits into from
Nov 7, 2023

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 merged commit de72c4c into main Nov 7, 2023
1 of 2 checks passed
@aceisace aceisace linked an issue Nov 8, 2023 that may be closed by this pull request
@aceisace aceisace deleted the feature/#275 branch November 8, 2023 18:10
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.

Issue: compatibility with latest Raspberry Pi OS (bookworm)
1 participant