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

chore: get rid of pendulum for windows python3.13 users #252

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

renaudjester
Copy link
Collaborator

@renaudjester renaudjester commented Dec 11, 2024

fix CMT-174

Some users are experiencing problems with pendulum with python3.13 and windows


📚 Documentation preview 📚: https://copernicusmarine--252.org.readthedocs.build/en/252/

@renaudjester renaudjester requested a review from uriii3 December 11, 2024 15:57
Copy link
Collaborator

@uriii3 uriii3 left a comment

Choose a reason for hiding this comment

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

looks good! it was easy enough, no? Nice job man! (binaries already corrected, all yours!)

Comment on lines +406 to +413
min_time_datetime = temporal_parameters.start_datetime
min_time = None
if min_time_datetime:
min_time = min_time_datetime.timestamp() * 1e3
max_time_datetime = temporal_parameters.end_datetime
max_time = None
if max_time_datetime:
max_time = max_time_datetime.timestamp() * 1e3
Copy link
Collaborator

Choose a reason for hiding this comment

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

so the typings read differently if the class is a pendulum or if it is a date time? quite cool, no? although I liked it best with pendulum.

@@ -589,7 +590,7 @@ def _get_file_size_last_modified_and_etag(
)
return (
s3_object["ContentLength"],
pendulum.instance(s3_object["LastModified"]),
s3_object["LastModified"].astimezone(tz=UTC),
Copy link
Collaborator

Choose a reason for hiding this comment

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

why put it here with a timezone?

@renaudjester renaudjester merged commit 13f0feb into main Dec 13, 2024
8 checks passed
@renaudjester renaudjester deleted the remove-pendulum branch December 13, 2024 07:39
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.

2 participants