Skip to content

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 23, 2025

Unblocks:

What

  • Removes Pendulum dependency from the Python CDK
  • Introduces AirbyteDateTime class for consistent datetime handling
  • Adds helper functions for datetime operations
  • Ensures ISO8601/RFC3339 compliance with 'T' delimiter
  • Handles Unix timestamps in datetime parsing

How

  • Created AirbyteDateTime class that inherits from datetime
  • Added helper functions for common operations
  • Replaced all Pendulum usage with new helpers
  • Updated tests to use new datetime utilities
  • Removed Pendulum from dependencies

Testing

  • Unit tests passing
  • Linting checks passing
  • Type checks passing

Link to Devin run: https://app.devin.ai/sessions/cd2adf128d354d6d8e0123af60500f39

devin-ai-integration bot and others added 3 commits January 23, 2025 18:41
- Introduces AirbyteDateTime class for consistent ISO8601/RFC3339 formatting
- Adds helper functions for datetime operations
- Includes comprehensive test coverage
- Prepares for Pendulum removal

Co-Authored-By: Aaron <AJ> Steers <[email protected]>
- Remove pendulum imports
- Replace pendulum.now() with datetime_helpers.now()
- Replace pendulum.parse() with datetime_helpers.parse()
- Replace pendulum.DateTime type hints with AirbyteDateTime
- Update time arithmetic to use standard datetime operations

Co-Authored-By: Aaron <AJ> Steers <[email protected]>
Copy link
Contributor Author

Original prompt:

@Devin In the Python CDK, we want to remove all references to Pendulum so we can remove the dependency. Can you make a plan to do so?

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@aaronsteers aaronsteers marked this pull request as ready for review January 23, 2025 21:03
@aaronsteers
Copy link
Contributor

aaronsteers commented Jan 23, 2025

/poetry-lock

Poetry-Lock Job Info

This job attempts to re-lock dependencies using poetry lock command. If any changes
are made, those changes will be automatically committed and pushed back to the PR.

Note: This job can only be run by maintainers. On PRs from forks, this command requires
that the PR author has enabled the Allow edits from maintainers option.

poetry lock job started... Check job output.

poetry lock applied successfully.

@aaronsteers aaronsteers changed the title refactor: remove pendulum dependency chore: remove pendulum dependency Jan 23, 2025
Resolving dependencies... changes
@github-actions github-actions bot added the chore label Jan 23, 2025
Copy link
Contributor Author

Devin is currently unreachable - the session may have died.

devin-ai-integration bot and others added 14 commits January 23, 2025 22:12
@devin-ai-integration devin-ai-integration bot force-pushed the devin/1737657683-remove-pendulum branch from 507a241 to 898f4f5 Compare January 25, 2025 01:38
@aaronsteers
Copy link
Contributor

aaronsteers commented Jan 28, 2025

/poetry-lock

Poetry-Lock Job Info

This job attempts to re-lock dependencies using poetry lock command. If any changes
are made, those changes will be automatically committed and pushed back to the PR.

Note: This job can only be run by maintainers. On PRs from forks, this command requires
that the PR author has enabled the Allow edits from maintainers option.

poetry lock job started... Check job output.

poetry lock applied successfully.

@aaronsteers
Copy link
Contributor

aaronsteers commented Jan 28, 2025

/autofix

Auto-Fix Job Info

This job attempts to auto-fix any linting or formating issues. If any fixes are made,
those changes will be automatically committed and pushed back to the PR.

Note: This job can only be run by maintainers. On PRs from forks, this command requires
that the PR author has enabled the Allow edits from maintainers option.

PR auto-fix job started... Check job output.

✅ Changes applied successfully.

octavia-squidington-iii and others added 3 commits January 28, 2025 23:30
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Aaron <AJ> Steers <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Aaron <AJ> Steers <[email protected]>
@aaronsteers aaronsteers enabled auto-merge (squash) January 29, 2025 04:20
@aaronsteers aaronsteers merged commit ad20739 into main Jan 29, 2025
24 of 27 checks passed
@aaronsteers aaronsteers deleted the devin/1737657683-remove-pendulum branch January 29, 2025 04:36
@natikgadzhi
Copy link
Contributor

This is great! Did we actually remove all pendulum types from public apis? I think there were a few connectors heavily coupled with it?

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

Successfully merging this pull request may close these issues.

2 participants