Skip to content

Commit

Permalink
Exclude v1.58 of PyGithub package in GitHub provider (#29728)
Browse files Browse the repository at this point in the history
Starting with v1.58 of `PyGithub`, serialization with `pickle` of `Repository`, `NamedUser`, `Issue`, and other `github.Github.GithubObject`s is no longer possible out of the box. Users won't be able to pass these objects in XCom if desired when using the GitHhub provider.
  • Loading branch information
josh-fell committed Feb 27, 2023
1 parent ec844ea commit a3d0e79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion airflow/providers/github/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ description: |
dependencies:
- apache-airflow>=2.3.0
- pygithub
# There was a change introduced in version 1.58 which breaks `pickle` serialization out of the box.
# See https://github.com/PyGithub/PyGithub/issues/2436.
- PyGithub!=1.58

versions:
- 2.2.0
Expand Down
4 changes: 2 additions & 2 deletions generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@
},
"github": {
"deps": [
"apache-airflow>=2.3.0",
"pygithub"
"PyGithub!=1.58",
"apache-airflow>=2.3.0"
],
"cross-providers-deps": []
},
Expand Down

0 comments on commit a3d0e79

Please sign in to comment.