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
Remove dependency on pytz #1110
Conversation
60db5d5
to
ba68b67
Compare
Hmmph. Apparently
I've added |
Hmm; is there a reason to not just add a dependency on |
Because I can't read. Thank you. |
Since the introduction of PEP 614 (the `zoneinfo` module in the standard library, available since python 3.9), the future is to transition away from `pytz` to `zoneinfo` for timezone support. Babel, since 2.12, will now work with either `pytz` or `zoneinfo`, and no longer requires `pytz` on pythons >= 3.9. This change also fixes some hokey-ness in the previous implementation of DateTimeType.
1180740
to
662f419
Compare
* refactor: remove dependency on pytz Since the introduction of PEP 615 (the `zoneinfo` module in the standard library, available since python 3.9), the future is to transition away from `pytz` to `zoneinfo` for timezone support. Babel, since 2.12, will now work with either `pytz` or `zoneinfo`, and no longer requires `pytz` on pythons >= 3.9. This change also fixes some hokey-ness in the previous implementation of DateTimeType. * test: test with and without pytz installed * fix: require tzdata on windows (pytz for python < 3.9) * docs: fix typos in comment * test: test with (and without) tzdata installed
Since the introduction of
PEP 614PEP 615 (thezoneinfo
module in the standard library, available since python 3.9), the future, apparently, is to transition away frompytz
tozoneinfo
for timezone support.Babel, since 2.12, will now work with either
pytz
orzoneinfo
, and no longer requirespytz
on pythons >= 3.9.This change also fixes some hokey-ness in the previous implementation of DateTimeType.
Related Issues / Links
See #1109.
Description of Changes