airbyte-source-github 1.7.2__py3-none-any.whl → 1.7.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-source-github
3
- Version: 1.7.2
3
+ Version: 1.7.4
4
4
  Summary: Source implementation for GitHub.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -20,32 +20,33 @@ Description-Content-Type: text/markdown
20
20
 
21
21
  # Github source connector
22
22
 
23
-
24
23
  This is the repository for the Github source connector, written in Python.
25
24
  For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/github).
26
25
 
27
26
  ## Local development
28
27
 
29
28
  ### Prerequisites
30
- * Python (~=3.9)
31
- * Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)
32
29
 
30
+ - Python (~=3.9)
31
+ - Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)
33
32
 
34
33
  ### Installing the connector
34
+
35
35
  From this connector directory, run:
36
+
36
37
  ```bash
37
38
  poetry install --with dev
38
39
  ```
39
40
 
40
-
41
41
  ### Create credentials
42
+
42
43
  **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/github)
43
44
  to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_github/spec.yaml` file.
44
45
  Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
45
46
  See `sample_files/sample_config.json` for a sample config file.
46
47
 
47
-
48
48
  ### Locally running the connector
49
+
49
50
  ```
50
51
  poetry run source-github spec
51
52
  poetry run source-github check --config secrets/config.json
@@ -54,23 +55,28 @@ poetry run source-github read --config secrets/config.json --catalog sample_file
54
55
  ```
55
56
 
56
57
  ### Running unit tests
58
+
57
59
  To run unit tests locally, from the connector directory run:
60
+
58
61
  ```
59
62
  poetry run pytest unit_tests
60
63
  ```
61
64
 
62
65
  ### Building the docker image
66
+
63
67
  1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)
64
68
  2. Run the following command to build the docker image:
69
+
65
70
  ```bash
66
71
  airbyte-ci connectors --name=source-github build
67
72
  ```
68
73
 
69
74
  An image will be available on your host with the tag `airbyte/source-github:dev`.
70
75
 
71
-
72
76
  ### Running as a docker container
77
+
73
78
  Then run any of the connector commands as follows:
79
+
74
80
  ```
75
81
  docker run --rm airbyte/source-github:dev spec
76
82
  docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-github:dev check --config /secrets/config.json
@@ -79,18 +85,23 @@ docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integrat
79
85
  ```
80
86
 
81
87
  ### Running our CI test suite
88
+
82
89
  You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
90
+
83
91
  ```bash
84
92
  airbyte-ci connectors --name=source-github test
85
93
  ```
86
94
 
87
95
  ### Customizing acceptance Tests
96
+
88
97
  Customize `acceptance-test-config.yml` file to configure acceptance tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
89
98
  If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
90
99
 
91
100
  ### Dependency Management
92
- All of your dependencies should be managed via Poetry.
101
+
102
+ All of your dependencies should be managed via Poetry.
93
103
  To add a new dependency, run:
104
+
94
105
  ```bash
95
106
  poetry add <package-name>
96
107
  ```
@@ -98,14 +109,17 @@ poetry add <package-name>
98
109
  Please commit the changes to `pyproject.toml` and `poetry.lock` files.
99
110
 
100
111
  ## Publishing a new version of the connector
112
+
101
113
  You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
114
+
102
115
  1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-github test`
103
- 2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
104
- - bump the `dockerImageTag` value in in `metadata.yaml`
105
- - bump the `version` value in `pyproject.toml`
116
+ 2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
117
+ - bump the `dockerImageTag` value in in `metadata.yaml`
118
+ - bump the `version` value in `pyproject.toml`
106
119
  3. Make sure the `metadata.yaml` content is up to date.
107
120
  4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/github.md`).
108
121
  5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
109
122
  6. Pat yourself on the back for being an awesome contributor.
110
123
  7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
111
124
  8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.
125
+
@@ -52,11 +52,11 @@ source_github/schemas/users.json,sha256=by1CEx3MW740S5F54KZfUDc2N1_UZ98Bb3fWlgCt
52
52
  source_github/schemas/workflow_jobs.json,sha256=Kk3N3FcCYBqOdR7FYvz2nAAFtLZBuVfR8Lxg-ORD39U,3934
53
53
  source_github/schemas/workflow_runs.json,sha256=XDmIsjtzka-ItEonImD3ZATZjxRNkbFo5-MPTtZDARA,19453
54
54
  source_github/schemas/workflows.json,sha256=gSNw8WZaVKbX4AL97PbjZHzvxcOltXqv9Ao1RNQOFXM,1470
55
- source_github/source.py,sha256=jOGHJLL6ys4NRAjGs-Lw1RJxK25NxA5XS8n-uH2Gico,13879
56
- source_github/spec.json,sha256=tsRjwqInYQjvqhm-Yzdn7_VC5QyInCGAToFJnUrCnOU,7074
55
+ source_github/source.py,sha256=s0boSIeMc6PgW50ivX7022a_V5ZBI9uMQ25w00war2s,13895
56
+ source_github/spec.json,sha256=eOOBUWU0X2cRPM8ik07R0v_Y_rss1PfcutD60DJpNb4,7073
57
57
  source_github/streams.py,sha256=vcP2P0vCvShaa3z8M9dnmbY6awKR8vAIw3XgR8PlZtk,77006
58
58
  source_github/utils.py,sha256=DfAHFjsF8hzDXeSCR6qtfs7W_av6o2BkkEVhtHpWbis,5462
59
- airbyte_source_github-1.7.2.dist-info/METADATA,sha256=BYkxTiP5m-V1XrmjKmyPEn8mw8DBIOiiDVjOHzJn3Qs,5230
60
- airbyte_source_github-1.7.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
61
- airbyte_source_github-1.7.2.dist-info/entry_points.txt,sha256=gYhqVrTAZvMwuYByg0b_-o115yUFLLcfNxMrLZmiW9k,55
62
- airbyte_source_github-1.7.2.dist-info/RECORD,,
59
+ airbyte_source_github-1.7.4.dist-info/METADATA,sha256=NGogPzehjURdkHEym3G_Vzj5Aiyx0buuw-5i6-2cGNs,5240
60
+ airbyte_source_github-1.7.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
61
+ airbyte_source_github-1.7.4.dist-info/entry_points.txt,sha256=gYhqVrTAZvMwuYByg0b_-o115yUFLLcfNxMrLZmiW9k,55
62
+ airbyte_source_github-1.7.4.dist-info/RECORD,,
source_github/source.py CHANGED
@@ -10,7 +10,7 @@ from airbyte_cdk import AirbyteLogger
10
10
  from airbyte_cdk.models import FailureType, SyncMode
11
11
  from airbyte_cdk.sources import AbstractSource
12
12
  from airbyte_cdk.sources.streams import Stream
13
- from airbyte_cdk.sources.streams.http.auth import MultipleTokenAuthenticator
13
+ from airbyte_cdk.sources.streams.http.requests_native_auth import MultipleTokenAuthenticator
14
14
  from airbyte_cdk.utils.traced_exception import AirbyteTracedException
15
15
  from source_github.utils import MultipleTokenAuthenticatorWithRateLimiter
16
16
 
source_github/spec.json CHANGED
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "client_secret": {
40
40
  "type": "string",
41
- "title": "Client ssecret",
41
+ "title": "Client secret",
42
42
  "description": "OAuth Client secret",
43
43
  "airbyte_secret": true
44
44
  }