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

Drop python 3.8 and add official support for Python 3.13 #324

Merged
merged 5 commits into from
Jan 3, 2025

Conversation

jdholtz
Copy link
Owner

@jdholtz jdholtz commented Dec 28, 2024

Since Python 3.8 has officially reached its EOL, support for it is dropped. Additionally, official support for Python 3.13 has been added. Here is a list of specific changes done:

  • Built-in types are now used instead of importing them from typing (Dict, List, Tuple) which was added in Python 3.9
  • The pytz dependency is removed in favor of the built-in zoneinfo module

I have not found a way to upgrade the Dockerfile past python:3.12-rc-alpine. If it goes past this tag, the webdriver times out. If I instead switch to an Ubuntu image with python:3.13-slim, the script is detected very often. We'll have to stay at an old version until we can figure this out.

Dict, List, Tuple, etc. (all collection types) are now their lowercase
equivalent (dict, list, tuple, etc.) in Python 3.9+
Python 3.9+ now includes the zoneinfo module which provides the same
functionality as pytz. This commit removes the dependency on pytz and
replaces it with the zoneinfo module.
This was caught by Pylint and should be done instead of f-string
formatting.
Windows systems don't have a system timezone database by default, so the
zoneinfo module falls back to using the tzdata package.
@jdholtz jdholtz merged commit c8277d5 into develop Jan 3, 2025
19 checks passed
@jdholtz jdholtz deleted the drop-python-3.8 branch January 3, 2025 19:35
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