Skip to content

Remove pytz and replace usage with core python modules - #80

Merged
gagantrivedi merged 1 commit into
Flagsmith:mainfrom
MerijnBol:main
Apr 5, 2024
Merged

Remove pytz and replace usage with core python modules#80
gagantrivedi merged 1 commit into
Flagsmith:mainfrom
MerijnBol:main

Conversation

@MerijnBol

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@khvn26 khvn26 left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor Author

@khvn26 done!

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