Skip to content

Replace oauth2client with google-auth and google-auth-oauthlib in google-calendar integration#860

Closed
PraveenNPatil07 wants to merge 2 commits intozulip:mainfrom
PraveenNPatil07:fix/google-calendar-integration-847
Closed

Replace oauth2client with google-auth and google-auth-oauthlib in google-calendar integration#860
PraveenNPatil07 wants to merge 2 commits intozulip:mainfrom
PraveenNPatil07:fix/google-calendar-integration-847

Conversation

@PraveenNPatil07
Copy link
Copy Markdown

This PR replaces the deprecated oauth2client library with the recommended google-auth and google-auth-oauthlib libraries in the google-calendar integration script. This update ensures that the script remains functional and up-to-date with the latest Google authentication libraries.

Fixes: #847

Changes Made

  1. Updated Imports in google-calendar:

    • Replaced oauth2client imports with google-auth and google-auth-oauthlib imports.
  2. Updated get_credentials Function in google-calendar:

    • Replaced the usage of oauth2client with google-auth and google-auth-oauthlib.
  3. Updated populate_events Function in google-calendar:

    • Replaced the usage of oauth2client with google-auth and google-auth-oauthlib.
  4. Updated requirements.txt:

    • Added the new dependencies with version numbers:
      • httplib2>=0.22.0
      • google-auth>=2.0.0
      • google-auth-oauthlib>=0.4.6
      • google-api-python-client>=2.0.0

References

  • Integrations Overview
  • Non-webhook integrations

- Added a step to upgrade pip to the latest version to avoid warnings about outdated pip.
- Added steps to install the PGroonga extension and restart PostgreSQL to ensure the schema exists.

This resolves issues with the outdated pip version and the missing PGroonga schema during the CI process.
@timabbott
Copy link
Copy Markdown
Member

@PraveenNPatil07 can you fix CI?

@PraveenNPatil07
Copy link
Copy Markdown
Author

Okay

@timabbott
Copy link
Copy Markdown
Member

Closing in favor of commits that do this in #856.

@timabbott timabbott closed this Apr 7, 2025
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.

Update the Google Calendar integration

3 participants