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

MAINT Remove pytz dependency #1968

Merged
merged 2 commits into from
Nov 19, 2023
Merged

Conversation

thomasjpfan
Copy link
Member

This PR removes the pytz dependency.

Type

  • Bug Fix
  • Feature
  • Plugin
  • Maintenance

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

pytz was only used to get UTC, which can be directly replaced with timezone.utc.

Tracking Issue

Towards flyteorg/flyte#4418

Signed-off-by: Thomas J. Fan <thomasjpfan@gmail.com>
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (2861267) 62.62% compared to head (380d07c) 62.55%.
Report is 9 commits behind head on master.

Files Patch % Lines
flytekit/models/execution.py 25.00% 3 Missing ⚠️
flytekit/models/node_execution.py 25.00% 3 Missing ⚠️
flytekit/models/literals.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1968      +/-   ##
==========================================
- Coverage   62.62%   62.55%   -0.08%     
==========================================
  Files         313      313              
  Lines       23217    23245      +28     
  Branches     3519     3523       +4     
==========================================
+ Hits        14540    14541       +1     
- Misses       8255     8283      +28     
+ Partials      422      421       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Thomas J. Fan <thomasjpfan@gmail.com>
@dosubot dosubot bot added the lgtm This PR has been approved by maintainer label Nov 19, 2023
@eapolinario eapolinario merged commit c275011 into flyteorg:master Nov 19, 2023
72 of 74 checks passed
ringohoffman pushed a commit to ringohoffman/flytekit that referenced this pull request Nov 24, 2023
* MAINT Remove pytz dependency

Signed-off-by: Thomas J. Fan <thomasjpfan@gmail.com>

* FIX Fixes typo

Signed-off-by: Thomas J. Fan <thomasjpfan@gmail.com>

---------

Signed-off-by: Thomas J. Fan <thomasjpfan@gmail.com>
RRap0so pushed a commit to RRap0so/flytekit that referenced this pull request Dec 15, 2023
* MAINT Remove pytz dependency

Signed-off-by: Thomas J. Fan <thomasjpfan@gmail.com>

* FIX Fixes typo

Signed-off-by: Thomas J. Fan <thomasjpfan@gmail.com>

---------

Signed-off-by: Thomas J. Fan <thomasjpfan@gmail.com>
Signed-off-by: Rafael Raposo <rafaelraposo@spotify.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants