airbyte-source-github 1.9.0rc1__py3-none-any.whl → 1.9.0rc2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of airbyte-source-github might be problematic. Click here for more details.

@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-source-github
3
- Version: 1.9.0rc1
3
+ Version: 1.9.0rc2
4
4
  Summary: Source implementation for GitHub.
5
5
  Home-page: https://airbyte.com
6
- License: MIT
6
+ License: ELv2
7
7
  Author: Airbyte
8
8
  Author-email: contact@airbyte.io
9
9
  Requires-Python: >=3.10,<3.12
10
- Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: License :: Other/Proprietary License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
@@ -56,9 +56,9 @@ source_github/schemas/workflow_runs.json,sha256=XDmIsjtzka-ItEonImD3ZATZjxRNkbFo
56
56
  source_github/schemas/workflows.json,sha256=gSNw8WZaVKbX4AL97PbjZHzvxcOltXqv9Ao1RNQOFXM,1470
57
57
  source_github/source.py,sha256=1o8eayigi4xSUeNHdCd-mhNswGUq_XQrVk2eihTjm1o,14246
58
58
  source_github/spec.json,sha256=7LOQm01fP_RvPF-HifhNPJ7i0AxT2LTNPaLAA3uOfNY,7443
59
- source_github/streams.py,sha256=MErXqg35u6l-iBMylyeGitsMr_68aoyz6TqGEyufmgU,78158
59
+ source_github/streams.py,sha256=uvCHATVyObHCz76tuknNqPETuGlyUdXGsa1YZc7B4JI,78285
60
60
  source_github/utils.py,sha256=nSARcWkLTsoyh6c7j8AvxGCgK1uUPDwOe970_1Ywj94,5586
61
- airbyte_source_github-1.9.0rc1.dist-info/METADATA,sha256=0nrlurzAIyvRxGVKFCqC-eEgmrbNtLNyHIqqYDg5ATY,5192
62
- airbyte_source_github-1.9.0rc1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
63
- airbyte_source_github-1.9.0rc1.dist-info/entry_points.txt,sha256=gYhqVrTAZvMwuYByg0b_-o115yUFLLcfNxMrLZmiW9k,55
64
- airbyte_source_github-1.9.0rc1.dist-info/RECORD,,
61
+ airbyte_source_github-1.9.0rc2.dist-info/METADATA,sha256=IJOa4twAg9c5Yb_mQSEijUwZaobg0hSenP9hG-UG6yE,5191
62
+ airbyte_source_github-1.9.0rc2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
63
+ airbyte_source_github-1.9.0rc2.dist-info/entry_points.txt,sha256=gYhqVrTAZvMwuYByg0b_-o115yUFLLcfNxMrLZmiW9k,55
64
+ airbyte_source_github-1.9.0rc2.dist-info/RECORD,,
source_github/streams.py CHANGED
@@ -4,11 +4,12 @@
4
4
 
5
5
  import re
6
6
  from abc import ABC, abstractmethod
7
- from datetime import timedelta
7
+ from datetime import timedelta, timezone
8
8
  from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Union
9
9
  from urllib import parse
10
10
 
11
11
  import requests
12
+ from dateutil.parser import parse as date_parse
12
13
 
13
14
  from airbyte_cdk import BackoffStrategy, StreamSlice
14
15
  from airbyte_cdk.models import AirbyteLogMessage, AirbyteMessage, FailureType, Level, SyncMode
@@ -1441,7 +1442,8 @@ class Workflows(SemiIncrementalMixin, GithubStream):
1441
1442
  yield self.transform(record=record, stream_slice=stream_slice)
1442
1443
 
1443
1444
  def convert_cursor_value(self, value):
1444
- return ab_datetime_format(value, "YYYY-MM-DDTHH:mm:ss[Z]")
1445
+ parsed_value = date_parse(value).astimezone(timezone.utc)
1446
+ return ab_datetime_format(parsed_value, "%Y-%m-%dT%H:%M:%SZ")
1445
1447
 
1446
1448
 
1447
1449
  class WorkflowRuns(SemiIncrementalMixin, GithubStream):