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 pytz and replace usage with core python modules #80

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

MerijnBol
Copy link
Contributor

Poetry complained about pytz dependency issues while I was trying to install Flagsmith 3.6.0. Started looking through the code and doesn't look like you actually need pytz.

Maybe I'm missing something. Hope this makes sense.

@dabeeeenster
Copy link
Contributor

Ooh interesting thanks for the contribution will take a look! cc @gagantrivedi

Copy link
Member

@khvn26 khvn26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Please rebase to latest main and we'll merge, @MerijnBol .

Pytz is deprecated since Python 3.9. You might want to keep it for backwards
compatibility for Python 3.8. However, turning naive datetimes into UTC timezone
datetimes seems also possible in Python 3.8 without using the pytc library.
@MerijnBol MerijnBol reopened this Mar 26, 2024
@MerijnBol
Copy link
Contributor Author

@khvn26 done!

@gagantrivedi gagantrivedi merged commit 1e89eed into Flagsmith:main Apr 5, 2024
8 checks passed
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.

4 participants