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

Remove dependency on pytz #774

Merged
merged 1 commit into from
Oct 8, 2023
Merged

Conversation

Jenselme
Copy link
Contributor

@Jenselme Jenselme commented Mar 1, 2023

Starting with Python 3.9 a zoneinfo package is available in the standard library for this feature. There is therefore no need for this dependency and a compatibility layer is available at
https://pypi.org/project/backports.zoneinfo/ for older Python versions.

I made this change because agate is packaged in Fedora and Fedora is deprecating pytz: https://fedoraproject.org/wiki/Changes/DeprecatePytz

@jpmckinney
Copy link
Member

@Jenselme Can you update the PR to use https://pypi.org/project/tzdata/?

As mentioned in Python's docs, Windows does "not have an IANA database available", and sure enough agate's tests fail on Windows.

Starting with Python 3.9 a zoneinfo package is available in the standard
library for this feature. There is therefore no need for this dependency
and a compatibility layer is available at
https://pypi.org/project/backports.zoneinfo/ for older Python versions.
@Jenselme
Copy link
Contributor Author

Jenselme commented Oct 7, 2023

@jpmckinney I rebased my branch on master and added tzdata as a dependency for Windows. I guess I cannot test until you approve the workflow. Let me know if I need to make anything more!

@Jenselme
Copy link
Contributor Author

Jenselme commented Oct 7, 2023

@jpmckinney jpmckinney merged commit 307bad3 into wireservice:master Oct 8, 2023
18 checks passed
@jpmckinney
Copy link
Member

Thank you! I’ll make a release when I’m at my desk.

@jpmckinney
Copy link
Member

Released! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants